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

Side by Side Diff: chrome/browser/autofill/android/auxiliary_profile_loader_android.h

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed assortment of nits Created 7 years, 9 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 (c) 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_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_
6 #define CHROME_BROWSER_AUTOFILL_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_
7
8 #include <vector>
9
10 #include "base/string16.h"
11
12 namespace autofill {
13
14 class AuxiliaryProfileLoader {
15 // Abstract interface class provides interface for loading
16 // contact information.
Ilya Sherman 2013/03/05 00:42:38 Why do you need an abstract interface for this? T
Ilya Sherman 2013/03/05 00:42:38 nit: Comment goes above the class.
apiccion 2013/03/09 00:53:41 Done.
17 public:
18 virtual ~AuxiliaryProfileLoader() {}
19
20 // Returns address street.
21 virtual string16 GetStreet() const = 0;
22 // Returns address post office box.
23 virtual string16 GetPostOfficeBox() const = 0;
24 // Returns address neighborhood (e.g. Noe Valley, Nob Hill, Twin Peaks, ...).
25 virtual string16 GetNeighborhood() const = 0;
26 // Returns address region such as state or province information
27 // (e.g. Ontario, California, Hubei).
28 virtual string16 GetRegion() const = 0;
29 // Returns address city.
30 virtual string16 GetCity() const = 0;
31 // Returns address postal code or zip code.
32 virtual string16 GetPostalCode() const = 0;
33 // Returns address country.
34 virtual string16 GetCountry() const = 0;
35
36 // Returns contact's first name.
37 virtual string16 GetFirstName() const = 0;
38 // Returns contact's middle name.
39 virtual string16 GetMiddleName() const = 0;
40 // Returns contact's last name.
41 virtual string16 GetLastName() const = 0;
42 // Returns contact's suffix (e.g. Ph.D, M.D., ...).
43 virtual string16 GetSuffix() const = 0;
44
45 // Populates string vector parameter with contact's email addresses.
46 virtual void GetEmailAddresses(std::vector<string16>*) const = 0;
Ilya Sherman 2013/03/05 00:42:38 nit: Parameters should always be named.
apiccion 2013/03/09 00:53:41 Done.
47
48 // Populates string vector parameter with contact's phones numbers.
49 virtual void GetPhoneNumbers(std::vector<string16>*) const = 0;
Ilya Sherman 2013/03/05 00:42:38 nit: Parameters should always be named.
apiccion 2013/03/09 00:53:41 Done.
50 };
51
52 } // namespace
53
54 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698