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

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

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yay for scoped pointers 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
« no previous file with comments | « no previous file | components/autofill/content/browser/autocheckout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/content/browser/autocheckout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698