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

Unified Diff: ppapi/proxy/plugin_resource.h

Issue 11437038: Revert 171408 (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/plugin_resource.cc » ('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 2e2e10f2052af869497ebb7b48caf84a79b91ab9..2363c8cb0b2e12d6629eb33c7da3a0aeffae8f8d 100644
--- a/ppapi/proxy/plugin_resource.h
+++ b/ppapi/proxy/plugin_resource.h
@@ -126,11 +126,6 @@ class PPAPI_PROXY_EXPORT PluginResource : public Resource {
int32_t SyncCall(
Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d, E* e);
- int32_t GenericSyncCall(Destination dest,
- const IPC::Message& msg,
- IPC::Message* reply_msg,
- ResourceMessageReplyParams* reply_params);
-
private:
IPC::Sender* GetSender(Destination dest) {
return dest == RENDERER ? connection_.renderer_sender :
@@ -143,6 +138,10 @@ class PPAPI_PROXY_EXPORT PluginResource : public Resource {
const ResourceMessageCallParams& call_params,
const IPC::Message& nested_msg);
+ int32_t GenericSyncCall(Destination dest,
+ const IPC::Message& msg,
+ IPC::Message* reply_msg);
+
int32_t GetNextSequence();
Connection connection_;
@@ -178,16 +177,14 @@ int32_t PluginResource::Call(Destination dest,
template <class ReplyMsgClass>
int32_t PluginResource::SyncCall(Destination dest, const IPC::Message& msg) {
IPC::Message reply;
- ResourceMessageReplyParams reply_params;
- return GenericSyncCall(dest, msg, &reply, &reply_params);
+ return GenericSyncCall(dest, msg, &reply);
}
template <class ReplyMsgClass, class A>
int32_t PluginResource::SyncCall(
Destination dest, const IPC::Message& msg, A* a) {
IPC::Message reply;
- ResourceMessageReplyParams reply_params;
- int32_t result = GenericSyncCall(dest, msg, &reply, &reply_params);
+ int32_t result = GenericSyncCall(dest, msg, &reply);
if (UnpackMessage<ReplyMsgClass>(reply, a))
return result;
@@ -198,8 +195,7 @@ template <class ReplyMsgClass, class A, class B>
int32_t PluginResource::SyncCall(
Destination dest, const IPC::Message& msg, A* a, B* b) {
IPC::Message reply;
- ResourceMessageReplyParams reply_params;
- int32_t result = GenericSyncCall(dest, msg, &reply, &reply_params);
+ int32_t result = GenericSyncCall(dest, msg, &reply);
if (UnpackMessage<ReplyMsgClass>(reply, a, b))
return result;
@@ -210,8 +206,7 @@ template <class ReplyMsgClass, class A, class B, class C>
int32_t PluginResource::SyncCall(
Destination dest, const IPC::Message& msg, A* a, B* b, C* c) {
IPC::Message reply;
- ResourceMessageReplyParams reply_params;
- int32_t result = GenericSyncCall(dest, msg, &reply, &reply_params);
+ int32_t result = GenericSyncCall(dest, msg, &reply);
if (UnpackMessage<ReplyMsgClass>(reply, a, b, c))
return result;
@@ -222,8 +217,7 @@ template <class ReplyMsgClass, class A, class B, class C, class D>
int32_t PluginResource::SyncCall(
Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d) {
IPC::Message reply;
- ResourceMessageReplyParams reply_params;
- int32_t result = GenericSyncCall(dest, msg, &reply, &reply_params);
+ int32_t result = GenericSyncCall(dest, msg, &reply);
if (UnpackMessage<ReplyMsgClass>(reply, a, b, c, d))
return result;
@@ -234,8 +228,7 @@ template <class ReplyMsgClass, class A, class B, class C, class D, class E>
int32_t PluginResource::SyncCall(
Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d, E* e) {
IPC::Message reply;
- ResourceMessageReplyParams reply_params;
- int32_t result = GenericSyncCall(dest, msg, &reply, &reply_params);
+ int32_t result = GenericSyncCall(dest, msg, &reply);
if (UnpackMessage<ReplyMsgClass>(reply, a, b, c, d, e))
return result;
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.cc ('k') | ppapi/proxy/plugin_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698