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

Side by Side Diff: chrome/browser/autofill/address_storage_factory.h

Issue 145553009: rAc: use libaddressinput to validate international addresses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
(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 #include "base/memory/scoped_ptr.h"
12
13 namespace i18n {
14 namespace addressinput {
15 class Storage;
16 }
17 }
18
19 class JsonPrefStore;
20 class PersistentPrefStore;
21
22 namespace autofill {
23
24 // Creates Storage objects, all of which are backed by a common pref store.
25 class AddressStorageFactory {
Evan Stade 2014/01/28 19:23:12 s/AddressStorageFactory/ValidationRulesStorageFact
Dan Beam 2014/01/30 04:51:36 Done.
26 public:
27 static scoped_ptr< ::i18n::addressinput::Storage> CreateStorage();
28
29 private:
30 friend struct base::DefaultLazyInstanceTraits<AddressStorageFactory>;
31
32 AddressStorageFactory();
33 ~AddressStorageFactory();
34
35 scoped_refptr<JsonPrefStore> json_pref_store_;
36
37 DISALLOW_COPY_AND_ASSIGN(AddressStorageFactory);
38 };
39
40 } // namespace autofill
41
42 #endif // CHROME_BROWSER_AUTOFILL_ADDRESS_STORAGE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698