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

Unified Diff: content/renderer/pepper/pepper_plugin_registry.h

Issue 20172004: Split PepperPluginRegistry into the pieces that are needed in each process. content/common only nee… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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/renderer/pepper/pepper_plugin_registry.h
===================================================================
--- content/renderer/pepper/pepper_plugin_registry.h (revision 213578)
+++ content/renderer/pepper/pepper_plugin_registry.h (working copy)
@@ -2,25 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
-#define CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
+#ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_REGISTRY_H_
+#define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_REGISTRY_H_
#include <list>
#include <map>
+#include "base/memory/ref_counted.h"
#include "content/public/common/pepper_plugin_info.h"
-// TODO(jam): refactor
-#include "content/renderer/pepper/plugin_module.h"
+namespace webkit {
+namespace ppapi {
+class PluginModule;
+}
+}
namespace content {
-// Constructs a PepperPluginInfo from a WebPluginInfo. Returns false if
-// the operation is not possible, in particular the WebPluginInfo::type
-// must be one of the pepper types.
-bool MakePepperPluginInfo(const WebPluginInfo& webplugin_info,
- PepperPluginInfo* pepper_info);
-
// 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
@@ -32,20 +30,6 @@
static PepperPluginRegistry* GetInstance();
- // Computes the list of known pepper plugins.
- //
- // This method is static so that it can be used by the browser process, which
- // has no need to load the pepper plugin modules. It will re-compute the
- // plugin list every time it is called. Generally, code in the registry should
- // be using the cached plugin_list_ instead.
- CONTENT_EXPORT static void ComputeList(
- std::vector<PepperPluginInfo>* plugins);
-
- // Loads the (native) libraries but does not initialize them (i.e., does not
- // call PPP_InitializeModule). This is needed by the zygote on Linux to get
- // access to the plugins before entering the sandbox.
- static void PreloadModules();
-
// Retrieves the information associated with the given plugin info. The
// return value will be NULL if there is no such plugin.
//
@@ -95,4 +79,4 @@
} // namespace content
-#endif // CONTENT_COMMON_PEPPER_PLUGIN_REGISTRY_H_
+#endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_REGISTRY_H_
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/pepper/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698