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

Side by Side Diff: components/nacl/renderer/plugin/srpc_client.cc

Issue 876483002: NaCl: Move src/trusted/plugin/ to components/nacl/renderer/plugin/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update #include guards Created 5 years, 10 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include "ppapi/native_client/src/trusted/plugin/srpc_client.h" 7 #include "components/nacl/renderer/plugin/srpc_client.h"
8 8
9 #include <string.h> 9 #include <string.h>
10 10
11 #include "components/nacl/renderer/plugin/plugin.h"
12 #include "components/nacl/renderer/plugin/srpc_params.h"
13 #include "components/nacl/renderer/plugin/utility.h"
11 #include "native_client/src/shared/platform/nacl_log.h" 14 #include "native_client/src/shared/platform/nacl_log.h"
12 #include "ppapi/native_client/src/trusted/plugin/plugin.h"
13 #include "ppapi/native_client/src/trusted/plugin/srpc_params.h"
14 #include "ppapi/native_client/src/trusted/plugin/utility.h"
15 15
16 namespace plugin { 16 namespace plugin {
17 17
18 typedef bool (*RpcFunction)(void* obj, SrpcParams* params); 18 typedef bool (*RpcFunction)(void* obj, SrpcParams* params);
19 19
20 // MethodInfo records the method names and type signatures of an SRPC server. 20 // MethodInfo records the method names and type signatures of an SRPC server.
21 class MethodInfo { 21 class MethodInfo {
22 public: 22 public:
23 // statically defined method - called through a pointer 23 // statically defined method - called through a pointer
24 MethodInfo(const RpcFunction function_ptr, 24 MethodInfo(const RpcFunction function_ptr,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); 190 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n"));
191 return true; 191 return true;
192 } 192 }
193 193
194 void SrpcClient::AttachService(NaClSrpcService* service, void* instance_data) { 194 void SrpcClient::AttachService(NaClSrpcService* service, void* instance_data) {
195 srpc_channel_.server = service; 195 srpc_channel_.server = service;
196 srpc_channel_.server_instance_data = instance_data; 196 srpc_channel_.server_instance_data = instance_data;
197 } 197 }
198 198
199 } // namespace plugin 199 } // namespace plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698