| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
| 12 | 12 |
| 13 namespace autofill { | 13 namespace autofill { |
| 14 | 14 |
| 15 bool RegisterAuxiliaryProfileLoader(JNIEnv* env); | 15 bool RegisterAuxiliaryProfileLoader(JNIEnv* env); |
| 16 | 16 |
| 17 // This class loads user's contact information from their device. | 17 // This class loads user's contact information from their device. |
| 18 // The populated data corresponds to the user's 'Me' profile in their | 18 // The populated data corresponds to the user's 'Me' profile in their |
| 19 // contact list. | 19 // contact list. |
| 20 class AuxiliaryProfileLoaderAndroid { | 20 class AuxiliaryProfileLoaderAndroid { |
| 21 public: | 21 public: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 JNIEnv* env_; | 66 JNIEnv* env_; |
| 67 // The reference to java |PersonalAutofillPopulator| which | 67 // The reference to java |PersonalAutofillPopulator| which |
| 68 // actually extracts users contact information from the physical device | 68 // actually extracts users contact information from the physical device |
| 69 base::android::ScopedJavaLocalRef<jobject> populator_; | 69 base::android::ScopedJavaLocalRef<jobject> populator_; |
| 70 DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfileLoaderAndroid); | 70 DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfileLoaderAndroid); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace | 73 } // namespace |
| 74 | 74 |
| 75 #endif // COMPONENTS_AUTOFILL_BROWSER_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_
H_ | 75 #endif // COMPONENTS_AUTOFILL_BROWSER_ANDROID_AUXILIARY_PROFILE_LOADER_ANDROID_
H_ |
| OLD | NEW |