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

Unified Diff: chrome/common/pepper_plugin_registry.h

Issue 2843018: Add in support for internal pepper plugins into the PepperPluginRegistry and pepper::PluginModule. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Add new entrypoint to match ToT ppapi Created 10 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 | « chrome/common/DEPS ('k') | chrome/common/pepper_plugin_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pepper_plugin_registry.h
diff --git a/chrome/common/pepper_plugin_registry.h b/chrome/common/pepper_plugin_registry.h
index 940a1ba9551dbda9e6c8bf121cc364128e7a7c8c..9949ed46be6898480e357fc121faf04e6119d005 100644
--- a/chrome/common/pepper_plugin_registry.h
+++ b/chrome/common/pepper_plugin_registry.h
@@ -7,11 +7,12 @@
#include <string>
#include <map>
+#include <vector>
#include "webkit/glue/plugins/pepper_plugin_module.h"
struct PepperPluginInfo {
- FilePath path;
+ FilePath path; // Internal plugins are of the form "internal-[name]".
std::vector<std::string> mime_types;
};
@@ -28,6 +29,14 @@ class PepperPluginRegistry {
pepper::PluginModule* GetModule(const FilePath& path) const;
private:
+ static void GetPluginInfoFromSwitch(std::vector<PepperPluginInfo>* plugins);
+
+ struct InternalPluginInfo : public PepperPluginInfo {
+ pepper::PluginModule::EntryPoints entry_points;
+ };
+ typedef std::vector<InternalPluginInfo> InternalPluginInfoList;
+ static void GetInternalPluginInfo(InternalPluginInfoList* plugin_info);
+
PepperPluginRegistry();
typedef scoped_refptr<pepper::PluginModule> ModuleHandle;
« no previous file with comments | « chrome/common/DEPS ('k') | chrome/common/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698