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

Unified Diff: chrome/browser/extensions/extension_infobar_delegate.h

Issue 6249010: Cleanup: de-inline a bunch of classes, rename and move "PluginInstaller" to "... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/extensions/extension_infobar_delegate.h
===================================================================
--- chrome/browser/extensions/extension_infobar_delegate.h (revision 72158)
+++ chrome/browser/extensions/extension_infobar_delegate.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -27,30 +27,33 @@
virtual ~DelegateObserver() {}
};
- ExtensionInfoBarDelegate(Browser* browser, TabContents* contents,
- const Extension* extension, const GURL& url);
- ~ExtensionInfoBarDelegate();
-
+ ExtensionInfoBarDelegate(Browser* browser,
+ TabContents* contents,
+ const Extension* extension,
+ const GURL& url);
const Extension* extension() { return extension_; }
ExtensionHost* extension_host() { return extension_host_.get(); }
void set_observer(DelegateObserver* observer) { observer_ = observer; }
- // Overridden from InfoBarDelegate:
+ bool closing() { return closing_; }
+
+ private:
+ virtual ~ExtensionInfoBarDelegate();
+
+ // InfoBarDelegate:
+ virtual InfoBar* CreateInfoBar();
+ virtual bool EqualsDelegate(InfoBarDelegate* delegate) const;
virtual void InfoBarDismissed();
- virtual bool EqualsDelegate(InfoBarDelegate* delegate) const;
virtual void InfoBarClosed();
- virtual InfoBar* CreateInfoBar();
+ virtual Type GetInfoBarType() const;
virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
- virtual Type GetInfoBarType();
- // Overridden from NotificationObserver:
+ // NotificationObserver:
virtual void Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details);
- bool closing() { return closing_; }
- private:
// The extension host we are showing the InfoBar for. The delegate needs to
// own this since the InfoBar gets deleted and recreated when you switch tabs
// and come back (and we don't want the user's interaction with the InfoBar to
@@ -61,9 +64,7 @@
DelegateObserver* observer_;
const Extension* extension_;
-
TabContents* tab_contents_;
-
NotificationRegistrar registrar_;
// Whether we are currently animating to close. This is used to ignore
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/extensions/extension_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698