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

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

Issue 2012763003: First pass at refactoring autofill_agent to eventually incorporate Synthetic Form logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_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
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 fire
131 // AutofillHostMsg_WillSubmitForm, AutofillHostMsg_FormSubmitted, or both,
132 // depending on the booleans given. Respects submitted_forms_ contents to
133 // ensure no duplicate submissions of AutofillHostMsg_WillSubmitForm.
134 void FireHostSubmitEvents(const blink::WebFormElement& form,
Mathieu 2016/05/25 17:48:55 it's good to have flexible functions, but in this
tmartino 2016/05/25 18:39:42 Done
135 bool willSubmitForm,
Mathieu 2016/05/25 17:48:55 nit:use_this_name_style
tmartino 2016/05/25 18:39:42 whoops_done
136 bool formSubmitted);
137 void FireHostSubmitEvents(const FormData& form_data,
138 bool willSubmitForm,
139 bool formSubmitted);
140
130 // Shuts the AutofillAgent down on RenderFrame deletion. Safe to call multiple 141 // Shuts the AutofillAgent down on RenderFrame deletion. Safe to call multiple
131 // times. 142 // times.
132 void Shutdown(); 143 void Shutdown();
133 144
134 // Pass-through from LegacyAutofillAgent. This correlates with the 145 // Pass-through from LegacyAutofillAgent. This correlates with the
135 // RenderViewObserver method. 146 // RenderViewObserver method.
136 void FocusChangeComplete(); 147 void FocusChangeComplete();
137 148
138 // PageClickListener: 149 // PageClickListener:
139 void FormControlElementClicked(const blink::WebFormControlElement& element, 150 void FormControlElementClicked(const blink::WebFormControlElement& element,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 mojom::AutofillDriverPtr mojo_autofill_driver_; 296 mojom::AutofillDriverPtr mojo_autofill_driver_;
286 297
287 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 298 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
288 299
289 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 300 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
290 }; 301 };
291 302
292 } // namespace autofill 303 } // namespace autofill
293 304
294 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 305 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698