Index: ppapi/proxy/plugin_resource.h |
diff --git a/ppapi/proxy/plugin_resource.h b/ppapi/proxy/plugin_resource.h |
index 33d1996a122edc02ffe02978e1145c9586b8a85b..6264a4436afd73ec1643625e0e30593553543745 100644 |
--- a/ppapi/proxy/plugin_resource.h |
+++ b/ppapi/proxy/plugin_resource.h |
@@ -26,6 +26,11 @@ class PluginDispatcher; |
class PPAPI_PROXY_EXPORT PluginResource : public Resource { |
public: |
+ enum Destination { |
+ RENDERER = 0, |
+ BROWSER = 1 |
+ }; |
+ |
PluginResource(Connection connection, PP_Instance instance); |
virtual ~PluginResource(); |
@@ -48,16 +53,6 @@ class PPAPI_PROXY_EXPORT PluginResource : public Resource { |
virtual void NotifyLastPluginRefWasDeleted() OVERRIDE; |
virtual void NotifyInstanceWasDeleted() OVERRIDE; |
- protected: |
- enum Destination { |
- RENDERER = 0, |
- BROWSER = 1 |
- }; |
- |
- IPC::Sender* GetSender(Destination dest) { |
- return dest == RENDERER ? connection_.renderer_sender : |
- connection_.browser_sender; |
- } |
// Sends a create message to the browser or renderer for the current resource. |
void SendCreate(Destination dest, const IPC::Message& msg); |
@@ -125,6 +120,11 @@ class PPAPI_PROXY_EXPORT PluginResource : public Resource { |
Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d, E* e); |
private: |
+ IPC::Sender* GetSender(Destination dest) { |
+ return dest == RENDERER ? connection_.renderer_sender : |
+ connection_.browser_sender; |
+ } |
+ |
// Helper function to send a |PpapiHostMsg_ResourceCall| to the given |
// destination with |nested_msg| and |call_params|. |
bool SendResourceCall(Destination dest, |