| 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 // Shows the Autocheckout bubble if conditions are right. See comments for | 273 // Shows the Autocheckout bubble if conditions are right. See comments for |
| 274 // AutocheckoutManager::MaybeShowAutocheckoutBubble. |source_url| is the site | 274 // AutocheckoutManager::MaybeShowAutocheckoutBubble. |source_url| is the site |
| 275 // Autocheckout is being offered on. |ssl_status| is the SSL status of the | 275 // Autocheckout is being offered on. |ssl_status| is the SSL status of the |
| 276 // page. |bounding_box| is the bounding box of the input field in focus. | 276 // page. |bounding_box| is the bounding box of the input field in focus. |
| 277 void OnMaybeShowAutocheckoutBubble(const GURL& source_url, | 277 void OnMaybeShowAutocheckoutBubble(const GURL& source_url, |
| 278 const content::SSLStatus& ssl_status, | 278 const content::SSLStatus& ssl_status, |
| 279 const gfx::RectF& bounding_box); | 279 const gfx::RectF& bounding_box); |
| 280 | 280 |
| 281 // Returns the matched whitelist URL prefix for the current tab's url. | 281 // Returns the matched whitelist URL prefix for the current tab's url. |
| 282 std::string GetAutocheckoutURLPrefix() const; | 282 virtual std::string GetAutocheckoutURLPrefix() const; |
| 283 | 283 |
| 284 // Fills |host| with the RenderViewHost for this tab. | 284 // Fills |host| with the RenderViewHost for this tab. |
| 285 // Returns false if Autofill is disabled or if the host is unavailable. | 285 // Returns false if Autofill is disabled or if the host is unavailable. |
| 286 bool GetHost(content::RenderViewHost** host) const WARN_UNUSED_RESULT; | 286 bool GetHost(content::RenderViewHost** host) const WARN_UNUSED_RESULT; |
| 287 | 287 |
| 288 // Unpacks |unique_id| and fills |form_group| and |variant| with the | 288 // Unpacks |unique_id| and fills |form_group| and |variant| with the |
| 289 // appropriate data source and variant index. Returns false if the unpacked | 289 // appropriate data source and variant index. Returns false if the unpacked |
| 290 // id cannot be found. | 290 // id cannot be found. |
| 291 bool GetProfileOrCreditCard(int unique_id, | 291 bool GetProfileOrCreditCard(int unique_id, |
| 292 const FormGroup** form_group, | 292 const FormGroup** form_group, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 441 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 442 TestTabContentsWithExternalDelegate); | 442 TestTabContentsWithExternalDelegate); |
| 443 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 443 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
| 444 UserHappinessFormLoadAndSubmission); | 444 UserHappinessFormLoadAndSubmission); |
| 445 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 445 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 446 | 446 |
| 447 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 447 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 448 }; | 448 }; |
| 449 | 449 |
| 450 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ | 450 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |