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

Side by Side Diff: src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 5581011: Resource tracking done right. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Updated for CoreInterface->PPBCoreInterface rename Created 10 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 | « src/shared/ppapi_proxy/ppb_core.srpc ('k') | src/shared/ppapi_proxy/ppb_rpc_server.cc » ('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) 2010 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2010 The Native Client 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 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
6 // 6 //
7 // Automatically generated code. See srpcgen.py 7 // Automatically generated code. See srpcgen.py
8 // 8 //
9 // NaCl Simple Remote Procedure Call interface abstractions. 9 // NaCl Simple Remote Procedure Call interface abstractions.
10 10
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 int64_t resource) { 371 int64_t resource) {
372 NaClSrpcError retval; 372 NaClSrpcError retval;
373 retval = NaClSrpcInvokeBySignature( 373 retval = NaClSrpcInvokeBySignature(
374 channel, 374 channel,
375 "PPB_Core_ReleaseResource:l:", 375 "PPB_Core_ReleaseResource:l:",
376 resource 376 resource
377 ); 377 );
378 return retval; 378 return retval;
379 } 379 }
380 380
381 NaClSrpcError PpbCoreRpcClient::ReleaseResourceMultipleTimes(
382 NaClSrpcChannel* channel,
383 int64_t resource,
384 int32_t count) {
385 NaClSrpcError retval;
386 retval = NaClSrpcInvokeBySignature(
387 channel,
388 "ReleaseResourceMultipleTimes:li:",
389 resource,
390 count
391 );
392 return retval;
393 }
394
381 NaClSrpcError PpbCoreRpcClient::PPB_Core_GetTime( 395 NaClSrpcError PpbCoreRpcClient::PPB_Core_GetTime(
382 NaClSrpcChannel* channel, 396 NaClSrpcChannel* channel,
383 double* time) { 397 double* time) {
384 NaClSrpcError retval; 398 NaClSrpcError retval;
385 retval = NaClSrpcInvokeBySignature( 399 retval = NaClSrpcInvokeBySignature(
386 channel, 400 channel,
387 "PPB_Core_GetTime::d", 401 "PPB_Core_GetTime::d",
388 time 402 time
389 ); 403 );
390 return retval; 404 return retval;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 instance, 650 instance,
637 script_bytes, script, 651 script_bytes, script,
638 exception_in_bytes, exception_in, 652 exception_in_bytes, exception_in,
639 result_bytes, result, 653 result_bytes, result,
640 exception_bytes, exception 654 exception_bytes, exception
641 ); 655 );
642 return retval; 656 return retval;
643 } 657 }
644 658
645 659
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/ppb_core.srpc ('k') | src/shared/ppapi_proxy/ppb_rpc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698