OLD | NEW |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual bool OnMessageReceived(const IPC::Message& message) override; |
136 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) OVERRIDE; | 136 virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) override; |
137 virtual void DidStartLoading() OVERRIDE; | 137 virtual void DidStartLoading() override; |
138 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) OVERRIDE; | 138 virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) override; |
139 virtual void DidFinishLoad(blink::WebLocalFrame* frame) OVERRIDE; | 139 virtual void DidFinishLoad(blink::WebLocalFrame* frame) override; |
140 virtual void DidStopLoading() OVERRIDE; | 140 virtual void DidStopLoading() override; |
141 virtual void FrameDetached(blink::WebFrame* frame) OVERRIDE; | 141 virtual void FrameDetached(blink::WebFrame* frame) override; |
142 virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; | 142 virtual void FrameWillClose(blink::WebFrame* frame) override; |
143 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, | 143 virtual 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 virtual 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 Loading... |
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_ |
OLD | NEW |