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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/chrome_autofill_client.h
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.h b/chrome/browser/ui/autofill/chrome_autofill_client.h
similarity index 76%
rename from chrome/browser/ui/autofill/tab_autofill_manager_delegate.h
rename to chrome/browser/ui/autofill/chrome_autofill_client.h
index 6c48706bd94cd3573bb31d9a9897a2b746349a5d..52976f1f347034452a3e3220029398226e56fb60 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.h
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
-#define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
+#ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
+#define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/i18n/rtl.h"
#include "base/memory/weak_ptr.h"
-#include "components/autofill/core/browser/autofill_manager_delegate.h"
+#include "components/autofill/core/browser/autofill_client.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
@@ -25,21 +25,20 @@ class AutofillDialogController;
class AutofillPopupControllerImpl;
struct FormData;
-// Chrome implementation of AutofillManagerDelegate.
-class TabAutofillManagerDelegate
- : public AutofillManagerDelegate,
- public content::WebContentsUserData<TabAutofillManagerDelegate>,
+// Chrome implementation of AutofillClient.
+class ChromeAutofillClient
+ : public AutofillClient,
+ public content::WebContentsUserData<ChromeAutofillClient>,
public content::WebContentsObserver {
public:
- virtual ~TabAutofillManagerDelegate();
+ virtual ~ChromeAutofillClient();
// Called when the tab corresponding to |this| instance is activated.
void TabActivated();
- // AutofillManagerDelegate implementation.
+ // AutofillClient:
virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
- virtual scoped_refptr<AutofillWebDataService>
- GetDatabase() OVERRIDE;
+ virtual scoped_refptr<AutofillWebDataService> GetDatabase() OVERRIDE;
virtual PrefService* GetPrefs() OVERRIDE;
virtual void HideRequestAutocompleteDialog() OVERRIDE;
virtual void ShowAutofillSettings() OVERRIDE;
@@ -82,16 +81,16 @@ class TabAutofillManagerDelegate
}
private:
- explicit TabAutofillManagerDelegate(content::WebContents* web_contents);
- friend class content::WebContentsUserData<TabAutofillManagerDelegate>;
+ explicit ChromeAutofillClient(content::WebContents* web_contents);
+ friend class content::WebContentsUserData<ChromeAutofillClient>;
content::WebContents* const web_contents_;
base::WeakPtr<AutofillDialogController> dialog_controller_;
base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
- DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate);
+ DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient);
};
} // namespace autofill
-#endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
+#endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ('k') | chrome/browser/ui/autofill/chrome_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698