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

Unified Diff: content/browser/plugin_service.h

Issue 8493019: Refactor PluginService to take PluginList as a dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove TestPluginService Created 9 years, 1 month 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: content/browser/plugin_service.h
diff --git a/content/browser/plugin_service.h b/content/browser/plugin_service.h
index 6be2c4f3623da48ed3d5fab10ca438be07473a8b..24d0db62dc4806da06ab927748a0288f11513108 100644
--- a/content/browser/plugin_service.h
+++ b/content/browser/plugin_service.h
@@ -81,6 +81,9 @@ class CONTENT_EXPORT PluginService
// Returns the PluginService singleton.
static PluginService* GetInstance();
+ // Must be called on the instance to finish initialization.
+ void Init(webkit::npapi::PluginList* plugin_list);
+
// Starts watching for changes in the list of installed plug-ins.
void StartWatchingPlugins();
@@ -173,7 +176,6 @@ class CONTENT_EXPORT PluginService
}
content::PluginServiceFilter* filter() { return filter_; }
-
// The following functions are wrappers around webkit::npapi::PluginList.
// These must be used instead of those in order to ensure that we have a
// single global list in the component build and so that we don't
@@ -245,6 +247,9 @@ class CONTENT_EXPORT PluginService
base::files::FilePathWatcher::Delegate* delegate);
#endif
+ // The plugin list instance.
+ webkit::npapi::PluginList* plugin_list_;
+
// The browser's UI locale.
const std::string ui_locale_;

Powered by Google App Engine
This is Rietveld 408576698