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

Side by Side Diff: components/autofill/renderer/autofill_agent.h

Issue 15942004: Stop offering Autocheckout bubble on the forms of no interest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | Annotate | Revision Log
OLDNEW
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_RENDERER_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // Autocheckout flow. 261 // Autocheckout flow.
262 bool autocheckout_click_in_progress_; 262 bool autocheckout_click_in_progress_;
263 263
264 // Whether or not |topmost_frame_| is whitelisted for Autocheckout. 264 // Whether or not |topmost_frame_| is whitelisted for Autocheckout.
265 bool is_autocheckout_supported_; 265 bool is_autocheckout_supported_;
266 266
267 // Whether or not new forms/fields have been dynamically added 267 // Whether or not new forms/fields have been dynamically added
268 // since the last loaded forms were sent to the browser process. 268 // since the last loaded forms were sent to the browser process.
269 bool has_new_forms_for_browser_; 269 bool has_new_forms_for_browser_;
270 270
271 // Whether or not we should try to offer the user Autocheckout functionality
272 // by sending |AutofillHostMsg_MaybeShowAutocheckoutBubble| to the browser.
273 bool try_to_show_autocheckout_bubble_;
274
275 // Whether or not to ignore text changes. Useful for when we're committing 271 // Whether or not to ignore text changes. Useful for when we're committing
276 // a composition when we are defocusing the WebView and we don't want to 272 // a composition when we are defocusing the WebView and we don't want to
277 // trigger an autofill popup to show. 273 // trigger an autofill popup to show.
278 bool ignore_text_changes_; 274 bool ignore_text_changes_;
279 275
280 // Timestamp of first time forms are seen. 276 // Timestamp of first time forms are seen.
281 base::TimeTicks forms_seen_timestamp_; 277 base::TimeTicks forms_seen_timestamp_;
282 278
283 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 279 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
284 280
285 friend class PasswordAutofillAgentTest; 281 friend class PasswordAutofillAgentTest;
286 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); 282 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement);
287 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); 283 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms);
288 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendDynamicForms); 284 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendDynamicForms);
289 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning); 285 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning);
290 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, WaitUsername); 286 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, WaitUsername);
291 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionAccept); 287 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionAccept);
292 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionSelect); 288 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillAgentTest, SuggestionSelect);
293 289
294 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 290 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
295 }; 291 };
296 292
297 } // namespace autofill 293 } // namespace autofill
298 294
299 #endif // COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ 295 #endif // COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « components/autofill/common/autofill_messages.h ('k') | components/autofill/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698