OLD | NEW |
(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_AUXILIARY_PROFILE_IMPL_ANDROID_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 #include "base/guid.h" |
| 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/string16.h" |
| 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/browser/autofill/autofill_profile.h" |
| 16 #include "chrome/browser/autofill/i_auxiliary_profile_loader.h" |
| 17 |
| 18 class AuxiliaryProfilesImpl { |
| 19 public: |
| 20 AuxiliaryProfilesImpl(ScopedVector<AutofillProfile>* profiles, |
| 21 IAuxiliaryProfileLoader* profileLoader) |
| 22 : profiles_(*profiles), profileLoader_(*profileLoader) {} |
| 23 |
| 24 void GetContactsProfile(); |
| 25 |
| 26 private: |
| 27 string16 CollapseAddress(string16 pobox, |
| 28 string16 neighborhood); |
| 29 void LoadAddress(AutofillProfile* profile); |
| 30 void LoadName(AutofillProfile* profile); |
| 31 void LoadEmailAddress(AutofillProfile* profile); |
| 32 void LoadPhoneNumbers(AutofillProfile* profile); |
| 33 private: |
| 34 ScopedVector<AutofillProfile>& profiles_; |
| 35 IAuxiliaryProfileLoader& profileLoader_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfilesImpl); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_ |
OLD | NEW |