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

Side by Side Diff: components/autofill/browser/autofill_manager.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: more fixes. you get the drill. 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_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 #include "base/time.h" 23 #include "base/time.h"
24 #include "components/autofill/browser/autocheckout_manager.h" 24 #include "components/autofill/browser/autocheckout_manager.h"
25 #include "components/autofill/browser/autocomplete_history_manager.h" 25 #include "components/autofill/browser/autocomplete_history_manager.h"
26 #include "components/autofill/browser/autofill_download.h" 26 #include "components/autofill/browser/autofill_download.h"
27 #include "components/autofill/browser/autofill_manager_delegate.h" 27 #include "components/autofill/browser/autofill_manager_delegate.h"
28 #include "components/autofill/browser/field_types.h" 28 #include "components/autofill/browser/field_types.h"
29 #include "components/autofill/browser/form_structure.h" 29 #include "components/autofill/browser/form_structure.h"
30 #include "components/autofill/browser/personal_data_manager.h" 30 #include "components/autofill/browser/personal_data_manager.h"
31 #include "components/autofill/common/autocheckout_status.h" 31 #include "components/autofill/common/autocheckout_status.h"
32 #include "components/autofill/common/form_data.h" 32 #include "components/autofill/common/form_data.h"
33 #include "components/autofill/common/forms_seen_param.h"
33 #include "content/public/browser/web_contents_observer.h" 34 #include "content/public/browser/web_contents_observer.h"
34 #include "content/public/common/ssl_status.h" 35 #include "content/public/common/ssl_status.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
36 37
37 class AutofillExternalDelegate; 38 class AutofillExternalDelegate;
38 class AutofillField; 39 class AutofillField;
39 class AutofillProfile; 40 class AutofillProfile;
40 class AutofillMetrics; 41 class AutofillMetrics;
41 class CreditCard; 42 class CreditCard;
42 class FormGroup; 43 class FormGroup;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 233
233 // Determines what the current state of password generation is, and if it has 234 // Determines what the current state of password generation is, and if it has
234 // changed from |password_generation_enabled_|. If it has changed or if 235 // changed from |password_generation_enabled_|. If it has changed or if
235 // |new_renderer| is true, it notifies the renderer of this change via 236 // |new_renderer| is true, it notifies the renderer of this change via
236 // SendPasswordGenerationStateToRenderer. 237 // SendPasswordGenerationStateToRenderer.
237 void UpdatePasswordGenerationState(content::RenderViewHost* host, 238 void UpdatePasswordGenerationState(content::RenderViewHost* host,
238 bool new_renderer); 239 bool new_renderer);
239 240
240 void OnFormsSeen(const std::vector<FormData>& forms, 241 void OnFormsSeen(const std::vector<FormData>& forms,
241 const base::TimeTicks& timestamp, 242 const base::TimeTicks& timestamp,
242 bool has_more_forms); 243 autofill::FormsSeenParam param);
Ilya Sherman 2013/04/06 00:29:39 nit: "param" is probably the most generic name you
243 void OnTextFieldDidChange(const FormData& form, 244 void OnTextFieldDidChange(const FormData& form,
244 const FormFieldData& field, 245 const FormFieldData& field,
245 const base::TimeTicks& timestamp); 246 const base::TimeTicks& timestamp);
246 247
247 // The |bounding_box| is a window relative value. 248 // The |bounding_box| is a window relative value.
248 void OnQueryFormFieldAutofill(int query_id, 249 void OnQueryFormFieldAutofill(int query_id,
249 const FormData& form, 250 const FormData& form,
250 const FormFieldData& field, 251 const FormFieldData& field,
251 const gfx::RectF& bounding_box, 252 const gfx::RectF& bounding_box,
252 bool display_warning); 253 bool display_warning);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 450 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
450 TestTabContentsWithExternalDelegate); 451 TestTabContentsWithExternalDelegate);
451 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 452 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
452 UserHappinessFormLoadAndSubmission); 453 UserHappinessFormLoadAndSubmission);
453 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 454 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
454 455
455 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 456 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
456 }; 457 };
457 458
458 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 459 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698