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

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

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deletion is working Created 6 years, 10 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual void DidFinishLoad(blink::WebFrame* frame) OVERRIDE; 109 virtual void DidFinishLoad(blink::WebFrame* frame) OVERRIDE;
110 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; 110 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE;
111 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; 111 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE;
112 virtual void WillSendSubmitEvent(blink::WebFrame* frame, 112 virtual void WillSendSubmitEvent(blink::WebFrame* frame,
113 const blink::WebFormElement& form) OVERRIDE; 113 const blink::WebFormElement& form) OVERRIDE;
114 virtual void WillSubmitForm(blink::WebFrame* frame, 114 virtual void WillSubmitForm(blink::WebFrame* frame,
115 const blink::WebFormElement& form) OVERRIDE; 115 const blink::WebFormElement& form) OVERRIDE;
116 116
117 // RenderView IPC handlers: 117 // RenderView IPC handlers:
118 void OnFillPasswordForm(const PasswordFormFillData& form_data); 118 void OnFillPasswordForm(const PasswordFormFillData& form_data);
119 void OnRemovePasswordSuggestion(const PasswordForm& password_form);
119 120
120 // Scans the given frame for password forms and sends them up to the browser. 121 // Scans the given frame for password forms and sends them up to the browser.
121 // If |only_visible| is true, only forms visible in the layout are sent. 122 // If |only_visible| is true, only forms visible in the layout are sent.
122 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); 123 void SendPasswordForms(blink::WebFrame* frame, bool only_visible);
123 124
124 void GetSuggestions(const PasswordFormFillData& fill_data, 125 void GetSuggestions(const PasswordFormFillData& fill_data,
125 const base::string16& input, 126 const base::string16& input,
126 std::vector<base::string16>* suggestions, 127 std::vector<base::string16>* suggestions,
127 std::vector<base::string16>* realms); 128 std::vector<base::string16>* realms);
128 129
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool user_gesture_occurred_; 189 bool user_gesture_occurred_;
189 190
190 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 191 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
191 192
192 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 193 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
193 }; 194 };
194 195
195 } // namespace autofill 196 } // namespace autofill
196 197
197 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 198 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698