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 #include "ppapi/proxy/ppb_url_response_info_proxy.h" | 5 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
6 | 6 |
7 #include "ppapi/c/ppb_url_response_info.h" | 7 #include "ppapi/c/ppb_url_response_info.h" |
8 #include "ppapi/proxy/enter_proxy.h" | 8 #include "ppapi/proxy/enter_proxy.h" |
9 #include "ppapi/proxy/host_dispatcher.h" | 9 #include "ppapi/proxy/host_dispatcher.h" |
10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
11 #include "ppapi/proxy/plugin_resource.h" | 11 #include "ppapi/proxy/plugin_resource.h" |
12 #include "ppapi/proxy/ppapi_messages.h" | 12 #include "ppapi/proxy/ppapi_messages.h" |
13 #include "ppapi/proxy/ppb_file_ref_proxy.h" | 13 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
14 #include "ppapi/proxy/serialized_var.h" | 14 #include "ppapi/proxy/serialized_var.h" |
15 #include "ppapi/thunk/ppb_url_response_info_api.h" | 15 #include "ppapi/thunk/ppb_url_response_info_api.h" |
16 #include "ppapi/thunk/thunk.h" | 16 #include "ppapi/thunk/thunk.h" |
17 | 17 |
| 18 using ppapi::HostResource; |
18 using ppapi::thunk::PPB_URLResponseInfo_API; | 19 using ppapi::thunk::PPB_URLResponseInfo_API; |
19 | 20 |
20 namespace pp { | 21 namespace pp { |
21 namespace proxy { | 22 namespace proxy { |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 InterfaceProxy* CreateURLResponseInfoProxy(Dispatcher* dispatcher, | 26 InterfaceProxy* CreateURLResponseInfoProxy(Dispatcher* dispatcher, |
26 const void* target_interface) { | 27 const void* target_interface) { |
27 return new PPB_URLResponseInfo_Proxy(dispatcher, target_interface); | 28 return new PPB_URLResponseInfo_Proxy(dispatcher, target_interface); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Use the FileRef proxy to serialize. | 145 // Use the FileRef proxy to serialize. |
145 DCHECK(!dispatcher()->IsPlugin()); | 146 DCHECK(!dispatcher()->IsPlugin()); |
146 HostDispatcher* host_disp = static_cast<HostDispatcher*>(dispatcher()); | 147 HostDispatcher* host_disp = static_cast<HostDispatcher*>(dispatcher()); |
147 PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( | 148 PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( |
148 host_disp->GetOrCreatePPBInterfaceProxy(INTERFACE_ID_PPB_FILE_REF)); | 149 host_disp->GetOrCreatePPBInterfaceProxy(INTERFACE_ID_PPB_FILE_REF)); |
149 file_ref_proxy->SerializeFileRef(file_ref, result); | 150 file_ref_proxy->SerializeFileRef(file_ref, result); |
150 } | 151 } |
151 | 152 |
152 } // namespace proxy | 153 } // namespace proxy |
153 } // namespace pp | 154 } // namespace pp |
OLD | NEW |