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

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

Issue 231283003: Password manager: introduce logging for the internals page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 6 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 | 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; 123 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE;
124 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; 124 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE;
125 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; 125 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE;
126 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, 126 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame,
127 const blink::WebFormElement& form) OVERRIDE; 127 const blink::WebFormElement& form) OVERRIDE;
128 virtual void WillSubmitForm(blink::WebLocalFrame* frame, 128 virtual void WillSubmitForm(blink::WebLocalFrame* frame,
129 const blink::WebFormElement& form) OVERRIDE; 129 const blink::WebFormElement& form) OVERRIDE;
130 130
131 // RenderView IPC handlers: 131 // RenderView IPC handlers:
132 void OnFillPasswordForm(const PasswordFormFillData& form_data); 132 void OnFillPasswordForm(const PasswordFormFillData& form_data);
133 void OnChangeLoggingState(bool active);
133 134
134 // Scans the given frame for password forms and sends them up to the browser. 135 // Scans the given frame for password forms and sends them up to the browser.
135 // If |only_visible| is true, only forms visible in the layout are sent. 136 // If |only_visible| is true, only forms visible in the layout are sent.
136 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); 137 void SendPasswordForms(blink::WebFrame* frame, bool only_visible);
137 138
138 void GetSuggestions(const PasswordFormFillData& fill_data, 139 void GetSuggestions(const PasswordFormFillData& fill_data,
139 const base::string16& input, 140 const base::string16& input,
140 std::vector<base::string16>* suggestions, 141 std::vector<base::string16>* suggestions,
141 std::vector<base::string16>* realms); 142 std::vector<base::string16>* realms);
142 143
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 189
189 // Pointer to the WebView. Used to access page scale factor. 190 // Pointer to the WebView. Used to access page scale factor.
190 blink::WebView* web_view_; 191 blink::WebView* web_view_;
191 192
192 // Set if the user might be submitting a password form on the current page, 193 // Set if the user might be submitting a password form on the current page,
193 // but the submit may still fail (i.e. doesn't pass JavaScript validation). 194 // but the submit may still fail (i.e. doesn't pass JavaScript validation).
194 FrameToPasswordFormMap provisionally_saved_forms_; 195 FrameToPasswordFormMap provisionally_saved_forms_;
195 196
196 PasswordValueGatekeeper gatekeeper_; 197 PasswordValueGatekeeper gatekeeper_;
197 198
199 // True indicates that user debug information should be logged.
200 bool logging_state_active_;
201
198 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 202 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
199 203
200 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 204 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
201 }; 205 };
202 206
203 } // namespace autofill 207 } // namespace autofill
204 208
205 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 209 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698