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

Side by Side Diff: ppapi/proxy/plugin_resource.h

Issue 11416064: Convert URLLoader to the new proxy design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments, merge 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_H_
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_ 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d); 124 Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d);
125 template <class ReplyMsgClass, class A, class B, class C, class D, class E> 125 template <class ReplyMsgClass, class A, class B, class C, class D, class E>
126 int32_t SyncCall( 126 int32_t SyncCall(
127 Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d, E* e); 127 Destination dest, const IPC::Message& msg, A* a, B* b, C* c, D* d, E* e);
128 128
129 int32_t GenericSyncCall(Destination dest, 129 int32_t GenericSyncCall(Destination dest,
130 const IPC::Message& msg, 130 const IPC::Message& msg,
131 IPC::Message* reply_msg, 131 IPC::Message* reply_msg,
132 ResourceMessageReplyParams* reply_params); 132 ResourceMessageReplyParams* reply_params);
133 133
134 const Connection& connection() { return connection_; }
135
134 private: 136 private:
135 IPC::Sender* GetSender(Destination dest) { 137 IPC::Sender* GetSender(Destination dest) {
136 return dest == RENDERER ? connection_.renderer_sender : 138 return dest == RENDERER ? connection_.renderer_sender :
137 connection_.browser_sender; 139 connection_.browser_sender;
138 } 140 }
139 141
140 // Helper function to send a |PpapiHostMsg_ResourceCall| to the given 142 // Helper function to send a |PpapiHostMsg_ResourceCall| to the given
141 // destination with |nested_msg| and |call_params|. 143 // destination with |nested_msg| and |call_params|.
142 bool SendResourceCall(Destination dest, 144 bool SendResourceCall(Destination dest,
143 const ResourceMessageCallParams& call_params, 145 const ResourceMessageCallParams& call_params,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 241
240 if (UnpackMessage<ReplyMsgClass>(reply, a, b, c, d, e)) 242 if (UnpackMessage<ReplyMsgClass>(reply, a, b, c, d, e))
241 return result; 243 return result;
242 return PP_ERROR_FAILED; 244 return PP_ERROR_FAILED;
243 } 245 }
244 246
245 } // namespace proxy 247 } // namespace proxy
246 } // namespace ppapi 248 } // namespace ppapi
247 249
248 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ 250 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698