summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-23 14:58:46 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-23 14:58:46 +0000
commit1270a538fe6431bd61af27ddbf78ac98afc75d7d (patch)
treea524e6a84984af12bdb2d6a685ae871f06e6c3f6 /chrome/browser/ui
parent866b91c5a6d3f03d68378952f8b60b4407c4741a (diff)
downloadchromium_src-1270a538fe6431bd61af27ddbf78ac98afc75d7d.zip
chromium_src-1270a538fe6431bd61af27ddbf78ac98afc75d7d.tar.gz
chromium_src-1270a538fe6431bd61af27ddbf78ac98afc75d7d.tar.bz2
Get rid of references to autofill from src\content, specifically from TabContents
Moves the tab's instance of AutofillManager from TabContents to TabContentsWrapper as a helper class. BUG=77087 TEST=FormStructureBrowserTest.*:TranslateManagerTest.* Review URL: http://codereview.chromium.org/6722018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/tab_contents/tab_contents_wrapper.cc2
-rw-r--r--chrome/browser/ui/tab_contents/tab_contents_wrapper.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
index 9ee3058..fd1e159 100644
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "base/lazy_instance.h"
+#include "chrome/browser/autofill/autofill_manager.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
#include "chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h"
@@ -46,6 +47,7 @@ TabContentsWrapper::TabContentsWrapper(TabContents* contents)
property_accessor()->SetProperty(contents->property_bag(), this);
// Create the tab helpers.
+ autofill_manager_.reset(new AutofillManager(contents));
find_tab_helper_.reset(new FindTabHelper(contents));
password_manager_delegate_.reset(new PasswordManagerDelegateImpl(contents));
password_manager_.reset(
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.h b/chrome/browser/ui/tab_contents/tab_contents_wrapper.h
index c0af227..d7d23ad 100644
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.h
+++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.h
@@ -19,6 +19,7 @@ namespace prerender {
class PrerenderObserver;
}
+class AutofillManager;
class Extension;
class FileSelectObserver;
class FindTabHelper;
@@ -89,6 +90,8 @@ class TabContentsWrapper : public NotificationObserver,
// Tab Helpers ---------------------------------------------------------------
+ AutofillManager* autofill_manager() { return autofill_manager_.get(); }
+
FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
PasswordManager* password_manager() { return password_manager_.get(); }
@@ -143,6 +146,8 @@ class TabContentsWrapper : public NotificationObserver,
// (These provide API for callers and have a getter function listed in the
// "Tab Helpers" section in the member functions area, above.)
+ scoped_ptr<AutofillManager> autofill_manager_;
+
scoped_ptr<FindTabHelper> find_tab_helper_;
// PasswordManager and its delegate. The delegate must outlive the manager,