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

Unified Diff: chrome/browser/plugin_installer_infobar_delegate.h

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « chrome/browser/plugin_installer.cc ('k') | chrome/browser/plugin_installer_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_installer_infobar_delegate.h
diff --git a/chrome/browser/plugin_installer_infobar_delegate.h b/chrome/browser/plugin_installer_infobar_delegate.h
index 3d2f68fa0db2d94be3705e61dec92b1d59762501..0ae895fcdd3784d88225150d93f4d23c8d542be8 100644
--- a/chrome/browser/plugin_installer_infobar_delegate.h
+++ b/chrome/browser/plugin_installer_infobar_delegate.h
@@ -7,16 +7,20 @@
#pragma once
#include "base/callback.h"
+#include "chrome/browser/plugin_installer_observer.h"
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
#include "googleurl/src/gurl.h"
// The main purpose for this class is to popup/close the infobar when there is
// a missing plugin.
-class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate {
+class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate,
+ public PluginInstallerObserver {
public:
// Shows an infobar asking whether to install the plugin with the name
// |plugin_name|. When the user accepts, |callback| is called.
- PluginInstallerInfoBarDelegate(InfoBarTabHelper* infobar_helper,
+ // If |installer| is not NULL, registers itself as its observer.
+ PluginInstallerInfoBarDelegate(PluginInstaller* installer,
+ InfoBarTabHelper* infobar_helper,
const string16& plugin_name,
const GURL& learn_more_url,
const base::Closure& callback);
@@ -35,6 +39,9 @@ class PluginInstallerInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual string16 GetLinkText() const OVERRIDE;
virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
+ // PluginInstallerObserver:
+ virtual void DidStartDownload() OVERRIDE;
+
string16 plugin_name_;
GURL learn_more_url_;
base::Closure callback_;
« no previous file with comments | « chrome/browser/plugin_installer.cc ('k') | chrome/browser/plugin_installer_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698