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

Side by Side Diff: src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h

Issue 6177007: ppapi_proxy: Support loading and reading urls. Proxy URLLoader.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 nacl_abi_size_t exception_in_bytes, char* exception_in, 329 nacl_abi_size_t exception_in_bytes, char* exception_in,
330 nacl_abi_size_t* result_bytes, char* result, 330 nacl_abi_size_t* result_bytes, char* result,
331 nacl_abi_size_t* exception_bytes, char* exception); 331 nacl_abi_size_t* exception_bytes, char* exception);
332 332
333 private: 333 private:
334 PpbInstanceRpcServer(); 334 PpbInstanceRpcServer();
335 PpbInstanceRpcServer(const PpbInstanceRpcServer&); 335 PpbInstanceRpcServer(const PpbInstanceRpcServer&);
336 void operator=(const PpbInstanceRpcServer); 336 void operator=(const PpbInstanceRpcServer);
337 }; // class PpbInstanceRpcServer 337 }; // class PpbInstanceRpcServer
338 338
339 class PpbURLLoaderRpcServer {
340 public:
341 static void PPB_URLLoader_Create(
342 NaClSrpcRpc* rpc,
343 NaClSrpcClosure* done,
344 PP_Instance instance,
345 PP_Resource* resource);
346 static void PPB_URLLoader_IsURLLoader(
347 NaClSrpcRpc* rpc,
348 NaClSrpcClosure* done,
349 PP_Resource resource,
350 int32_t* is_url_loader);
351 static void PPB_URLLoader_Open(
352 NaClSrpcRpc* rpc,
353 NaClSrpcClosure* done,
354 PP_Resource loader,
355 PP_Resource request,
356 int32_t callback_id,
357 int32_t* pp_error);
358 static void PPB_URLLoader_FollowRedirect(
359 NaClSrpcRpc* rpc,
360 NaClSrpcClosure* done,
361 PP_Resource loader,
362 int32_t callback_id,
363 int32_t* pp_error);
364 static void PPB_URLLoader_GetUploadProgress(
365 NaClSrpcRpc* rpc,
366 NaClSrpcClosure* done,
367 PP_Resource loader,
368 int64_t* bytes_sent,
369 int64_t* total_bytes_to_be_sent,
370 int32_t* success);
371 static void PPB_URLLoader_GetDownloadProgress(
372 NaClSrpcRpc* rpc,
373 NaClSrpcClosure* done,
374 PP_Resource loader,
375 int64_t* bytes_received,
376 int64_t* total_bytes_to_be_received,
377 int32_t* success);
378 static void PPB_URLLoader_GetResponseInfo(
379 NaClSrpcRpc* rpc,
380 NaClSrpcClosure* done,
381 PP_Resource loader,
382 PP_Resource* response);
383 static void PPB_URLLoader_ReadResponseBody(
384 NaClSrpcRpc* rpc,
385 NaClSrpcClosure* done,
386 PP_Resource loader,
387 int32_t bytes_to_read,
388 int32_t callback_id,
389 nacl_abi_size_t* buffer_bytes, char* buffer,
390 int32_t* pp_error_or_bytes);
391 static void PPB_URLLoader_FinishStreamingToFile(
392 NaClSrpcRpc* rpc,
393 NaClSrpcClosure* done,
394 int64_t loader,
395 int32_t callback_id,
396 int32_t* pp_error);
397 static void PPB_URLLoader_Close(
398 NaClSrpcRpc* rpc,
399 NaClSrpcClosure* done,
400 PP_Resource loader);
401
402 private:
403 PpbURLLoaderRpcServer();
404 PpbURLLoaderRpcServer(const PpbURLLoaderRpcServer&);
405 void operator=(const PpbURLLoaderRpcServer);
406 }; // class PpbURLLoaderRpcServer
407
339 class PpbURLRequestInfoRpcServer { 408 class PpbURLRequestInfoRpcServer {
340 public: 409 public:
341 static void PPB_URLRequestInfo_Create( 410 static void PPB_URLRequestInfo_Create(
342 NaClSrpcRpc* rpc, 411 NaClSrpcRpc* rpc,
343 NaClSrpcClosure* done, 412 NaClSrpcClosure* done,
344 PP_Module module, 413 PP_Module module,
345 PP_Resource* resource); 414 PP_Resource* resource);
346 static void PPB_URLRequestInfo_IsURLRequestInfo( 415 static void PPB_URLRequestInfo_IsURLRequestInfo(
347 NaClSrpcRpc* rpc, 416 NaClSrpcRpc* rpc,
348 NaClSrpcClosure* done, 417 NaClSrpcClosure* done,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 void operator=(const PpbURLResponseInfoRpcServer); 471 void operator=(const PpbURLResponseInfoRpcServer);
403 }; // class PpbURLResponseInfoRpcServer 472 }; // class PpbURLResponseInfoRpcServer
404 473
405 class PpbRpcs { 474 class PpbRpcs {
406 public: 475 public:
407 static NaClSrpcHandlerDesc srpc_methods[]; 476 static NaClSrpcHandlerDesc srpc_methods[];
408 }; // class PpbRpcs 477 }; // class PpbRpcs
409 478
410 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ 479 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_
411 480
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/ppp_rpc_server.cc ('k') | src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698