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 { | |
David Trainor- moved to gerrit
2013/02/27 07:49:28
Do we need Impl on this if there isn't an interfac
apiccion
2013/02/28 01:31:04
Done.
apiccion
2013/02/28 01:31:04
Done.
| |
19 public: | |
20 AuxiliaryProfilesImpl(ScopedVector<AutofillProfile>* profiles, | |
David Trainor- moved to gerrit
2013/02/27 07:49:28
Can we move the implementation to the cc file and
apiccion
2013/02/28 01:31:04
Done.
| |
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: | |
David Trainor- moved to gerrit
2013/02/27 07:49:28
Don't need another private here
apiccion
2013/02/28 01:31:04
Done.
| |
34 ScopedVector<AutofillProfile>& profiles_; | |
David Trainor- moved to gerrit
2013/02/27 07:49:28
Might make sense to just store pointers here but I
apiccion
2013/02/28 01:31:04
Done.
| |
35 IAuxiliaryProfileLoader& profileLoader_; | |
David Trainor- moved to gerrit
2013/02/27 07:49:28
I feel like this should be profile_loader_ but I f
apiccion
2013/02/28 01:31:04
Style guide says must be lowercase with the extra
| |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfilesImpl); | |
38 }; | |
39 | |
40 #endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_ | |
OLD | NEW |