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

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

Issue 2189513004: Blink: prevent didAssociateFormControls notification while parsing the document. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // guaranteed to outlive AutofillAgent. 54 // guaranteed to outlive AutofillAgent.
55 AutofillAgent(content::RenderFrame* render_frame, 55 AutofillAgent(content::RenderFrame* render_frame,
56 PasswordAutofillAgent* password_autofill_manager, 56 PasswordAutofillAgent* password_autofill_manager,
57 PasswordGenerationAgent* password_generation_agent); 57 PasswordGenerationAgent* password_generation_agent);
58 ~AutofillAgent() override; 58 ~AutofillAgent() override;
59 59
60 void BindRequest(mojom::AutofillAgentRequest request); 60 void BindRequest(mojom::AutofillAgentRequest request);
61 61
62 protected: 62 protected:
63 // blink::WebAutofillClient: 63 // blink::WebAutofillClient:
64 void didAssociateFormControls( 64 void didAssociateFormControls() override;
65 const blink::WebVector<blink::WebNode>& nodes) override;
66 65
67 private: 66 private:
68 // Functor used as a simplified comparison function for FormData. Only 67 // Functor used as a simplified comparison function for FormData. Only
69 // compares forms at a high level (notably name, origin, action). 68 // compares forms at a high level (notably name, origin, action).
70 struct FormDataCompare { 69 struct FormDataCompare {
71 bool operator()(const FormData& lhs, const FormData& rhs) const; 70 bool operator()(const FormData& lhs, const FormData& rhs) const;
72 }; 71 };
73 72
74 // Thunk class for RenderViewObserver methods that haven't yet been migrated 73 // Thunk class for RenderViewObserver methods that haven't yet been migrated
75 // to RenderFrameObserver. Should eventually be removed. 74 // to RenderFrameObserver. Should eventually be removed.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 mojom::AutofillDriverPtr mojo_autofill_driver_; 305 mojom::AutofillDriverPtr mojo_autofill_driver_;
307 306
308 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 307 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
309 308
310 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 309 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
311 }; 310 };
312 311
313 } // namespace autofill 312 } // namespace autofill
314 313
315 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 314 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698