blob: b1df51d87c2b40b066e7338e90cfe9de6c6b9ba3 [file] [log] [blame]
[email protected]f24448db2011-01-27 20:40:391// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]1054c072010-11-05 22:52:482// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_
6#define PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_
7
8#include "base/basictypes.h"
[email protected]859a7f32011-01-15 03:44:139#include "ppapi/c/pp_instance.h"
[email protected]1054c072010-11-05 22:52:4810#include "ppapi/c/pp_resource.h"
[email protected]1054c072010-11-05 22:52:4811#include "ppapi/proxy/interface_proxy.h"
[email protected]be0a84b2011-08-13 04:18:4412#include "ppapi/shared_impl/host_resource.h"
[email protected]1054c072010-11-05 22:52:4813
[email protected]5a3f62852010-11-10 21:43:0114struct PPB_URLRequestInfo;
[email protected]1054c072010-11-05 22:52:4815
16namespace pp {
17namespace proxy {
18
19class SerializedVarReceiveInput;
20
21class PPB_URLRequestInfo_Proxy : public InterfaceProxy {
22 public:
23 PPB_URLRequestInfo_Proxy(Dispatcher* dispatcher,
24 const void* target_interface);
25 virtual ~PPB_URLRequestInfo_Proxy();
26
[email protected]465faa22011-02-08 16:31:4627 static const Info* GetInfo();
28
[email protected]bf712f8e2011-06-17 02:10:4529 static PP_Resource CreateProxyResource(PP_Instance instance);
[email protected]1054c072010-11-05 22:52:4830
31 // InterfaceProxy implementation.
[email protected]a95986a82010-12-24 06:19:2832 virtual bool OnMessageReceived(const IPC::Message& msg);
[email protected]1054c072010-11-05 22:52:4833
34 private:
35 // Message handlers.
[email protected]be0a84b2011-08-13 04:18:4436 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result);
37 void OnMsgSetProperty(ppapi::HostResource request,
[email protected]1054c072010-11-05 22:52:4838 int32_t property,
39 SerializedVarReceiveInput value);
[email protected]be0a84b2011-08-13 04:18:4440 void OnMsgAppendDataToBody(ppapi::HostResource request,
[email protected]709a847e2010-11-10 01:16:1141 const std::string& data);
[email protected]be0a84b2011-08-13 04:18:4442 void OnMsgAppendFileToBody(ppapi::HostResource request,
43 ppapi::HostResource file_ref,
[email protected]1054c072010-11-05 22:52:4844 int64_t start_offset,
45 int64_t number_of_bytes,
46 double expected_last_modified_time);
47
48 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Proxy);
49};
50
51} // namespace proxy
52} // namespace pp
53
54#endif // PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_