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

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

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/supports_user_data.h" 11 #include "base/supports_user_data.h"
12 #include "components/autofill/content/browser/request_autocomplete_manager.h" 12 #include "components/autofill/content/browser/request_autocomplete_manager.h"
13 #include "components/autofill/core/browser/autofill_driver.h" 13 #include "components/autofill/core/browser/autofill_driver.h"
14 #include "components/autofill/core/browser/autofill_external_delegate.h" 14 #include "components/autofill/core/browser/autofill_external_delegate.h"
15 #include "components/autofill/core/browser/autofill_manager.h" 15 #include "components/autofill/core/browser/autofill_manager.h"
16 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
17 17
18 namespace content { 18 namespace content {
19 class WebContents; 19 class WebContents;
20 } 20 }
21 21
22 namespace IPC { 22 namespace IPC {
23 class Message; 23 class Message;
24 } 24 }
25 25
26 namespace autofill { 26 namespace autofill {
27 27
28 class AutofillContext; 28 class AutofillContext;
29 class AutofillManagerDelegate; 29 class AutofillClient;
30 30
31 // Class that drives autofill flow in the browser process based on 31 // Class that drives autofill flow in the browser process based on
32 // communication from the renderer and from the external world. There is one 32 // communication from the renderer and from the external world. There is one
33 // instance per WebContents. 33 // instance per WebContents.
34 class ContentAutofillDriver : public AutofillDriver, 34 class ContentAutofillDriver : public AutofillDriver,
35 public content::WebContentsObserver, 35 public content::WebContentsObserver,
36 public base::SupportsUserData::Data { 36 public base::SupportsUserData::Data {
37 public: 37 public:
38 static void CreateForWebContentsAndDelegate( 38 static void CreateForWebContentsAndDelegate(
39 content::WebContents* contents, 39 content::WebContents* contents,
40 autofill::AutofillManagerDelegate* delegate, 40 AutofillClient* client,
41 const std::string& app_locale, 41 const std::string& app_locale,
42 AutofillManager::AutofillDownloadManagerState enable_download_manager); 42 AutofillManager::AutofillDownloadManagerState enable_download_manager);
43 static ContentAutofillDriver* FromWebContents(content::WebContents* contents); 43 static ContentAutofillDriver* FromWebContents(content::WebContents* contents);
44 44
45 // AutofillDriver: 45 // AutofillDriver:
46 virtual bool IsOffTheRecord() const OVERRIDE; 46 virtual bool IsOffTheRecord() const OVERRIDE;
47 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; 47 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE;
48 virtual base::SequencedWorkerPool* GetBlockingPool() OVERRIDE; 48 virtual base::SequencedWorkerPool* GetBlockingPool() OVERRIDE;
49 virtual bool RendererIsAvailable() OVERRIDE; 49 virtual bool RendererIsAvailable() OVERRIDE;
50 virtual void SendFormDataToRenderer(int query_id, 50 virtual void SendFormDataToRenderer(int query_id,
(...skipping 16 matching lines...) Expand all
67 67
68 AutofillExternalDelegate* autofill_external_delegate() { 68 AutofillExternalDelegate* autofill_external_delegate() {
69 return &autofill_external_delegate_; 69 return &autofill_external_delegate_;
70 } 70 }
71 71
72 AutofillManager* autofill_manager() { return autofill_manager_.get(); } 72 AutofillManager* autofill_manager() { return autofill_manager_.get(); }
73 73
74 protected: 74 protected:
75 ContentAutofillDriver( 75 ContentAutofillDriver(
76 content::WebContents* web_contents, 76 content::WebContents* web_contents,
77 autofill::AutofillManagerDelegate* delegate, 77 AutofillClient* client,
78 const std::string& app_locale, 78 const std::string& app_locale,
79 AutofillManager::AutofillDownloadManagerState enable_download_manager); 79 AutofillManager::AutofillDownloadManagerState enable_download_manager);
80 virtual ~ContentAutofillDriver(); 80 virtual ~ContentAutofillDriver();
81 81
82 // content::WebContentsObserver: 82 // content::WebContentsObserver:
83 virtual void DidNavigateMainFrame( 83 virtual void DidNavigateMainFrame(
84 const content::LoadCommittedDetails& details, 84 const content::LoadCommittedDetails& details,
85 const content::FrameNavigateParams& params) OVERRIDE; 85 const content::FrameNavigateParams& params) OVERRIDE;
86 virtual void NavigationEntryCommitted( 86 virtual void NavigationEntryCommitted(
87 const content::LoadCommittedDetails& load_details) OVERRIDE; 87 const content::LoadCommittedDetails& load_details) OVERRIDE;
(...skipping 13 matching lines...) Expand all
101 // case where the Autofill native UI is enabled. 101 // case where the Autofill native UI is enabled.
102 AutofillExternalDelegate autofill_external_delegate_; 102 AutofillExternalDelegate autofill_external_delegate_;
103 103
104 // Driver for the interactive autocomplete dialog. 104 // Driver for the interactive autocomplete dialog.
105 RequestAutocompleteManager request_autocomplete_manager_; 105 RequestAutocompleteManager request_autocomplete_manager_;
106 }; 106 };
107 107
108 } // namespace autofill 108 } // namespace autofill
109 109
110 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_ 110 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_
OLDNEW
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/browser/content_autofill_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698