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

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

Issue 2187253002: [Password Manager] Change signature of PasswordAutofillAgent.FillSuggestion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 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 <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 bool TextDidChangeInTextField(const blink::WebInputElement& element); 46 bool TextDidChangeInTextField(const blink::WebInputElement& element);
47 47
48 // Function that should be called whenever the value of |element| changes due 48 // Function that should be called whenever the value of |element| changes due
49 // to user input. This is separate from TextDidChangeInTextField() as that 49 // to user input. This is separate from TextDidChangeInTextField() as that
50 // function may trigger UI and should only be called when other UI won't be 50 // function may trigger UI and should only be called when other UI won't be
51 // shown. 51 // shown.
52 void UpdateStateForTextChange(const blink::WebInputElement& element); 52 void UpdateStateForTextChange(const blink::WebInputElement& element);
53 53
54 // Fills the username and password fields of this form with the given values. 54 // Fills the username and password fields of this form with the given values.
55 // Returns true if the fields were filled, false otherwise. 55 // Returns true if the fields were filled, false otherwise.
56 bool FillSuggestion(const blink::WebFormControlElement& node, 56 bool FillSuggestion(const blink::WebFormControlElement& control_element,
57 const blink::WebString& username, 57 const base::string16& username,
58 const blink::WebString& password); 58 const base::string16& password);
59 59
60 // Previews the username and password fields of this form with the given 60 // Previews the username and password fields of this form with the given
61 // values. Returns true if the fields were previewed, false otherwise. 61 // values. Returns true if the fields were previewed, false otherwise.
62 bool PreviewSuggestion(const blink::WebFormControlElement& node, 62 bool PreviewSuggestion(const blink::WebFormControlElement& node,
63 const blink::WebString& username, 63 const blink::WebString& username,
64 const blink::WebString& password); 64 const blink::WebString& password);
65 65
66 // Clears the preview for the username and password fields, restoring both to 66 // Clears the preview for the username and password fields, restoring both to
67 // their previous filled state. Return false if no login information was 67 // their previous filled state. Return false if no login information was
68 // found for the form. 68 // found for the form.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 FormsPredictionsMap form_predictions_; 269 FormsPredictionsMap form_predictions_;
270 270
271 AutofillAgent* autofill_agent_; // Weak reference. 271 AutofillAgent* autofill_agent_; // Weak reference.
272 272
273 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 273 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
274 }; 274 };
275 275
276 } // namespace autofill 276 } // namespace autofill
277 277
278 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 278 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698