OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium 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 #ifndef PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/proxy/host_resource.h" | 12 #include "ppapi/proxy/host_resource.h" |
13 #include "ppapi/proxy/interface_proxy.h" | 13 #include "ppapi/proxy/interface_proxy.h" |
14 | 14 |
15 struct PPB_URLResponseInfo; | 15 struct PPB_URLResponseInfo; |
16 | 16 |
17 namespace pp { | 17 namespace pp { |
18 namespace proxy { | 18 namespace proxy { |
19 | 19 |
| 20 class PPBFileRef_CreateInfo; |
20 class SerializedVarReturnValue; | 21 class SerializedVarReturnValue; |
21 | 22 |
22 class PPB_URLResponseInfo_Proxy : public InterfaceProxy { | 23 class PPB_URLResponseInfo_Proxy : public InterfaceProxy { |
23 public: | 24 public: |
24 PPB_URLResponseInfo_Proxy(Dispatcher* dispatcher, | 25 PPB_URLResponseInfo_Proxy(Dispatcher* dispatcher, |
25 const void* target_interface); | 26 const void* target_interface); |
26 virtual ~PPB_URLResponseInfo_Proxy(); | 27 virtual ~PPB_URLResponseInfo_Proxy(); |
27 | 28 |
28 static const Info* GetInfo(); | 29 static const Info* GetInfo(); |
29 | 30 |
(...skipping 10 matching lines...) Expand all Loading... |
40 | 41 |
41 // InterfaceProxy implementation. | 42 // InterfaceProxy implementation. |
42 virtual bool OnMessageReceived(const IPC::Message& msg); | 43 virtual bool OnMessageReceived(const IPC::Message& msg); |
43 | 44 |
44 private: | 45 private: |
45 // Message handlers. | 46 // Message handlers. |
46 void OnMsgGetProperty(HostResource response, | 47 void OnMsgGetProperty(HostResource response, |
47 int32_t property, | 48 int32_t property, |
48 SerializedVarReturnValue result); | 49 SerializedVarReturnValue result); |
49 void OnMsgGetBodyAsFileRef(HostResource response, | 50 void OnMsgGetBodyAsFileRef(HostResource response, |
50 HostResource* file_ref_result); | 51 PPBFileRef_CreateInfo* result); |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); | 53 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace proxy | 56 } // namespace proxy |
56 } // namespace pp | 57 } // namespace pp |
57 | 58 |
58 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 59 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
OLD | NEW |