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

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

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 10 matching lines...) Expand all
21 class WebView; 21 class WebView;
22 } 22 }
23 23
24 namespace autofill { 24 namespace autofill {
25 25
26 // This class is responsible for filling password forms. 26 // This class is responsible for filling password forms.
27 // There is one PasswordAutofillAgent per RenderView. 27 // There is one PasswordAutofillAgent per RenderView.
28 class PasswordAutofillAgent : public content::RenderViewObserver { 28 class PasswordAutofillAgent : public content::RenderViewObserver {
29 public: 29 public:
30 explicit PasswordAutofillAgent(content::RenderView* render_view); 30 explicit PasswordAutofillAgent(content::RenderView* render_view);
31 virtual ~PasswordAutofillAgent(); 31 ~PasswordAutofillAgent() override;
32 32
33 // WebViewClient editor related calls forwarded by the RenderView. 33 // WebViewClient editor related calls forwarded by the RenderView.
34 // If they return true, it indicates the event was consumed and should not 34 // If they return true, it indicates the event was consumed and should not
35 // be used for any other autofill activity. 35 // be used for any other autofill activity.
36 bool TextFieldDidEndEditing(const blink::WebInputElement& element); 36 bool TextFieldDidEndEditing(const blink::WebInputElement& element);
37 bool TextDidChangeInTextField(const blink::WebInputElement& element); 37 bool TextDidChangeInTextField(const blink::WebInputElement& element);
38 bool TextFieldHandlingKeyDown(const blink::WebInputElement& element, 38 bool TextFieldHandlingKeyDown(const blink::WebInputElement& element,
39 const blink::WebKeyboardEvent& event); 39 const blink::WebKeyboardEvent& event);
40 40
41 // Fills the username and password fields of this form with the given values. 41 // Fills the username and password fields of this form with the given values.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Make the value of |element| accessible to JavaScript code. 125 // Make the value of |element| accessible to JavaScript code.
126 void ShowValue(blink::WebInputElement* element); 126 void ShowValue(blink::WebInputElement* element);
127 127
128 bool was_user_gesture_seen_; 128 bool was_user_gesture_seen_;
129 std::vector<blink::WebInputElement> elements_; 129 std::vector<blink::WebInputElement> elements_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(PasswordValueGatekeeper); 131 DISALLOW_COPY_AND_ASSIGN(PasswordValueGatekeeper);
132 }; 132 };
133 133
134 // RenderViewObserver: 134 // RenderViewObserver:
135 virtual bool OnMessageReceived(const IPC::Message& message) override; 135 bool OnMessageReceived(const IPC::Message& message) override;
136 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) override; 136 void DidStartProvisionalLoad(blink::WebLocalFrame* frame) override;
137 virtual void DidStartLoading() override; 137 void DidStartLoading() override;
138 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) override; 138 void DidFinishDocumentLoad(blink::WebLocalFrame* frame) override;
139 virtual void DidFinishLoad(blink::WebLocalFrame* frame) override; 139 void DidFinishLoad(blink::WebLocalFrame* frame) override;
140 virtual void DidStopLoading() override; 140 void DidStopLoading() override;
141 virtual void FrameDetached(blink::WebFrame* frame) override; 141 void FrameDetached(blink::WebFrame* frame) override;
142 virtual void FrameWillClose(blink::WebFrame* frame) override; 142 void FrameWillClose(blink::WebFrame* frame) override;
143 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, 143 void WillSendSubmitEvent(blink::WebLocalFrame* frame,
144 const blink::WebFormElement& form) override; 144 const blink::WebFormElement& form) override;
145 virtual void WillSubmitForm(blink::WebLocalFrame* frame, 145 void WillSubmitForm(blink::WebLocalFrame* frame,
146 const blink::WebFormElement& form) override; 146 const blink::WebFormElement& form) override;
147 147
148 // RenderView IPC handlers: 148 // RenderView IPC handlers:
149 void OnFillPasswordForm(const PasswordFormFillData& form_data); 149 void OnFillPasswordForm(const PasswordFormFillData& form_data);
150 void OnSetLoggingState(bool active); 150 void OnSetLoggingState(bool active);
151 151
152 // Scans the given frame for password forms and sends them up to the browser. 152 // Scans the given frame for password forms and sends them up to the browser.
153 // If |only_visible| is true, only forms visible in the layout are sent. 153 // If |only_visible| is true, only forms visible in the layout are sent.
154 void SendPasswordForms(blink::WebFrame* frame, bool only_visible); 154 void SendPasswordForms(blink::WebFrame* frame, bool only_visible);
155 155
156 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data, 156 bool ShowSuggestionPopup(const PasswordFormFillData& fill_data,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool did_stop_loading_; 222 bool did_stop_loading_;
223 223
224 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; 224 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_;
225 225
226 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); 226 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
227 }; 227 };
228 228
229 } // namespace autofill 229 } // namespace autofill
230 230
231 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ 231 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698