OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 void SetSaveFormData(bool enabled); | 59 void SetSaveFormData(bool enabled); |
60 bool GetSaveFormData(); | 60 bool GetSaveFormData(); |
61 | 61 |
62 // AutofillClient: | 62 // AutofillClient: |
63 autofill::PersonalDataManager* GetPersonalDataManager() override; | 63 autofill::PersonalDataManager* GetPersonalDataManager() override; |
64 scoped_refptr<autofill::AutofillWebDataService> GetDatabase() override; | 64 scoped_refptr<autofill::AutofillWebDataService> GetDatabase() override; |
65 PrefService* GetPrefs() override; | 65 PrefService* GetPrefs() override; |
66 syncer::SyncService* GetSyncService() override; | 66 syncer::SyncService* GetSyncService() override; |
67 IdentityProvider* GetIdentityProvider() override; | 67 IdentityProvider* GetIdentityProvider() override; |
68 rappor::RapporService* GetRapporService() override; | 68 rappor::RapporServiceImpl* GetRapporServiceImpl() override; |
69 void ShowAutofillSettings() override; | 69 void ShowAutofillSettings() override; |
70 void ShowUnmaskPrompt( | 70 void ShowUnmaskPrompt( |
71 const autofill::CreditCard& card, | 71 const autofill::CreditCard& card, |
72 UnmaskCardReason reason, | 72 UnmaskCardReason reason, |
73 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override; | 73 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override; |
74 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 74 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
75 void ConfirmSaveCreditCardLocally(const autofill::CreditCard& card, | 75 void ConfirmSaveCreditCardLocally(const autofill::CreditCard& card, |
76 const base::Closure& callback) override; | 76 const base::Closure& callback) override; |
77 void ConfirmSaveCreditCardToCloud( | 77 void ConfirmSaveCreditCardToCloud( |
78 const autofill::CreditCard& card, | 78 const autofill::CreditCard& card, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 132 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 134 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
135 }; | 135 }; |
136 | 136 |
137 bool RegisterAwAutofillClient(JNIEnv* env); | 137 bool RegisterAwAutofillClient(JNIEnv* env); |
138 | 138 |
139 } // namespace android_webview | 139 } // namespace android_webview |
140 | 140 |
141 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 141 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
OLD | NEW |