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

Unified Diff: ppapi/proxy/plugin_dispatcher.h

Issue 7844018: Revert 100748 - This patch tries to remove most of the manual registration for Pepper interfaces,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « ppapi/proxy/interface_proxy.cc ('k') | ppapi/proxy/plugin_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_dispatcher.h
===================================================================
--- ppapi/proxy/plugin_dispatcher.h (revision 100753)
+++ ppapi/proxy/plugin_dispatcher.h (working copy)
@@ -88,12 +88,9 @@
// object as a convenience. Returns NULL on failure.
static PluginDispatcher* GetForResource(const Resource* resource);
- // Implements the GetInterface function for the plugin to call to retrieve
- // a browser interface.
- static const void* GetBrowserInterface(const char* interface);
+ static const void* GetInterfaceFromDispatcher(
+ const char* dispatcher_interface);
- const void* GetPluginInterface(const std::string& interface_name);
-
// You must call this function before anything else. Returns true on success.
// The delegate pointer must outlive this class, ownership is not
// transferred.
@@ -152,13 +149,15 @@
PluginDelegate* plugin_delegate_;
- // Contains all the plugin interfaces we've queried. The mapped value will
- // be the pointer to the interface pointer supplied by the plugin if it's
- // supported, or NULL if it's not supported. This allows us to cache failures
- // and not req-query if a plugin doesn't support the interface.
- typedef base::hash_map<std::string, const void*> InterfaceMap;
- InterfaceMap plugin_interfaces_;
+ // All target proxies currently created. These are ones that receive
+ // messages.
+ scoped_ptr<InterfaceProxy> target_proxies_[INTERFACE_ID_COUNT];
+ // Function proxies created for "new-style" FunctionGroups.
+ // TODO(brettw) this is in progress. It should be merged with the target
+ // proxies so there is one list to consult.
+ scoped_ptr<FunctionGroupBase> function_proxies_[INTERFACE_ID_COUNT];
+
typedef base::hash_map<PP_Instance, InstanceData> InstanceDataMap;
InstanceDataMap instance_map_;
« no previous file with comments | « ppapi/proxy/interface_proxy.cc ('k') | ppapi/proxy/plugin_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698