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

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

Issue 13264002: Requery the autofill server when forms and input fields are dynamically added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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) 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Watchdog timer for clicking in Autocheckout flows. 249 // Watchdog timer for clicking in Autocheckout flows.
250 base::OneShotTimer<AutofillAgent> click_timer_; 250 base::OneShotTimer<AutofillAgent> click_timer_;
251 251
252 // Used to signal that we need to watch for loading failures in an 252 // Used to signal that we need to watch for loading failures in an
253 // Autocheckout flow. 253 // Autocheckout flow.
254 bool autocheckout_click_in_progress_; 254 bool autocheckout_click_in_progress_;
255 255
256 // Whether or not |topmost_frame_| is whitelisted for Autocheckout. 256 // Whether or not |topmost_frame_| is whitelisted for Autocheckout.
257 bool is_whitelisted_for_autocheckout_; 257 bool is_whitelisted_for_autocheckout_;
258 258
259 // Whether or not new forms/fields have been dynamical added post-document loa d
ahutter 2013/03/29 19:48:31 dynamically and add punctuation
Dane Wallinga 2013/03/29 21:41:12 Done.
260 bool forms_have_changed_since_load_;
261
259 // Whether or not to ignore text changes. Useful for when we're committing 262 // Whether or not to ignore text changes. Useful for when we're committing
260 // a composition when we are defocusing the WebView and we don't want to 263 // a composition when we are defocusing the WebView and we don't want to
261 // trigger an autofill popup to show. 264 // trigger an autofill popup to show.
262 bool ignore_text_changes_; 265 bool ignore_text_changes_;
263 266
264 // Timestamp of first time forms are seen. 267 // Timestamp of first time forms are seen.
265 base::TimeTicks forms_seen_timestamp_; 268 base::TimeTicks forms_seen_timestamp_;
266 269
267 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 270 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
268 271
272 virtual void didAssociateFormControls(const WebKit::WebVector<WebKit::WebNode> & nodes) OVERRIDE;
273
269 friend class PasswordAutofillManagerTest; 274 friend class PasswordAutofillManagerTest;
270 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement); 275 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, FillFormElement);
271 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms); 276 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, SendForms);
272 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning); 277 FRIEND_TEST_ALL_PREFIXES(ChromeRenderViewTest, ShowAutofillWarning);
273 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 278 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
274 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 279 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
275 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 280 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
276 281
277 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 282 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
278 }; 283 };
279 284
280 } // namespace autofill 285 } // namespace autofill
281 286
282 #endif // COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_ 287 #endif // COMPONENTS_AUTOFILL_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698