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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 const GURL& frame_url, | 267 const GURL& frame_url, |
268 const content::SSLStatus& ssl_status); | 268 const content::SSLStatus& ssl_status); |
269 | 269 |
270 // Passes return data for an OnRequestAutocomplete call back to the page. | 270 // Passes return data for an OnRequestAutocomplete call back to the page. |
271 void ReturnAutocompleteData(const FormStructure* result); | 271 void ReturnAutocompleteData(const FormStructure* result); |
272 | 272 |
273 // Called to signal clicking an element failed in some way during an | 273 // Called to signal clicking an element failed in some way during an |
274 // Autocheckout flow. | 274 // Autocheckout flow. |
275 void OnClickFailed(autofill::AutocheckoutStatus status); | 275 void OnClickFailed(autofill::AutocheckoutStatus status); |
276 | 276 |
| 277 // Returns the matched whitelist URL prefix for the current tab's url. |
| 278 std::string GetAutocheckoutURLPrefix() const; |
| 279 |
277 // Fills |host| with the RenderViewHost for this tab. | 280 // Fills |host| with the RenderViewHost for this tab. |
278 // Returns false if Autofill is disabled or if the host is unavailable. | 281 // Returns false if Autofill is disabled or if the host is unavailable. |
279 bool GetHost(content::RenderViewHost** host) const WARN_UNUSED_RESULT; | 282 bool GetHost(content::RenderViewHost** host) const WARN_UNUSED_RESULT; |
280 | 283 |
281 // Unpacks |unique_id| and fills |form_group| and |variant| with the | 284 // Unpacks |unique_id| and fills |form_group| and |variant| with the |
282 // appropriate data source and variant index. Returns false if the unpacked | 285 // appropriate data source and variant index. Returns false if the unpacked |
283 // id cannot be found. | 286 // id cannot be found. |
284 bool GetProfileOrCreditCard(int unique_id, | 287 bool GetProfileOrCreditCard(int unique_id, |
285 const FormGroup** form_group, | 288 const FormGroup** form_group, |
286 size_t* variant) const WARN_UNUSED_RESULT; | 289 size_t* variant) const WARN_UNUSED_RESULT; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 435 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
433 TestTabContentsWithExternalDelegate); | 436 TestTabContentsWithExternalDelegate); |
434 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 437 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
435 UserHappinessFormLoadAndSubmission); | 438 UserHappinessFormLoadAndSubmission); |
436 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 439 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
437 | 440 |
438 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 441 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
439 }; | 442 }; |
440 | 443 |
441 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 444 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |