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

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 184103016: Autofill: Refactoring to support fetching password after a username is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually fix compile failure. Created 6 years, 7 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 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_CORE_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const base::TimeTicks& timestamp); 133 const base::TimeTicks& timestamp);
134 134
135 // The |bounding_box| is a window relative value. 135 // The |bounding_box| is a window relative value.
136 void OnQueryFormFieldAutofill(int query_id, 136 void OnQueryFormFieldAutofill(int query_id,
137 const FormData& form, 137 const FormData& form,
138 const FormFieldData& field, 138 const FormFieldData& field,
139 const gfx::RectF& bounding_box, 139 const gfx::RectF& bounding_box,
140 bool display_warning); 140 bool display_warning);
141 void OnDidEndTextFieldEditing(); 141 void OnDidEndTextFieldEditing();
142 void OnHidePopup(); 142 void OnHidePopup();
143 void OnAddPasswordFormMapping(
144 const FormFieldData& username_field,
145 const PasswordFormFillData& fill_data);
146 void OnShowPasswordSuggestions(
147 const FormFieldData& field,
148 const gfx::RectF& bounds,
149 const std::vector<base::string16>& suggestions,
150 const std::vector<base::string16>& realms);
151 void OnSetDataList(const std::vector<base::string16>& values, 143 void OnSetDataList(const std::vector<base::string16>& values,
152 const std::vector<base::string16>& labels); 144 const std::vector<base::string16>& labels);
153 145
154 // Try and upload |form|. This differs from OnFormSubmitted() in a few ways. 146 // Try and upload |form|. This differs from OnFormSubmitted() in a few ways.
155 // - This function will only label the first <input type="password"> field 147 // - This function will only label the first <input type="password"> field
156 // as ACCOUNT_CREATION_PASSWORD. Other fields will stay unlabeled, as they 148 // as ACCOUNT_CREATION_PASSWORD. Other fields will stay unlabeled, as they
157 // should have been labeled during the upload for OnFormSubmitted(). 149 // should have been labeled during the upload for OnFormSubmitted().
158 // - This function does not assume that |form| is being uploaded during 150 // - This function does not assume that |form| is being uploaded during
159 // the same browsing session as it was originally submitted (as we may 151 // the same browsing session as it was originally submitted (as we may
160 // not have the necessary information to classify the form at that time) 152 // not have the necessary information to classify the form at that time)
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 UserHappinessFormLoadAndSubmission); 359 UserHappinessFormLoadAndSubmission);
368 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 360 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
369 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 361 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
370 FormSubmittedAutocompleteEnabled); 362 FormSubmittedAutocompleteEnabled);
371 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 363 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
372 }; 364 };
373 365
374 } // namespace autofill 366 } // namespace autofill
375 367
376 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 368 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698