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

Unified Diff: content/common/plugin_list.h

Issue 128773002: Restart plugin loading only if the plugin list has actually become stale. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 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
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/common/plugin_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/plugin_list.h
diff --git a/content/common/plugin_list.h b/content/common/plugin_list.h
index 1205238706bc0578553bed5f26eaf88f05bc0686..87319dabaf3b21e0720a883ad6cfc75489f5ab02 100644
--- a/content/common/plugin_list.h
+++ b/content/common/plugin_list.h
@@ -139,6 +139,13 @@ class CONTENT_EXPORT PluginList {
void GetPluginPathsToLoad(std::vector<base::FilePath>* plugin_paths,
bool include_npapi);
+ // Signals that plugin loading will start. This method should be called before
+ // loading plugins with a different instance of this class. Returns false if
+ // the plugin list is up to date.
+ // When loading has finished, SetPlugins() should be called with the list of
+ // plugins.
+ bool PrepareForPluginLoading();
+
// Clears the internal list of Plugins and copies them from the vector.
void SetPlugins(const std::vector<WebPluginInfo>& plugins);
« no previous file with comments | « content/browser/plugin_service_impl.cc ('k') | content/common/plugin_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698