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 #include "android_webview/native/aw_autofill_client.h" | 5 #include "android_webview/native/aw_autofill_client.h" |
6 | 6 |
7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
8 #include "android_webview/browser/aw_content_browser_client.h" | 8 #include "android_webview/browser/aw_content_browser_client.h" |
9 #include "android_webview/browser/aw_form_database_service.h" | 9 #include "android_webview/browser/aw_form_database_service.h" |
10 #include "android_webview/browser/aw_pref_store.h" | 10 #include "android_webview/browser/aw_pref_store.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 bool AwAutofillClient::GetSaveFormData() { | 60 bool AwAutofillClient::GetSaveFormData() { |
61 return save_form_data_; | 61 return save_form_data_; |
62 } | 62 } |
63 | 63 |
64 PrefService* AwAutofillClient::GetPrefs() { | 64 PrefService* AwAutofillClient::GetPrefs() { |
65 return user_prefs::UserPrefs::Get( | 65 return user_prefs::UserPrefs::Get( |
66 AwContentBrowserClient::GetAwBrowserContext()); | 66 AwContentBrowserClient::GetAwBrowserContext()); |
67 } | 67 } |
68 | 68 |
| 69 IdentityProvider* AwAutofillClient::GetIdentityProvider() { |
| 70 return nullptr; |
| 71 } |
| 72 |
69 autofill::PersonalDataManager* AwAutofillClient::GetPersonalDataManager() { | 73 autofill::PersonalDataManager* AwAutofillClient::GetPersonalDataManager() { |
70 return NULL; | 74 return nullptr; |
71 } | 75 } |
72 | 76 |
73 scoped_refptr<autofill::AutofillWebDataService> | 77 scoped_refptr<autofill::AutofillWebDataService> |
74 AwAutofillClient::GetDatabase() { | 78 AwAutofillClient::GetDatabase() { |
75 android_webview::AwFormDatabaseService* service = | 79 android_webview::AwFormDatabaseService* service = |
76 static_cast<android_webview::AwBrowserContext*>( | 80 static_cast<android_webview::AwBrowserContext*>( |
77 web_contents_->GetBrowserContext())->GetFormDatabaseService(); | 81 web_contents_->GetBrowserContext())->GetFormDatabaseService(); |
78 return service->get_autofill_webdata_service(); | 82 return service->get_autofill_webdata_service(); |
79 } | 83 } |
80 | 84 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 content::RenderFrameHost* rfh, | 221 content::RenderFrameHost* rfh, |
218 const ResultCallback& callback) { | 222 const ResultCallback& callback) { |
219 NOTIMPLEMENTED(); | 223 NOTIMPLEMENTED(); |
220 } | 224 } |
221 | 225 |
222 bool RegisterAwAutofillClient(JNIEnv* env) { | 226 bool RegisterAwAutofillClient(JNIEnv* env) { |
223 return RegisterNativesImpl(env); | 227 return RegisterNativesImpl(env); |
224 } | 228 } |
225 | 229 |
226 } // namespace android_webview | 230 } // namespace android_webview |
OLD | NEW |