OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 const GURL& frame_url, | 247 const GURL& frame_url, |
248 const content::SSLStatus& ssl_status); | 248 const content::SSLStatus& ssl_status); |
249 | 249 |
250 // Passes return data for an OnRequestAutocomplete call back to the page. | 250 // Passes return data for an OnRequestAutocomplete call back to the page. |
251 void ReturnAutocompleteData(const FormStructure* result); | 251 void ReturnAutocompleteData(const FormStructure* result); |
252 | 252 |
253 // Called to signal clicking an element failed in some way during an | 253 // Called to signal clicking an element failed in some way during an |
254 // Autocheckout flow. | 254 // Autocheckout flow. |
255 void OnClickFailed(autofill::AutocheckoutStatus status); | 255 void OnClickFailed(autofill::AutocheckoutStatus status); |
256 | 256 |
| 257 // Returns true when the current tab's url is whitelisted for autocheckout. |
| 258 bool IsAutocheckoutEnabled() const; |
| 259 |
257 // Fills |host| with the RenderViewHost for this tab. | 260 // Fills |host| with the RenderViewHost for this tab. |
258 // Returns false if Autofill is disabled or if the host is unavailable. | 261 // Returns false if Autofill is disabled or if the host is unavailable. |
259 bool GetHost(content::RenderViewHost** host) const WARN_UNUSED_RESULT; | 262 bool GetHost(content::RenderViewHost** host) const WARN_UNUSED_RESULT; |
260 | 263 |
261 // Unpacks |unique_id| and fills |form_group| and |variant| with the | 264 // Unpacks |unique_id| and fills |form_group| and |variant| with the |
262 // appropriate data source and variant index. Returns false if the unpacked | 265 // appropriate data source and variant index. Returns false if the unpacked |
263 // id cannot be found. | 266 // id cannot be found. |
264 bool GetProfileOrCreditCard(int unique_id, | 267 bool GetProfileOrCreditCard(int unique_id, |
265 const FormGroup** form_group, | 268 const FormGroup** form_group, |
266 size_t* variant) const WARN_UNUSED_RESULT; | 269 size_t* variant) const WARN_UNUSED_RESULT; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 415 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
413 TestTabContentsWithExternalDelegate); | 416 TestTabContentsWithExternalDelegate); |
414 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 417 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
415 UserHappinessFormLoadAndSubmission); | 418 UserHappinessFormLoadAndSubmission); |
416 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 419 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
417 | 420 |
418 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 421 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
419 }; | 422 }; |
420 | 423 |
421 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 424 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |