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

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

Issue 2274783002: Revert of [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs to mojo. (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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // guaranteed to outlive AutofillAgent. 55 // guaranteed to outlive AutofillAgent.
56 AutofillAgent(content::RenderFrame* render_frame, 56 AutofillAgent(content::RenderFrame* render_frame,
57 PasswordAutofillAgent* password_autofill_manager, 57 PasswordAutofillAgent* password_autofill_manager,
58 PasswordGenerationAgent* password_generation_agent); 58 PasswordGenerationAgent* password_generation_agent);
59 ~AutofillAgent() override; 59 ~AutofillAgent() override;
60 60
61 void BindRequest(mojom::AutofillAgentRequest request); 61 void BindRequest(mojom::AutofillAgentRequest request);
62 62
63 const mojom::AutofillDriverPtr& GetAutofillDriver(); 63 const mojom::AutofillDriverPtr& GetAutofillDriver();
64 64
65 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver();
66
67 // mojom::AutofillAgent: 65 // mojom::AutofillAgent:
68 void FirstUserGestureObservedInTab() override; 66 void FirstUserGestureObservedInTab() override;
69 void FillForm(int32_t id, const FormData& form) override; 67 void FillForm(int32_t id, const FormData& form) override;
70 void PreviewForm(int32_t id, const FormData& form) override; 68 void PreviewForm(int32_t id, const FormData& form) override;
71 void FieldTypePredictionsAvailable( 69 void FieldTypePredictionsAvailable(
72 const std::vector<FormDataPredictions>& forms) override; 70 const std::vector<FormDataPredictions>& forms) override;
73 void ClearForm() override; 71 void ClearForm() override;
74 void ClearPreviewedForm() override; 72 void ClearPreviewedForm() override;
75 void FillFieldWithValue(const base::string16& value) override; 73 void FillFieldWithValue(const base::string16& value) override;
76 void PreviewFieldWithValue(const base::string16& value) override; 74 void PreviewFieldWithValue(const base::string16& value) override;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 bool is_popup_possibly_visible_; 293 bool is_popup_possibly_visible_;
296 294
297 // If the generation popup is possibly visible. This is tracked to prevent 295 // If the generation popup is possibly visible. This is tracked to prevent
298 // generation UI from displaying at the same time as password manager UI. 296 // generation UI from displaying at the same time as password manager UI.
299 // This is needed because generation is shown on field focus vs. field click 297 // This is needed because generation is shown on field focus vs. field click
300 // for the password manager. TODO(gcasto): Have both UIs show on focus. 298 // for the password manager. TODO(gcasto): Have both UIs show on focus.
301 bool is_generation_popup_possibly_visible_; 299 bool is_generation_popup_possibly_visible_;
302 300
303 mojo::Binding<mojom::AutofillAgent> binding_; 301 mojo::Binding<mojom::AutofillAgent> binding_;
304 302
305 mojom::AutofillDriverPtr autofill_driver_; 303 mojom::AutofillDriverPtr mojo_autofill_driver_;
306 304
307 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 305 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
308 306
309 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 307 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
310 }; 308 };
311 309
312 } // namespace autofill 310 } // namespace autofill
313 311
314 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 312 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/BUILD.gn ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698