Chromium Code Reviews| 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_ANDROID_AUXILIARY_PROFILES_ANDROID_H_ | |
| 6 #define CHROME_BROWSER_AUTOFILL_ANDROID_AUXILIARY_PROFILES_ANDROID_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/string16.h" | |
| 13 #include "chrome/browser/autofill/android/auxiliary_profile_loader_android.h" | |
| 14 | |
| 15 class AutofillProfile; | |
| 16 | |
| 17 namespace autofill { | |
| 18 class AuxiliaryProfileLoaderAndroid; | |
| 19 } // namespace | |
| 20 | |
| 21 namespace autofill { | |
| 22 | |
| 23 // This class is used to populate an AutofillProfile vector with | |
| 24 // a 'default' auxiliary profile. It depends on an | |
| 25 // AuxiliaryProfileLoaderAndroid object to provide contact information | |
| 26 // that is re-organized into an Autofill profile. | |
| 27 class AuxiliaryProfilesAndroid { | |
| 28 public: | |
| 29 // Takes in an AuxiliaryProfileLoader object which provides | |
| 30 // contact information methods. | |
|
Ilya Sherman
2013/03/11 22:39:44
nit: Line wrapping seems off.
apiccion
2013/03/13 20:17:28
Done.
| |
| 31 explicit AuxiliaryProfilesAndroid( | |
| 32 const autofill::AuxiliaryProfileLoaderAndroid& profile_loader); | |
| 33 ~AuxiliaryProfilesAndroid(); | |
| 34 | |
| 35 // Returns autofill profile constructed from profile_loader_. | |
| 36 scoped_ptr<AutofillProfile> LoadContactsProfile(); | |
| 37 | |
| 38 private: | |
| 39 // inserts contact's address data into profile. | |
|
Ilya Sherman
2013/03/11 22:39:44
nit: Begin sentences with uppercase letters (appli
apiccion
2013/03/13 20:17:28
Done.
apiccion
2013/03/13 20:17:28
Done.
| |
| 40 void LoadAddress(AutofillProfile* profile); | |
| 41 // inserts contact's name data into profile. | |
| 42 void LoadName(AutofillProfile* profile); | |
| 43 // inserts contact's email address data into profile. | |
| 44 void LoadEmailAddress(AutofillProfile* profile); | |
| 45 // inserts contact's phone number data into profile. | |
| 46 void LoadPhoneNumbers(AutofillProfile* profile); | |
| 47 | |
| 48 const AuxiliaryProfileLoaderAndroid& profile_loader_; | |
| 49 | |
| 50 DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfilesAndroid); | |
| 51 }; | |
| 52 | |
| 53 } // namespace | |
| 54 | |
| 55 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_AUXILIARY_PROFILES_ANDROID_H_ | |
| OLD | NEW |