| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 ssl_status = navigation_entry->GetSSL(); | 191 ssl_status = navigation_entry->GetSSL(); |
| 192 // Note: The implementation below is a copy of the one in | 192 // Note: The implementation below is a copy of the one in |
| 193 // ChromeAutofillClient::IsContextSecure, and should be kept in sync | 193 // ChromeAutofillClient::IsContextSecure, and should be kept in sync |
| 194 // until crbug.com/505388 gets implemented. | 194 // until crbug.com/505388 gets implemented. |
| 195 return ssl_status.security_style == content::SECURITY_STYLE_AUTHENTICATED && | 195 return ssl_status.security_style == content::SECURITY_STYLE_AUTHENTICATED && |
| 196 !(ssl_status.content_status & | 196 !(ssl_status.content_status & |
| 197 content::SSLStatus::RAN_INSECURE_CONTENT); | 197 content::SSLStatus::RAN_INSECURE_CONTENT); |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool AwAutofillClient::ShouldShowSigninPromo() { |
| 201 return false; |
| 202 } |
| 203 |
| 204 void AwAutofillClient::StartSigninFlow() {} |
| 205 |
| 200 void AwAutofillClient::SuggestionSelected(JNIEnv* env, | 206 void AwAutofillClient::SuggestionSelected(JNIEnv* env, |
| 201 const JavaParamRef<jobject>& object, | 207 const JavaParamRef<jobject>& object, |
| 202 jint position) { | 208 jint position) { |
| 203 if (delegate_) { | 209 if (delegate_) { |
| 204 delegate_->DidAcceptSuggestion(suggestions_[position].value, | 210 delegate_->DidAcceptSuggestion(suggestions_[position].value, |
| 205 suggestions_[position].frontend_id, | 211 suggestions_[position].frontend_id, |
| 206 position); | 212 position); |
| 207 } | 213 } |
| 208 } | 214 } |
| 209 | 215 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 252 |
| 247 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { | 253 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { |
| 248 NOTIMPLEMENTED(); | 254 NOTIMPLEMENTED(); |
| 249 } | 255 } |
| 250 | 256 |
| 251 bool RegisterAwAutofillClient(JNIEnv* env) { | 257 bool RegisterAwAutofillClient(JNIEnv* env) { |
| 252 return RegisterNativesImpl(env); | 258 return RegisterNativesImpl(env); |
| 253 } | 259 } |
| 254 | 260 |
| 255 } // namespace android_webview | 261 } // namespace android_webview |
| OLD | NEW |