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

Unified Diff: ppapi/proxy/plugin_resource.h

Issue 11443016: Revert 171080 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1349/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
===================================================================
--- ppapi/proxy/plugin_resource.h (revision 171259)
+++ ppapi/proxy/plugin_resource.h (working copy)
@@ -126,11 +126,6 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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