diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 02:28:12 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-02 02:28:12 +0000 |
commit | f99c87d5c20b9ece5b77fe0230f9c10bd2f48dcf (patch) | |
tree | fe41e293ce8e9c804626637ea4d09506a290d299 /chrome/browser/plugin_finder.h | |
parent | aa8f1cc58dcac3fe2b5688dabdd45d52c240721a (diff) | |
download | chromium_src-f99c87d5c20b9ece5b77fe0230f9c10bd2f48dcf.zip chromium_src-f99c87d5c20b9ece5b77fe0230f9c10bd2f48dcf.tar.gz chromium_src-f99c87d5c20b9ece5b77fe0230f9c10bd2f48dcf.tar.bz2 |
Add PluginInstaller to encapsulate information about a missing plug-in, and add a separate help URL for each plug-in.
TBR=arv@chromium.org
BUG=62079,102987
TEST=none
Review URL: http://codereview.chromium.org/8664027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_finder.h')
-rw-r--r-- | chrome/browser/plugin_finder.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/chrome/browser/plugin_finder.h b/chrome/browser/plugin_finder.h index e9b18d0..3359edb 100644 --- a/chrome/browser/plugin_finder.h +++ b/chrome/browser/plugin_finder.h @@ -6,8 +6,8 @@ #define CHROME_BROWSER_PLUGIN_FINDER_H_ #pragma once +#include <map> #include <string> -#include <vector> #include "base/callback.h" #include "base/memory/scoped_ptr.h" @@ -19,16 +19,11 @@ class ListValue; } class GURL; +class PluginInstaller; class PluginFinder { public: - // If |display_url| is false, |plugin_url| is the URL of the download page for - // the plug-in, which should be opened in a new tab. If it is true, - // |plugin_url| is the URL of the plug-in installer binary, which can be - // directly downloaded. - typedef base::Callback<void(GURL /* plugin_url */, - string16 /* name */, - bool /* display_url */)> FindPluginCallback; + typedef base::Callback<void(PluginInstaller*)> FindPluginCallback; static PluginFinder* GetInstance(); @@ -47,6 +42,7 @@ class PluginFinder { ~PluginFinder(); scoped_ptr<base::ListValue> plugin_list_; + std::map<std::string, PluginInstaller*> installers_; DISALLOW_COPY_AND_ASSIGN(PluginFinder); }; |