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 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" | 5 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h" | 9 #include "components/autofill/core/browser/autofill_cc_infobar_delegate.h" |
10 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" | 10 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void AutofillClientIOS::DidFillOrPreviewField( | 145 void AutofillClientIOS::DidFillOrPreviewField( |
146 const base::string16& autofilled_value, | 146 const base::string16& autofilled_value, |
147 const base::string16& profile_full_name) { | 147 const base::string16& profile_full_name) { |
148 } | 148 } |
149 | 149 |
150 scoped_refptr<AutofillWebDataService> AutofillClientIOS::GetDatabase() { | 150 scoped_refptr<AutofillWebDataService> AutofillClientIOS::GetDatabase() { |
151 return ios::GetKeyedServiceProvider()->GetAutofillWebDataForBrowserState( | 151 return ios::GetKeyedServiceProvider()->GetAutofillWebDataForBrowserState( |
152 browser_state_, ServiceAccessType::EXPLICIT_ACCESS); | 152 browser_state_, ServiceAccessType::EXPLICIT_ACCESS); |
153 } | 153 } |
154 | 154 |
| 155 bool AutofillClientIOS::IsContextSecure(const GURL& form_origin) { |
| 156 // TODO (sigbjorn): Return if the context is secure, not just |
| 157 // the form_origin. See crbug.com/505388. |
| 158 return form_origin.SchemeIsCryptographic(); |
| 159 } |
| 160 |
155 void AutofillClientIOS::OnFirstUserGestureObserved() { | 161 void AutofillClientIOS::OnFirstUserGestureObserved() { |
156 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method | 162 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method |
157 // needs a real implementation or not. | 163 // needs a real implementation or not. |
158 NOTIMPLEMENTED(); | 164 NOTIMPLEMENTED(); |
159 } | 165 } |
160 | 166 |
161 void AutofillClientIOS::LinkClicked(const GURL& url, | 167 void AutofillClientIOS::LinkClicked(const GURL& url, |
162 WindowOpenDisposition disposition) { | 168 WindowOpenDisposition disposition) { |
163 NOTIMPLEMENTED(); | 169 NOTIMPLEMENTED(); |
164 } | 170 } |
165 | 171 |
166 } // namespace autofill | 172 } // namespace autofill |
OLD | NEW |