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

Unified Diff: ppapi/proxy/plugin_resource.h

Issue 11411047: Introduce PPB_AudioInput_Dev v0.3 and refactor the device enumeration code: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/plugin_dispatcher.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698