| 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_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool OnMessageReceived(const IPC::Message& message) override; | 120 bool OnMessageReceived(const IPC::Message& message) override; |
| 121 void DidCommitProvisionalLoad(bool is_new_navigation, | 121 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 122 bool is_same_page_navigation) override; | 122 bool is_same_page_navigation) override; |
| 123 void DidFinishDocumentLoad() override; | 123 void DidFinishDocumentLoad() override; |
| 124 void WillSendSubmitEvent(const blink::WebFormElement& form) override; | 124 void WillSendSubmitEvent(const blink::WebFormElement& form) override; |
| 125 void WillSubmitForm(const blink::WebFormElement& form) override; | 125 void WillSubmitForm(const blink::WebFormElement& form) override; |
| 126 void DidChangeScrollOffset() override; | 126 void DidChangeScrollOffset() override; |
| 127 void FocusedNodeChanged(const blink::WebNode& node) override; | 127 void FocusedNodeChanged(const blink::WebNode& node) override; |
| 128 void OnDestruct() override; | 128 void OnDestruct() override; |
| 129 | 129 |
| 130 // Fires IPC messages for a given form submission. Will always fire |
| 131 // AutofillHostMsg_WillSubmitForm, and will also fire |
| 132 // AutofillHostMsg_FormSubmitted if |form_submitted| is true. Respects |
| 133 // submitted_forms_ contents to ensure no duplicate submissions of |
| 134 // AutofillHostMsg_WillSubmitForm. |
| 135 void FireHostSubmitEvents(const blink::WebFormElement& form, |
| 136 bool form_submitted); |
| 137 void FireHostSubmitEvents(const FormData& form_data, bool form_submitted); |
| 138 |
| 130 // Shuts the AutofillAgent down on RenderFrame deletion. Safe to call multiple | 139 // Shuts the AutofillAgent down on RenderFrame deletion. Safe to call multiple |
| 131 // times. | 140 // times. |
| 132 void Shutdown(); | 141 void Shutdown(); |
| 133 | 142 |
| 134 // Pass-through from LegacyAutofillAgent. This correlates with the | 143 // Pass-through from LegacyAutofillAgent. This correlates with the |
| 135 // RenderViewObserver method. | 144 // RenderViewObserver method. |
| 136 void FocusChangeComplete(); | 145 void FocusChangeComplete(); |
| 137 | 146 |
| 138 // PageClickListener: | 147 // PageClickListener: |
| 139 void FormControlElementClicked(const blink::WebFormControlElement& element, | 148 void FormControlElementClicked(const blink::WebFormControlElement& element, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 mojom::AutofillDriverPtr mojo_autofill_driver_; | 294 mojom::AutofillDriverPtr mojo_autofill_driver_; |
| 286 | 295 |
| 287 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 296 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
| 288 | 297 |
| 289 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 298 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
| 290 }; | 299 }; |
| 291 | 300 |
| 292 } // namespace autofill | 301 } // namespace autofill |
| 293 | 302 |
| 294 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 303 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
| OLD | NEW |