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

Side by Side Diff: components/autofill/content/renderer/password_autofill_agent.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_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 20 matching lines...) Expand all
31 virtual ~PasswordAutofillAgent(); 31 virtual ~PasswordAutofillAgent();
32 32
33 // WebViewClient editor related calls forwarded by the RenderView. 33 // WebViewClient editor related calls forwarded by the RenderView.
34 // If they return true, it indicates the event was consumed and should not 34 // If they return true, it indicates the event was consumed and should not
35 // be used for any other autofill activity. 35 // be used for any other autofill activity.
36 bool TextFieldDidEndEditing(const blink::WebInputElement& element); 36 bool TextFieldDidEndEditing(const blink::WebInputElement& element);
37 bool TextDidChangeInTextField(const blink::WebInputElement& element); 37 bool TextDidChangeInTextField(const blink::WebInputElement& element);
38 bool TextFieldHandlingKeyDown(const blink::WebInputElement& element, 38 bool TextFieldHandlingKeyDown(const blink::WebInputElement& element,
39 const blink::WebKeyboardEvent& event); 39 const blink::WebKeyboardEvent& event);
40 40
41 // Fills the password associated with user name |username|. Returns true if 41 // Fills the username and password fields of this form with the given values.
42 // the username and password fields were filled, false otherwise. 42 // Returns true if the fields were filled, false otherwise.
43 bool DidAcceptAutofillSuggestion(const blink::WebNode& node, 43 bool AcceptSuggestion(const blink::WebNode& node,
44 const blink::WebString& username); 44 const blink::WebString& username,
45 const blink::WebString& password);
46
45 // A no-op. Password forms are not previewed, so they do not need to be 47 // A no-op. Password forms are not previewed, so they do not need to be
46 // cleared when the selection changes. However, this method returns 48 // cleared when the selection changes. However, this method returns
47 // true when |node| is fillable by password Autofill. 49 // true when |node| is fillable by password Autofill.
48 bool DidClearAutofillSelection(const blink::WebNode& node); 50 bool DidClearAutofillSelection(const blink::WebNode& node);
49 // Shows an Autofill popup with username suggestions for |element|. 51 // Shows an Autofill popup with username suggestions for |element|.
50 // Returns true if any suggestions were shown, false otherwise. 52 // Returns true if any suggestions were shown, false otherwise.
51 bool ShowSuggestions(const blink::WebInputElement& element); 53 bool ShowSuggestions(const blink::WebInputElement& element);
52 54
53 // Called when new form controls are inserted. 55 // Called when new form controls are inserted.
54 void OnDynamicFormsSeen(blink::WebFrame* frame); 56 void OnDynamicFormsSeen(blink::WebFrame* frame);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 PasswordValueGatekeeper gatekeeper_; 196 PasswordValueGatekeeper gatekeeper_;
195 197
196 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 198 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
197 199
198 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 200 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
199 }; 201 };
200 202
201 } // namespace autofill 203 } // namespace autofill
202 204
203 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 205 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698