Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ios/chrome/browser/autofill/validation_rules_storage_factory.h

Issue 2844783002: [Payment Request] Adds address normalization on iOS. (Closed)
Patch Set: Addresses comments from mahmadi@. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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}, to use
27 // storage paths specific to iOS.
28 class ValidationRulesStorageFactory {
29 public:
30 static std::unique_ptr<::i18n::addressinput::Storage> CreateStorage();
31
32 private:
33 friend struct base::LazyInstanceTraitsBase<ValidationRulesStorageFactory>;
34
35 ValidationRulesStorageFactory();
36 ~ValidationRulesStorageFactory();
37
38 scoped_refptr<JsonPrefStore> json_pref_store_;
39
40 DISALLOW_COPY_AND_ASSIGN(ValidationRulesStorageFactory);
41 };
42
43 } // namespace autofill
44
45 #endif // IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698