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

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

Issue 1159143002: Add a basic functionality to the force-saving menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added stub methods. Created 5 years, 6 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 <vector> 9 #include <vector>
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // Legacy RenderViewObserver: 176 // Legacy RenderViewObserver:
177 void DidStartLoading(); 177 void DidStartLoading();
178 void DidStopLoading(); 178 void DidStopLoading();
179 void LegacyDidStartProvisionalLoad(blink::WebLocalFrame* frame); 179 void LegacyDidStartProvisionalLoad(blink::WebLocalFrame* frame);
180 180
181 // RenderView IPC handlers: 181 // RenderView IPC handlers:
182 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); 182 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data);
183 void OnSetLoggingState(bool active); 183 void OnSetLoggingState(bool active);
184 void OnAutofillUsernameAndPasswordDataReceived( 184 void OnAutofillUsernameAndPasswordDataReceived(
185 const FormsPredictionsMap& predictions); 185 const FormsPredictionsMap& predictions);
186 void OnFindFocusedPasswordForm();
186 187
187 // Scans the given frame for password forms and sends them up to the browser. 188 // Scans the given frame for password forms and sends them up to the browser.
188 // If |only_visible| is true, only forms visible in the layout are sent. 189 // If |only_visible| is true, only forms visible in the layout are sent.
189 void SendPasswordForms(bool only_visible); 190 void SendPasswordForms(bool only_visible);
190 191
191 // Instructs the browser to show a pop-up suggesting which credentials could 192 // Instructs the browser to show a pop-up suggesting which credentials could
192 // be filled. |show_in_password_field| should indicate whether the pop-up is 193 // be filled. |show_in_password_field| should indicate whether the pop-up is
193 // to be shown on the password field instead of on the username field. If the 194 // to be shown on the password field instead of on the username field. If the
194 // username exists, it should be passed as |user_input|. If there is no 195 // username exists, it should be passed as |user_input|. If there is no
195 // username, pass the password field in |user_input|. In the latter case, no 196 // username, pass the password field in |user_input|. In the latter case, no
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 FormsPredictionsMap form_predictions_; 290 FormsPredictionsMap form_predictions_;
290 291
291 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 292 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
292 293
293 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 294 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
294 }; 295 };
295 296
296 } // namespace autofill 297 } // namespace autofill
297 298
298 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 299 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698