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

Side by Side Diff: components/autofill/content/browser/content_autofill_driver.h

Issue 2745803003: autofill-try
Patch Set: before I leave Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/supports_user_data.h" 11 #include "base/supports_user_data.h"
12 #include "components/autofill/content/common/autofill_agent.mojom.h" 12 #include "components/autofill/content/common/autofill_agent.mojom.h"
13 #include "components/autofill/content/common/autofill_driver.mojom.h" 13 #include "components/autofill/content/common/autofill_driver.mojom.h"
14 #include "components/autofill/core/browser/autofill_driver.h" 14 #include "components/autofill/core/browser/autofill_driver.h"
15 #include "components/autofill/core/browser/autofill_external_delegate.h" 15 #include "components/autofill/core/browser/autofill_external_delegate.h"
16 #include "components/autofill/core/browser/autofill_manager.h" 16 #include "components/autofill/core/browser/autofill_manager.h"
17 #include "mojo/public/cpp/bindings/binding.h" 17 #include "mojo/public/cpp/bindings/binding.h"
18 18
19 namespace content { 19 namespace content {
20 class NavigationHandle; 20 class NavigationHandle;
21 class RenderFrameHost; 21 class RenderFrameHost;
22 } 22 }
23 23
24 namespace autofill { 24 namespace autofill {
25 25
26 class AutofillClient; 26 class AutofillClient;
27 class AutofillProvider;
27 28
28 // Class that drives autofill flow in the browser process based on 29 // Class that drives autofill flow in the browser process based on
29 // communication from the renderer and from the external world. There is one 30 // communication from the renderer and from the external world. There is one
30 // instance per RenderFrameHost. 31 // instance per RenderFrameHost.
31 class ContentAutofillDriver : public AutofillDriver, 32 class ContentAutofillDriver : public AutofillDriver,
32 public mojom::AutofillDriver { 33 public mojom::AutofillDriver {
33 public: 34 public:
34 ContentAutofillDriver( 35 ContentAutofillDriver(
35 content::RenderFrameHost* render_frame_host, 36 content::RenderFrameHost* render_frame_host,
36 AutofillClient* client, 37 AutofillClient* client,
37 const std::string& app_locale, 38 const std::string& app_locale,
38 AutofillManager::AutofillDownloadManagerState enable_download_manager); 39 AutofillManager::AutofillDownloadManagerState enable_download_manager,
40 AutofillProvider* provider);
39 ~ContentAutofillDriver() override; 41 ~ContentAutofillDriver() override;
40 42
41 // Gets the driver for |render_frame_host|. 43 // Gets the driver for |render_frame_host|.
42 static ContentAutofillDriver* GetForRenderFrameHost( 44 static ContentAutofillDriver* GetForRenderFrameHost(
43 content::RenderFrameHost* render_frame_host); 45 content::RenderFrameHost* render_frame_host);
44 46
45 void BindRequest(mojom::AutofillDriverRequest request); 47 void BindRequest(mojom::AutofillDriverRequest request);
46 48
47 // AutofillDriver: 49 // AutofillDriver:
48 bool IsOffTheRecord() const override; 50 bool IsOffTheRecord() const override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // code. 122 // code.
121 std::unique_ptr<AutofillManager> autofill_manager_; 123 std::unique_ptr<AutofillManager> autofill_manager_;
122 124
123 // AutofillExternalDelegate instance that this object instantiates in the 125 // AutofillExternalDelegate instance that this object instantiates in the
124 // case where the Autofill native UI is enabled. 126 // case where the Autofill native UI is enabled.
125 AutofillExternalDelegate autofill_external_delegate_; 127 AutofillExternalDelegate autofill_external_delegate_;
126 128
127 mojo::Binding<mojom::AutofillDriver> binding_; 129 mojo::Binding<mojom::AutofillDriver> binding_;
128 130
129 mojom::AutofillAgentPtr autofill_agent_; 131 mojom::AutofillAgentPtr autofill_agent_;
132
133 AutofillProvider* provider_;
130 }; 134 };
131 135
132 } // namespace autofill 136 } // namespace autofill
133 137
134 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ 138 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698