summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google/google_url_tracker.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 15:07:08 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 15:07:08 +0000
commit95a33ed6cb8688573249f7cd7032d23518879c6d (patch)
tree77c2f8d28412caa3aeb6cdb94de420bb811113d6 /chrome/browser/google/google_url_tracker.h
parent14ea9bf12826e740fd77fda742e67605df06ce4a (diff)
downloadchromium_src-95a33ed6cb8688573249f7cd7032d23518879c6d.zip
chromium_src-95a33ed6cb8688573249f7cd7032d23518879c6d.tar.gz
chromium_src-95a33ed6cb8688573249f7cd7032d23518879c6d.tar.bz2
Move infobar handling to a tab helper.
Part 2: - Removed TabContentsWrapper from core infobar classes - Made InfoBarTabHelper the owner of the infobar delegates - Removed all owner references from the delegate subclasses BUG=94741 TEST=no visible change Review URL: http://codereview.chromium.org/7862003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103463 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google/google_url_tracker.h')
-rw-r--r--chrome/browser/google/google_url_tracker.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/google/google_url_tracker.h b/chrome/browser/google/google_url_tracker.h
index 5fd97ce..f784326 100644
--- a/chrome/browser/google/google_url_tracker.h
+++ b/chrome/browser/google/google_url_tracker.h
@@ -85,7 +85,7 @@ class GoogleURLTracker : public URLFetcher::Delegate,
private:
friend class GoogleURLTrackerTest;
- typedef InfoBarDelegate* (*InfobarCreator)(TabContents*,
+ typedef InfoBarDelegate* (*InfobarCreator)(InfoBarTabHelper*,
GoogleURLTracker*,
const GURL&);
@@ -164,7 +164,7 @@ class GoogleURLTracker : public URLFetcher::Delegate,
// code can subclass it.
class GoogleURLTrackerInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
- GoogleURLTrackerInfoBarDelegate(TabContents* tab_contents,
+ GoogleURLTrackerInfoBarDelegate(InfoBarTabHelper* infobar_helper,
GoogleURLTracker* google_url_tracker,
const GURL& new_google_url);
@@ -188,8 +188,6 @@ class GoogleURLTrackerInfoBarDelegate : public ConfirmInfoBarDelegate {
// Returns the portion of the appropriate hostname to display.
string16 GetHost(bool new_host) const;
- TabContents* tab_contents_;
-
DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate);
};