OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_ | |
6 #define IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/lazy_instance.h" | |
11 #include "base/macros.h" | |
12 #include "base/memory/ref_counted.h" | |
13 | |
14 namespace i18n { | |
15 namespace addressinput { | |
16 class Storage; | |
17 } | |
18 } | |
19 | |
20 class JsonPrefStore; | |
21 | |
22 namespace autofill { | |
23 | |
24 // Creates Storage objects, all of which are backed by a common pref store. | |
25 // Adapted for iOS from | |
26 // chrome/browser/autofill/validation_rules_storage_factory.{cc,h}. | |
Moe
2017/04/27 12:19:52
I'm not an ios/.../autofill owner but these two fi
macourteau
2017/04/27 18:07:51
Yep, had discussed this with mathp@ and sebsg@, an
Moe
2017/04/28 09:04:44
sure. it's up to you and the owners. It's just tha
macourteau
2017/05/01 15:56:22
Done.
| |
27 class ValidationRulesStorageFactory { | |
28 public: | |
29 static std::unique_ptr<::i18n::addressinput::Storage> CreateStorage(); | |
30 | |
31 private: | |
32 friend struct base::LazyInstanceTraitsBase<ValidationRulesStorageFactory>; | |
33 | |
34 ValidationRulesStorageFactory(); | |
35 ~ValidationRulesStorageFactory(); | |
36 | |
37 scoped_refptr<JsonPrefStore> json_pref_store_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(ValidationRulesStorageFactory); | |
40 }; | |
41 | |
42 } // namespace autofill | |
43 | |
44 #endif // IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_ | |
OLD | NEW |