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/ppapi_messages.h" | 11 #include "ppapi/proxy/ppapi_messages.h" |
12 #include "ppapi/proxy/ppb_file_ref_proxy.h" | 12 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
13 #include "ppapi/proxy/serialized_var.h" | 13 #include "ppapi/proxy/serialized_var.h" |
14 #include "ppapi/shared_impl/resource.h" | 14 #include "ppapi/shared_impl/resource.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; | |
19 using ppapi::Resource; | |
20 using ppapi::thunk::PPB_URLResponseInfo_API; | 18 using ppapi::thunk::PPB_URLResponseInfo_API; |
21 | 19 |
22 namespace pp { | 20 namespace ppapi { |
23 namespace proxy { | 21 namespace proxy { |
24 | 22 |
25 namespace { | 23 namespace { |
26 | 24 |
27 InterfaceProxy* CreateURLResponseInfoProxy(Dispatcher* dispatcher, | 25 InterfaceProxy* CreateURLResponseInfoProxy(Dispatcher* dispatcher, |
28 const void* target_interface) { | 26 const void* target_interface) { |
29 return new PPB_URLResponseInfo_Proxy(dispatcher, target_interface); | 27 return new PPB_URLResponseInfo_Proxy(dispatcher, target_interface); |
30 } | 28 } |
31 | 29 |
32 } // namespace | 30 } // namespace |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 143 |
146 // Use the FileRef proxy to serialize. | 144 // Use the FileRef proxy to serialize. |
147 DCHECK(!dispatcher()->IsPlugin()); | 145 DCHECK(!dispatcher()->IsPlugin()); |
148 HostDispatcher* host_disp = static_cast<HostDispatcher*>(dispatcher()); | 146 HostDispatcher* host_disp = static_cast<HostDispatcher*>(dispatcher()); |
149 PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( | 147 PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( |
150 host_disp->GetOrCreatePPBInterfaceProxy(INTERFACE_ID_PPB_FILE_REF)); | 148 host_disp->GetOrCreatePPBInterfaceProxy(INTERFACE_ID_PPB_FILE_REF)); |
151 file_ref_proxy->SerializeFileRef(file_ref, result); | 149 file_ref_proxy->SerializeFileRef(file_ref, result); |
152 } | 150 } |
153 | 151 |
154 } // namespace proxy | 152 } // namespace proxy |
155 } // namespace pp | 153 } // namespace ppapi |
OLD | NEW |