Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / autofill / validation_rules_storage_factory.h
blobcc4b9c3d319b028b60e17df307c3a362cbc37800
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_
6 #define CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_
8 #include "base/basictypes.h"
9 #include "base/lazy_instance.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
13 namespace i18n {
14 namespace addressinput {
15 class Storage;
19 class JsonPrefStore;
20 class PersistentPrefStore;
22 namespace autofill {
24 // Creates Storage objects, all of which are backed by a common pref store.
25 class ValidationRulesStorageFactory {
26 public:
27 static scoped_ptr< ::i18n::addressinput::Storage> CreateStorage();
29 private:
30 friend struct base::DefaultLazyInstanceTraits<ValidationRulesStorageFactory>;
32 ValidationRulesStorageFactory();
33 ~ValidationRulesStorageFactory();
35 scoped_refptr<JsonPrefStore> json_pref_store_;
37 DISALLOW_COPY_AND_ASSIGN(ValidationRulesStorageFactory);
40 } // namespace autofill
42 #endif // CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_