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

Unified Diff: webkit/plugins/npapi/plugin_list.h

Issue 16369004: Adding --disable-plugins-discovery command line switch to not load third-party plugins from common … (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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/public/common/content_switches.cc ('k') | webkit/plugins/npapi/plugin_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_list.h
===================================================================
--- webkit/plugins/npapi/plugin_list.h (revision 205261)
+++ webkit/plugins/npapi/plugin_list.h (working copy)
@@ -65,6 +65,10 @@
const std::string& mime_type,
bool allow_wildcard);
+ // Disables discovery of third_party plugins in standard places next time
+ // plugins are loaded.
+ void DisablePluginsDiscovery();
+
// Cause the plugin list to refresh next time they are accessed, regardless
// of whether they are already loaded.
void RefreshPlugins();
@@ -284,6 +288,10 @@
// accessed on multiple threads.
base::Lock lock_;
+ // Flag indicating whether third_party plugins will be searched for
+ // in common places.
+ bool plugins_discovery_disabled_;
+
DISALLOW_COPY_AND_ASSIGN(PluginList);
};
« no previous file with comments | « content/public/common/content_switches.cc ('k') | webkit/plugins/npapi/plugin_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698