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; | |
158 | 157 |
159 // RenderView IPC handlers: | 158 // RenderView IPC handlers: |
160 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); | 159 void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); |
161 void OnSetLoggingState(bool active); | 160 void OnSetLoggingState(bool active); |
162 void OnAutofillUsernameAndPasswordDataReceived( | 161 void OnAutofillUsernameAndPasswordDataReceived( |
163 const FormsPredictionsMap& predictions); | 162 const FormsPredictionsMap& predictions); |
164 void OnFindFocusedPasswordForm(); | 163 void OnFindFocusedPasswordForm(); |
165 | 164 |
166 // Scans the given frame for password forms and sends them up to the browser. | 165 // Scans the given frame for password forms and sends them up to the browser. |
167 // If |only_visible| is true, only forms visible in the layout are sent. | 166 // 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... |
242 FormsPredictionsMap form_predictions_; | 241 FormsPredictionsMap form_predictions_; |
243 | 242 |
244 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 243 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
245 | 244 |
246 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 245 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
247 }; | 246 }; |
248 | 247 |
249 } // namespace autofill | 248 } // namespace autofill |
250 | 249 |
251 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 250 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |