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

Unified Diff: content/common/pepper_plugin_registry.h

Issue 6869051: Move PepperPluginRegistry to content, while leaving the Chrome specific bits (NaCl, registration ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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/common/content_client.h ('k') | content/common/pepper_plugin_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/pepper_plugin_registry.h
===================================================================
--- content/common/pepper_plugin_registry.h (revision 81920)
+++ content/common/pepper_plugin_registry.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_
-#define CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_
+#ifndef CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
+#define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
#pragma once
#include <list>
@@ -32,6 +32,9 @@
// True when this plugin should be run out of process. Defaults to false.
bool is_out_of_process;
+ // Whether the plugin is enabled. Defaults to true.
+ bool enabled;
+
FilePath path; // Internal plugins have "internal-[name]" as path.
std::string name;
std::string description;
@@ -43,14 +46,6 @@
webkit::ppapi::PluginModule::EntryPoints internal_entry_points;
};
-struct NaClModuleInfo {
- NaClModuleInfo();
- ~NaClModuleInfo();
-
- GURL url;
- std::string mime_type;
-};
-
// This class holds references to all of the known pepper plugin modules.
//
// It keeps two lists. One list of preloaded in-process modules, and one list
@@ -62,8 +57,6 @@
public:
~PepperPluginRegistry();
- static const char* kPDFPluginName;
-
static PepperPluginRegistry* GetInstance();
// Computes the list of known pepper plugins.
@@ -100,22 +93,7 @@
// ModuleLifetime implementation.
virtual void PluginModuleDead(webkit::ppapi::PluginModule* dead_module);
- // We implement some Pepper plug-ins using NaCl to take advantage of NaCl's
- // strong sandbox. Typically, these NaCl modules are stored in extensions
- // and registered here. Not all NaCl modules need to register for a MIME
- // type, just the ones that are responsible for rendering a particular MIME
- // type, like application/pdf. Note: We only register NaCl modules in the
- // browser process.
- void RegisterNaClModule(const GURL& url, const std::string& mime_type);
- void UnregisterNaClModule(const GURL& url);
-
- // Call UpdatePluginListWithNaClModules() after registering or unregistering
- // a NaCl module to see those changes reflected in the PluginList.
- void UpdatePluginListWithNaClModules();
-
private:
- typedef std::list<NaClModuleInfo> NaClModuleInfoList;
-
PepperPluginRegistry();
// Dispatcher::Delegate implementation.
@@ -123,8 +101,6 @@
virtual base::WaitableEvent* GetShutdownEvent();
virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet();
- NaClModuleInfoList::iterator FindNaClModule(const GURL& url);
-
// All known pepper plugins.
std::vector<PepperPluginInfo> plugin_list_;
@@ -143,9 +119,7 @@
typedef std::map<FilePath, webkit::ppapi::PluginModule*> NonOwningModuleMap;
NonOwningModuleMap live_modules_;
- NaClModuleInfoList nacl_module_list_;
-
DISALLOW_COPY_AND_ASSIGN(PepperPluginRegistry);
};
-#endif // CHROME_COMMON_PEPPER_PLUGIN_REGISTRY_H_
+#endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
« no previous file with comments | « content/common/content_client.h ('k') | content/common/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698