| 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 CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_helper.h" | 8 #include "base/android/jni_helper.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "components/autofill/browser/personal_data_manager.h" | 10 #include "components/autofill/core/browser/personal_data_manager.h" |
| 11 #include "components/autofill/browser/personal_data_manager_observer.h" | 11 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
| 12 | 12 |
| 13 namespace autofill { | 13 namespace autofill { |
| 14 | 14 |
| 15 // Android wrapper of the PersonalDataManager which provides access from the | 15 // Android wrapper of the PersonalDataManager which provides access from the |
| 16 // Java layer. Note that on Android, there's only a single profile, and | 16 // Java layer. Note that on Android, there's only a single profile, and |
| 17 // therefore a single instance of this wrapper. | 17 // therefore a single instance of this wrapper. |
| 18 class PersonalDataManagerAndroid : public PersonalDataManagerObserver { | 18 class PersonalDataManagerAndroid : public PersonalDataManagerObserver { |
| 19 public: | 19 public: |
| 20 PersonalDataManagerAndroid(JNIEnv* env, jobject obj); | 20 PersonalDataManagerAndroid(JNIEnv* env, jobject obj); |
| 21 | 21 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Pointer to the PersonalDataManager for the main profile. | 93 // Pointer to the PersonalDataManager for the main profile. |
| 94 PersonalDataManager* personal_data_manager_; | 94 PersonalDataManager* personal_data_manager_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); | 96 DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerAndroid); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace autofill | 99 } // namespace autofill |
| 100 | 100 |
| 101 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ | 101 #endif // CHROME_BROWSER_AUTOFILL_ANDROID_PERSONAL_DATA_MANAGER_ANDROID_H_ |
| OLD | NEW |