OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_ADDRESS_STORAGE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_ADDRESS_STORAGE_FACTORY_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/ref_counted.h" |
| 11 |
| 12 namespace i18n { |
| 13 namespace addressinput { |
| 14 class ChromeStorageImpl; |
| 15 } |
| 16 } |
| 17 |
| 18 class JsonPrefStore; |
| 19 class PersistentPrefStore; |
| 20 |
| 21 namespace autofill { |
| 22 |
| 23 // Creates ChromeStorageImpls, all of which are backed by a common pref store. |
| 24 class AddressStorageFactory { |
| 25 public: |
| 26 static ::i18n::addressinput::ChromeStorageImpl* CreateChromeStorage(); |
| 27 |
| 28 private: |
| 29 friend struct base::DefaultLazyInstanceTraits<AddressStorageFactory>; |
| 30 |
| 31 AddressStorageFactory(); |
| 32 ~AddressStorageFactory(); |
| 33 |
| 34 scoped_refptr<JsonPrefStore> json_pref_store_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(AddressStorageFactory); |
| 37 }; |
| 38 |
| 39 } // namespace autofill |
| 40 |
| 41 #endif // CHROME_BROWSER_AUTOFILL_ADDRESS_STORAGE_FACTORY_H_ |
OLD | NEW |