Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: components/autofill/browser/autocheckout_manager.h

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some debug statements I missed before Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_AUTOCHECKOUT_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_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
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 bool ShouldIgnoreDynamicFormChanges();
ahutter 2013/06/07 17:37:47 Docs.
Dane Wallinga 2013/06/07 21:06:47 Done.
65
64 // Causes the Autocheckout bubble to be displayed if the user hasn't seen it 66 // 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 67 // 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| 68 // being initiated. |ssl_status| is the SSL status of the page. |bounding_box|
67 // is the bounding box of the input field in focus. 69 // is the bounding box of the input field in focus.
68 virtual void MaybeShowAutocheckoutBubble(const GURL& frame_url, 70 virtual void MaybeShowAutocheckoutBubble(const GURL& frame_url,
69 const content::SSLStatus& ssl_status, 71 const content::SSLStatus& ssl_status,
70 const gfx::RectF& bounding_box); 72 const gfx::RectF& bounding_box);
71 73
72 bool is_autocheckout_bubble_showing() const { 74 bool is_autocheckout_bubble_showing() const {
73 return is_autocheckout_bubble_showing_; 75 return is_autocheckout_bubble_showing_;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_; 153 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_;
152 154
153 base::ThreadChecker thread_checker_; 155 base::ThreadChecker thread_checker_;
154 156
155 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager); 157 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager);
156 }; 158 };
157 159
158 } // namespace autofill 160 } // namespace autofill
159 161
160 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_MANAGER_H_ 162 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698