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

Unified Diff: content/common/plugin_list.h

Issue 19844003: Remove webkit/plugins/npapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove GetDefaultWindowParent Created 7 years, 5 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
Index: content/common/plugin_list.h
===================================================================
--- content/common/plugin_list.h (revision 212595)
+++ content/common/plugin_list.h (working copy)
@@ -99,7 +99,8 @@
std::vector<webkit::WebPluginMimeType>* parsed_mime_types);
// Get all the plugins synchronously, loading them if necessary.
- void GetPlugins(std::vector<webkit::WebPluginInfo>* plugins);
+ void GetPlugins(std::vector<webkit::WebPluginInfo>* plugins,
+ bool include_npapi);
// Copies the list of plug-ins into |plugins| without loading them.
// Returns true if the list of plugins is up-to-date.
@@ -122,6 +123,7 @@
const std::string& mime_type,
bool allow_wildcard,
bool* use_stale,
+ bool include_npapi,
std::vector<webkit::WebPluginInfo>* info,
std::vector<std::string>* actual_mime_types);
@@ -135,7 +137,8 @@
// using a different instance of this class.
// Computes a list of all plugins to potentially load from all sources.
- void GetPluginPathsToLoad(std::vector<base::FilePath>* plugin_paths);
+ void GetPluginPathsToLoad(std::vector<base::FilePath>* plugin_paths,
+ bool include_npapi);
// Clears the internal list of Plugins and copies them from the vector.
void SetPlugins(const std::vector<webkit::WebPluginInfo>& plugins);
@@ -174,13 +177,8 @@
PluginList();
- // Implements all IO dependent operations of the LoadPlugins method so that
- // test classes can mock these out.
- virtual void LoadPluginsIntoPluginListInternal(
- std::vector<webkit::WebPluginInfo>* plugins);
-
// Load all plugins from the default plugins directory.
- void LoadPlugins();
+ void LoadPlugins(bool include_npapi);
// Walks a directory and produces a list of all the plugins to potentially
// load in that directory.

Powered by Google App Engine
This is Rietveld 408576698