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

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

Issue 293093002: Don't show "Save password" prompt for a failed login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 DISALLOW_COPY_AND_ASSIGN(PasswordValueGatekeeper); 121 DISALLOW_COPY_AND_ASSIGN(PasswordValueGatekeeper);
122 }; 122 };
123 123
124 // RenderViewObserver: 124 // RenderViewObserver:
125 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 125 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
126 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) OVERRIDE; 126 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) OVERRIDE;
127 virtual void DidStartLoading() OVERRIDE; 127 virtual void DidStartLoading() OVERRIDE;
128 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE; 128 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE;
129 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; 129 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE;
130 virtual void DidStopLoading() OVERRIDE;
130 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; 131 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE;
131 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; 132 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE;
132 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, 133 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame,
133 const blink::WebFormElement& form) OVERRIDE; 134 const blink::WebFormElement& form) OVERRIDE;
134 virtual void WillSubmitForm(blink::WebLocalFrame* frame, 135 virtual void WillSubmitForm(blink::WebLocalFrame* frame,
135 const blink::WebFormElement& form) OVERRIDE; 136 const blink::WebFormElement& form) OVERRIDE;
136 137
137 // RenderView IPC handlers: 138 // RenderView IPC handlers:
138 void OnFillPasswordForm(const PasswordFormFillData& form_data); 139 void OnFillPasswordForm(const PasswordFormFillData& form_data);
139 void OnSetLoggingState(bool active); 140 void OnSetLoggingState(bool active);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 212
212 // True indicates that the username field was autofilled, false otherwise. 213 // True indicates that the username field was autofilled, false otherwise.
213 bool was_username_autofilled_; 214 bool was_username_autofilled_;
214 // True indicates that the password field was autofilled, false otherwise. 215 // True indicates that the password field was autofilled, false otherwise.
215 bool was_password_autofilled_; 216 bool was_password_autofilled_;
216 217
217 // Records original starting point of username element's selection range 218 // Records original starting point of username element's selection range
218 // before preview. 219 // before preview.
219 int username_selection_start_; 220 int username_selection_start_;
220 221
222 // True indicates that all frames in a page have been rendered.
223 bool did_stop_loading_;
224
221 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 225 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
222 226
223 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 227 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
224 }; 228 };
225 229
226 } // namespace autofill 230 } // namespace autofill
227 231
228 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 232 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698