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

Side by Side Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 56653002: [Password Autofill] Make better use of prefilled usernames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); 100 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible);
101 101
102 void GetSuggestions(const PasswordFormFillData& fill_data, 102 void GetSuggestions(const PasswordFormFillData& fill_data,
103 const base::string16& input, 103 const base::string16& input,
104 std::vector<base::string16>* suggestions, 104 std::vector<base::string16>* suggestions,
105 std::vector<base::string16>* realms); 105 std::vector<base::string16>* realms);
106 106
107 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, 107 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data,
108 const WebKit::WebInputElement& user_input); 108 const WebKit::WebInputElement& user_input);
109 109
110 // When passwords are first recieved, see if we can autofill. This will try to
111 // autofill with the preferred username, but if the username field has a
112 // prefilled value we will try and fill the password for that username
Ilya Sherman 2013/11/04 23:10:48 nit: "try and" -> "try to", or just "fill", depend
Garrett Casto 2013/11/05 00:40:35 Done.
113 // instead.
Ilya Sherman 2013/11/04 23:10:48 nit: Please try to rewrite this comment without us
Garrett Casto 2013/11/05 00:40:35 Done.
Ilya Sherman 2013/11/05 01:25:11 Hmm, I think the phrasing is still a little confus
Garrett Casto 2013/11/05 01:56:39 Updated comment, and deduced form_element from use
114 void FillFormOnPasswordRecieved(const PasswordFormFillData& fill_data,
115 const WebKit::WebFormElement& form_element,
116 WebKit::WebInputElement username_element,
117 WebKit::WebInputElement password_element);
118
110 bool FillUserNameAndPassword( 119 bool FillUserNameAndPassword(
111 WebKit::WebInputElement* username_element, 120 WebKit::WebInputElement* username_element,
112 WebKit::WebInputElement* password_element, 121 WebKit::WebInputElement* password_element,
113 const PasswordFormFillData& fill_data, 122 const PasswordFormFillData& fill_data,
114 bool exact_username_match, 123 bool exact_username_match,
115 bool set_selection); 124 bool set_selection);
116 125
117 // Fills |login_input| and |password| with the most relevant suggestion from 126 // Fills |login_input| and |password| with the most relevant suggestion from
118 // |fill_data| and shows a popup with other suggestions. 127 // |fill_data| and shows a popup with other suggestions.
119 void PerformInlineAutocomplete( 128 void PerformInlineAutocomplete(
(...skipping 24 matching lines...) Expand all
144 FrameToPasswordFormMap provisionally_saved_forms_; 153 FrameToPasswordFormMap provisionally_saved_forms_;
145 154
146 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 155 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
147 156
148 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 157 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
149 }; 158 };
150 159
151 } // namespace autofill 160 } // namespace autofill
152 161
153 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 162 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698