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

Side by Side Diff: src/shared/ppapi_proxy/untrusted/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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 nacl_abi_size_t exception_in_bytes, char* exception_in, 288 nacl_abi_size_t exception_in_bytes, char* exception_in,
289 nacl_abi_size_t* result_bytes, char* result, 289 nacl_abi_size_t* result_bytes, char* result,
290 nacl_abi_size_t* exception_bytes, char* exception); 290 nacl_abi_size_t* exception_bytes, char* exception);
291 291
292 private: 292 private:
293 PpbInstanceRpcClient(); 293 PpbInstanceRpcClient();
294 PpbInstanceRpcClient(const PpbInstanceRpcClient&); 294 PpbInstanceRpcClient(const PpbInstanceRpcClient&);
295 void operator=(const PpbInstanceRpcClient); 295 void operator=(const PpbInstanceRpcClient);
296 }; // class PpbInstanceRpcClient 296 }; // class PpbInstanceRpcClient
297 297
298 class PpbURLLoaderRpcClient {
299 public:
300 static NaClSrpcError PPB_URLLoader_Create(
301 NaClSrpcChannel* channel,
302 PP_Instance instance,
303 PP_Resource* resource);
304 static NaClSrpcError PPB_URLLoader_IsURLLoader(
305 NaClSrpcChannel* channel,
306 PP_Resource resource,
307 int32_t* is_url_loader);
308 static NaClSrpcError PPB_URLLoader_Open(
309 NaClSrpcChannel* channel,
310 PP_Resource loader,
311 PP_Resource request,
312 int32_t callback_id,
313 int32_t* pp_error);
314 static NaClSrpcError PPB_URLLoader_FollowRedirect(
315 NaClSrpcChannel* channel,
316 PP_Resource loader,
317 int32_t callback_id,
318 int32_t* pp_error);
319 static NaClSrpcError PPB_URLLoader_GetUploadProgress(
320 NaClSrpcChannel* channel,
321 PP_Resource loader,
322 int64_t* bytes_sent,
323 int64_t* total_bytes_to_be_sent,
324 int32_t* success);
325 static NaClSrpcError PPB_URLLoader_GetDownloadProgress(
326 NaClSrpcChannel* channel,
327 PP_Resource loader,
328 int64_t* bytes_received,
329 int64_t* total_bytes_to_be_received,
330 int32_t* success);
331 static NaClSrpcError PPB_URLLoader_GetResponseInfo(
332 NaClSrpcChannel* channel,
333 PP_Resource loader,
334 PP_Resource* response);
335 static NaClSrpcError PPB_URLLoader_ReadResponseBody(
336 NaClSrpcChannel* channel,
337 PP_Resource loader,
338 int32_t bytes_to_read,
339 int32_t callback_id,
340 nacl_abi_size_t* buffer_bytes, char* buffer,
341 int32_t* pp_error_or_bytes);
342 static NaClSrpcError PPB_URLLoader_FinishStreamingToFile(
343 NaClSrpcChannel* channel,
344 int64_t loader,
345 int32_t callback_id,
346 int32_t* pp_error);
347 static NaClSrpcError PPB_URLLoader_Close(
348 NaClSrpcChannel* channel,
349 PP_Resource loader);
350
351 private:
352 PpbURLLoaderRpcClient();
353 PpbURLLoaderRpcClient(const PpbURLLoaderRpcClient&);
354 void operator=(const PpbURLLoaderRpcClient);
355 }; // class PpbURLLoaderRpcClient
356
298 class PpbURLRequestInfoRpcClient { 357 class PpbURLRequestInfoRpcClient {
299 public: 358 public:
300 static NaClSrpcError PPB_URLRequestInfo_Create( 359 static NaClSrpcError PPB_URLRequestInfo_Create(
301 NaClSrpcChannel* channel, 360 NaClSrpcChannel* channel,
302 PP_Module module, 361 PP_Module module,
303 PP_Resource* resource); 362 PP_Resource* resource);
304 static NaClSrpcError PPB_URLRequestInfo_IsURLRequestInfo( 363 static NaClSrpcError PPB_URLRequestInfo_IsURLRequestInfo(
305 NaClSrpcChannel* channel, 364 NaClSrpcChannel* channel,
306 PP_Resource resource, 365 PP_Resource resource,
307 int32_t* is_url_request_info); 366 int32_t* success);
308 static NaClSrpcError PPB_URLRequestInfo_SetProperty( 367 static NaClSrpcError PPB_URLRequestInfo_SetProperty(
309 NaClSrpcChannel* channel, 368 NaClSrpcChannel* channel,
310 PP_Resource request, 369 PP_Resource request,
311 int32_t property, 370 int32_t property,
312 nacl_abi_size_t value_bytes, char* value, 371 nacl_abi_size_t value_bytes, char* value,
313 int32_t* success); 372 int32_t* success);
314 static NaClSrpcError PPB_URLRequestInfo_AppendDataToBody( 373 static NaClSrpcError PPB_URLRequestInfo_AppendDataToBody(
315 NaClSrpcChannel* channel, 374 NaClSrpcChannel* channel,
316 PP_Resource request, 375 PP_Resource request,
317 nacl_abi_size_t data_bytes, char* data, 376 nacl_abi_size_t data_bytes, char* data,
(...skipping 11 matching lines...) Expand all
329 PpbURLRequestInfoRpcClient(); 388 PpbURLRequestInfoRpcClient();
330 PpbURLRequestInfoRpcClient(const PpbURLRequestInfoRpcClient&); 389 PpbURLRequestInfoRpcClient(const PpbURLRequestInfoRpcClient&);
331 void operator=(const PpbURLRequestInfoRpcClient); 390 void operator=(const PpbURLRequestInfoRpcClient);
332 }; // class PpbURLRequestInfoRpcClient 391 }; // class PpbURLRequestInfoRpcClient
333 392
334 class PpbURLResponseInfoRpcClient { 393 class PpbURLResponseInfoRpcClient {
335 public: 394 public:
336 static NaClSrpcError PPB_URLResponseInfo_IsURLResponseInfo( 395 static NaClSrpcError PPB_URLResponseInfo_IsURLResponseInfo(
337 NaClSrpcChannel* channel, 396 NaClSrpcChannel* channel,
338 PP_Resource resource, 397 PP_Resource resource,
339 int32_t* is_url_response_info); 398 int32_t* success);
340 static NaClSrpcError PPB_URLResponseInfo_GetProperty( 399 static NaClSrpcError PPB_URLResponseInfo_GetProperty(
341 NaClSrpcChannel* channel, 400 NaClSrpcChannel* channel,
342 PP_Resource response, 401 PP_Resource response,
343 int32_t property, 402 int32_t property,
344 nacl_abi_size_t* value_bytes, char* value); 403 nacl_abi_size_t* value_bytes, char* value);
345 static NaClSrpcError PPB_URLResponseInfo_GetBodyAsFileRef( 404 static NaClSrpcError PPB_URLResponseInfo_GetBodyAsFileRef(
346 NaClSrpcChannel* channel, 405 NaClSrpcChannel* channel,
347 PP_Resource response, 406 PP_Resource response,
348 PP_Resource* file_ref); 407 PP_Resource* file_ref);
349 408
350 private: 409 private:
351 PpbURLResponseInfoRpcClient(); 410 PpbURLResponseInfoRpcClient();
352 PpbURLResponseInfoRpcClient(const PpbURLResponseInfoRpcClient&); 411 PpbURLResponseInfoRpcClient(const PpbURLResponseInfoRpcClient&);
353 void operator=(const PpbURLResponseInfoRpcClient); 412 void operator=(const PpbURLResponseInfoRpcClient);
354 }; // class PpbURLResponseInfoRpcClient 413 }; // class PpbURLResponseInfoRpcClient
355 414
356 415
357 416
358 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_ 417 #endif // GEN_PPAPI_PROXY_PPB_RPC_H_
359 418
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h ('k') | src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698