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 <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool OnMessageReceived(const IPC::Message& message) override; | 147 bool OnMessageReceived(const IPC::Message& message) override; |
148 void DidFinishDocumentLoad() override; | 148 void DidFinishDocumentLoad() override; |
149 void DidFinishLoad() override; | 149 void DidFinishLoad() override; |
150 void FrameDetached() override; | 150 void FrameDetached() override; |
151 void FrameWillClose() override; | 151 void FrameWillClose() override; |
152 void DidStartProvisionalLoad() override; | 152 void DidStartProvisionalLoad() override; |
153 void DidCommitProvisionalLoad(bool is_new_navigation, | 153 void DidCommitProvisionalLoad(bool is_new_navigation, |
154 bool is_same_page_navigation) override; | 154 bool is_same_page_navigation) override; |
155 void WillSendSubmitEvent(const blink::WebFormElement& form) override; | 155 void WillSendSubmitEvent(const blink::WebFormElement& form) override; |
156 void WillSubmitForm(const blink::WebFormElement& form) override; | 156 void WillSubmitForm(const blink::WebFormElement& form) override; |
| 157 void OnDestruct() override; |
157 | 158 |
158 // RenderView IPC handlers: | 159 // RenderView IPC handlers: |
159 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); | 160 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); |
160 void OnSetLoggingState(bool active); | 161 void OnSetLoggingState(bool active); |
161 void OnAutofillUsernameAndPasswordDataReceived( | 162 void OnAutofillUsernameAndPasswordDataReceived( |
162 const FormsPredictionsMap& predictions); | 163 const FormsPredictionsMap& predictions); |
163 void OnFindFocusedPasswordForm(); | 164 void OnFindFocusedPasswordForm(); |
164 | 165 |
165 // Scans the given frame for password forms and sends them up to the browser. | 166 // Scans the given frame for password forms and sends them up to the browser. |
166 // If |only_visible| is true, only forms visible in the layout are sent. | 167 // If |only_visible| is true, only forms visible in the layout are sent. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 FormsPredictionsMap form_predictions_; | 242 FormsPredictionsMap form_predictions_; |
242 | 243 |
243 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 244 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
244 | 245 |
245 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 246 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
246 }; | 247 }; |
247 | 248 |
248 } // namespace autofill | 249 } // namespace autofill |
249 | 250 |
250 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 251 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |