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

Side by Side Diff: chrome/renderer/autofill/password_autofill_manager.h

Issue 9600038: Add Password Autofill Manager to New Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing final nits Created 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_
6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ 6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; 68 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE;
69 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE; 69 virtual void FrameWillClose(WebKit::WebFrame* frame) OVERRIDE;
70 70
71 // PageClickListener: 71 // PageClickListener:
72 virtual bool InputElementClicked(const WebKit::WebInputElement& element, 72 virtual bool InputElementClicked(const WebKit::WebInputElement& element,
73 bool was_focused, 73 bool was_focused,
74 bool is_focused) OVERRIDE; 74 bool is_focused) OVERRIDE;
75 virtual bool InputElementLostFocus() OVERRIDE; 75 virtual bool InputElementLostFocus() OVERRIDE;
76 76
77 // RenderView IPC handlers: 77 // RenderView IPC handlers:
78 void OnFillPasswordForm(const webkit::forms::PasswordFormFillData& form_data); 78 void OnFillPasswordForm(const webkit::forms::PasswordFormFillData& form_data,
79 bool disable_popup);
79 80
80 // Scans the given frame for password forms and sends them up to the browser. 81 // Scans the given frame for password forms and sends them up to the browser.
81 // If |only_visible| is true, only forms visible in the layout are sent. 82 // If |only_visible| is true, only forms visible in the layout are sent.
82 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible); 83 void SendPasswordForms(WebKit::WebFrame* frame, bool only_visible);
83 84
84 void GetSuggestions(const webkit::forms::PasswordFormFillData& fill_data, 85 void GetSuggestions(const webkit::forms::PasswordFormFillData& fill_data,
85 const string16& input, 86 const string16& input,
86 std::vector<string16>* suggestions); 87 std::vector<string16>* suggestions);
87 88
88 bool ShowSuggestionPopup(const webkit::forms::PasswordFormFillData& fill_data, 89 bool ShowSuggestionPopup(const webkit::forms::PasswordFormFillData& fill_data,
(...skipping 18 matching lines...) Expand all
107 void FrameClosing(const WebKit::WebFrame* frame); 108 void FrameClosing(const WebKit::WebFrame* frame);
108 109
109 // Finds login information for a |node| that was previously filled. 110 // Finds login information for a |node| that was previously filled.
110 bool FindLoginInfo(const WebKit::WebNode& node, 111 bool FindLoginInfo(const WebKit::WebNode& node,
111 WebKit::WebInputElement* found_input, 112 WebKit::WebInputElement* found_input,
112 PasswordInfo* found_password); 113 PasswordInfo* found_password);
113 114
114 // The logins we have filled so far with their associated info. 115 // The logins we have filled so far with their associated info.
115 LoginToPasswordInfoMap login_to_password_info_; 116 LoginToPasswordInfoMap login_to_password_info_;
116 117
118 // Used to disable and hide the popup.
119 bool disable_popup_;
120
117 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; 121 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_;
118 122
119 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); 123 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager);
120 }; 124 };
121 125
122 } // namespace autofill 126 } // namespace autofill
123 127
124 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ 128 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/autofill_agent.cc ('k') | chrome/renderer/autofill/password_autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698