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

Unified Diff: ppapi/proxy/dispatcher.h

Issue 10069035: Add a way to implement GetInterface in the broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: ppapi/proxy/dispatcher.h
diff --git a/ppapi/proxy/dispatcher.h b/ppapi/proxy/dispatcher.h
index 35a82ab792b464b0e5f3fccbe333401af1398be5..cb38c7e3c0c443ef5fef0d87a51f269d3f78796b 100644
--- a/ppapi/proxy/dispatcher.h
+++ b/ppapi/proxy/dispatcher.h
@@ -15,6 +15,7 @@
#include "ipc/ipc_channel_proxy.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_module.h"
+#include "ppapi/c/ppp.h"
#include "ppapi/proxy/proxy_channel.h"
#include "ppapi/proxy/interface_list.h"
#include "ppapi/proxy/interface_proxy.h"
@@ -43,9 +44,6 @@ class VarSerializationRules;
// |
class PPAPI_PROXY_EXPORT Dispatcher : public ProxyChannel {
public:
- typedef const void* (*GetInterfaceFunc)(const char*);
- typedef int32_t (*InitModuleFunc)(PP_Module, GetInterfaceFunc);
-
virtual ~Dispatcher();
// Returns true if the dispatcher is on the plugin side, or false if it's the
@@ -81,11 +79,13 @@ class PPAPI_PROXY_EXPORT Dispatcher : public ProxyChannel {
// IPC::Channel::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& msg);
- GetInterfaceFunc local_get_interface() const { return local_get_interface_; }
+ PP_GetInterface_Func local_get_interface() const {
+ return local_get_interface_;
+ }
protected:
Dispatcher(base::ProcessHandle remote_process_handle,
- GetInterfaceFunc local_get_interface);
+ PP_GetInterface_Func local_get_interface);
// Setter for the derived classes to set the appropriate var serialization.
// Takes one reference of the given pointer, which must be on the heap.
@@ -108,7 +108,7 @@ class PPAPI_PROXY_EXPORT Dispatcher : public ProxyChannel {
bool disallow_trusted_interfaces_;
- GetInterfaceFunc local_get_interface_;
+ PP_GetInterface_Func local_get_interface_;
scoped_refptr<VarSerializationRules> serialization_rules_;

Powered by Google App Engine
This is Rietveld 408576698