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; |