| 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 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // |status| is the reason for the failure. | 54 // |status| is the reason for the failure. |
| 55 void OnClickFailed(AutocheckoutStatus status); | 55 void OnClickFailed(AutocheckoutStatus status); |
| 56 | 56 |
| 57 // Sets |page_meta_data_| with the meta data for the current page. | 57 // Sets |page_meta_data_| with the meta data for the current page. |
| 58 void OnLoadedPageMetaData( | 58 void OnLoadedPageMetaData( |
| 59 scoped_ptr<AutocheckoutPageMetaData> page_meta_data); | 59 scoped_ptr<AutocheckoutPageMetaData> page_meta_data); |
| 60 | 60 |
| 61 // Called when a page containing forms is loaded. | 61 // Called when a page containing forms is loaded. |
| 62 void OnFormsSeen(); | 62 void OnFormsSeen(); |
| 63 | 63 |
| 64 // Whether ajax on the current page should be ignored during |
| 65 // an Autocheckout flow. |
| 66 bool ShouldIgnoreAjax(); |
| 67 |
| 64 // Causes the Autocheckout bubble to be displayed if the user hasn't seen it | 68 // Causes the Autocheckout bubble to be displayed if the user hasn't seen it |
| 65 // yet for the current page. |frame_url| is the page where Autocheckout is | 69 // yet for the current page. |frame_url| is the page where Autocheckout is |
| 66 // being initiated. |ssl_status| is the SSL status of the page. |bounding_box| | 70 // being initiated. |ssl_status| is the SSL status of the page. |bounding_box| |
| 67 // is the bounding box of the input field in focus. | 71 // is the bounding box of the input field in focus. |
| 68 virtual void MaybeShowAutocheckoutBubble(const GURL& frame_url, | 72 virtual void MaybeShowAutocheckoutBubble(const GURL& frame_url, |
| 69 const content::SSLStatus& ssl_status, | 73 const content::SSLStatus& ssl_status, |
| 70 const gfx::RectF& bounding_box); | 74 const gfx::RectF& bounding_box); |
| 71 | 75 |
| 72 bool is_autocheckout_bubble_showing() const { | 76 bool is_autocheckout_bubble_showing() const { |
| 73 return is_autocheckout_bubble_showing_; | 77 return is_autocheckout_bubble_showing_; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_; | 155 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_; |
| 152 | 156 |
| 153 base::ThreadChecker thread_checker_; | 157 base::ThreadChecker thread_checker_; |
| 154 | 158 |
| 155 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager); | 159 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager); |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 } // namespace autofill | 162 } // namespace autofill |
| 159 | 163 |
| 160 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_MANAGER_H_ | 164 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_MANAGER_H_ |
| OLD | NEW |