| 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/native/aw_contents.h" | 10 #include "android_webview/native/aw_contents.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 | 81 |
| 82 rappor::RapporServiceImpl* AwAutofillClient::GetRapporServiceImpl() { | 82 rappor::RapporServiceImpl* AwAutofillClient::GetRapporServiceImpl() { |
| 83 return nullptr; | 83 return nullptr; |
| 84 } | 84 } |
| 85 | 85 |
| 86 ukm::UkmService* AwAutofillClient::GetUkmService() { | 86 ukm::UkmService* AwAutofillClient::GetUkmService() { |
| 87 return nullptr; | 87 return nullptr; |
| 88 } | 88 } |
| 89 | 89 |
| 90 autofill::SaveCardBubbleController* |
| 91 AwAutofillClient::GetSaveCardBubbleController() { |
| 92 return nullptr; |
| 93 } |
| 94 |
| 90 autofill::PersonalDataManager* AwAutofillClient::GetPersonalDataManager() { | 95 autofill::PersonalDataManager* AwAutofillClient::GetPersonalDataManager() { |
| 91 return nullptr; | 96 return nullptr; |
| 92 } | 97 } |
| 93 | 98 |
| 94 scoped_refptr<autofill::AutofillWebDataService> | 99 scoped_refptr<autofill::AutofillWebDataService> |
| 95 AwAutofillClient::GetDatabase() { | 100 AwAutofillClient::GetDatabase() { |
| 96 android_webview::AwFormDatabaseService* service = | 101 android_webview::AwFormDatabaseService* service = |
| 97 static_cast<android_webview::AwBrowserContext*>( | 102 static_cast<android_webview::AwBrowserContext*>( |
| 98 web_contents_->GetBrowserContext())->GetFormDatabaseService(); | 103 web_contents_->GetBrowserContext())->GetFormDatabaseService(); |
| 99 return service->get_autofill_webdata_service(); | 104 return service->get_autofill_webdata_service(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 253 |
| 249 void AwAutofillClient::ConfirmSaveCreditCardLocally( | 254 void AwAutofillClient::ConfirmSaveCreditCardLocally( |
| 250 const autofill::CreditCard& card, | 255 const autofill::CreditCard& card, |
| 251 const base::Closure& callback) { | 256 const base::Closure& callback) { |
| 252 NOTIMPLEMENTED(); | 257 NOTIMPLEMENTED(); |
| 253 } | 258 } |
| 254 | 259 |
| 255 void AwAutofillClient::ConfirmSaveCreditCardToCloud( | 260 void AwAutofillClient::ConfirmSaveCreditCardToCloud( |
| 256 const autofill::CreditCard& card, | 261 const autofill::CreditCard& card, |
| 257 std::unique_ptr<base::DictionaryValue> legal_message, | 262 std::unique_ptr<base::DictionaryValue> legal_message, |
| 263 bool should_cvc_be_requested, |
| 258 const base::Closure& callback) { | 264 const base::Closure& callback) { |
| 259 NOTIMPLEMENTED(); | 265 NOTIMPLEMENTED(); |
| 260 } | 266 } |
| 261 | 267 |
| 262 void AwAutofillClient::ConfirmCreditCardFillAssist( | 268 void AwAutofillClient::ConfirmCreditCardFillAssist( |
| 263 const autofill::CreditCard& card, | 269 const autofill::CreditCard& card, |
| 264 const base::Closure& callback) { | 270 const base::Closure& callback) { |
| 265 NOTIMPLEMENTED(); | 271 NOTIMPLEMENTED(); |
| 266 } | 272 } |
| 267 | 273 |
| 268 void AwAutofillClient::LoadRiskData( | 274 void AwAutofillClient::LoadRiskData( |
| 269 const base::Callback<void(const std::string&)>& callback) { | 275 const base::Callback<void(const std::string&)>& callback) { |
| 270 NOTIMPLEMENTED(); | 276 NOTIMPLEMENTED(); |
| 271 } | 277 } |
| 272 | 278 |
| 273 bool AwAutofillClient::HasCreditCardScanFeature() { | 279 bool AwAutofillClient::HasCreditCardScanFeature() { |
| 274 return false; | 280 return false; |
| 275 } | 281 } |
| 276 | 282 |
| 277 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { | 283 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { |
| 278 NOTIMPLEMENTED(); | 284 NOTIMPLEMENTED(); |
| 279 } | 285 } |
| 280 | 286 |
| 281 bool RegisterAwAutofillClient(JNIEnv* env) { | 287 bool RegisterAwAutofillClient(JNIEnv* env) { |
| 282 return RegisterNativesImpl(env); | 288 return RegisterNativesImpl(env); |
| 283 } | 289 } |
| 284 | 290 |
| 285 } // namespace android_webview | 291 } // namespace android_webview |
| OLD | NEW |