OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dispatcher.h" | 5 #include "ppapi/proxy/dispatcher.h" |
6 | 6 |
7 #include <string.h> // For memset. | 7 #include <string.h> // For memset. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "ipc/ipc_message.h" | 13 #include "ipc/ipc_message.h" |
14 #include "ipc/ipc_sync_channel.h" | 14 #include "ipc/ipc_sync_channel.h" |
15 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
16 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
17 #include "ppapi/c/dev/ppb_testing_dev.h" | 17 #include "ppapi/c/dev/ppb_testing_dev.h" |
18 #include "ppapi/c/dev/ppb_url_loader_dev.h" | |
19 #include "ppapi/c/dev/ppb_url_request_info_dev.h" | |
20 #include "ppapi/c/dev/ppb_url_response_info_dev.h" | |
21 #include "ppapi/c/dev/ppb_var_deprecated.h" | 18 #include "ppapi/c/dev/ppb_var_deprecated.h" |
22 #include "ppapi/c/pp_errors.h" | 19 #include "ppapi/c/pp_errors.h" |
23 #include "ppapi/c/ppb_core.h" | 20 #include "ppapi/c/ppb_core.h" |
24 #include "ppapi/c/ppb_graphics_2d.h" | 21 #include "ppapi/c/ppb_graphics_2d.h" |
25 #include "ppapi/c/ppb_image_data.h" | 22 #include "ppapi/c/ppb_image_data.h" |
26 #include "ppapi/c/ppb_instance.h" | 23 #include "ppapi/c/ppb_instance.h" |
27 #include "ppapi/c/ppp_instance.h" | 24 #include "ppapi/c/ppp_instance.h" |
| 25 #include "ppapi/c/ppb_url_loader.h" |
| 26 #include "ppapi/c/ppb_url_request_info.h" |
| 27 #include "ppapi/c/ppb_url_response_info.h" |
28 #include "ppapi/proxy/ppb_core_proxy.h" | 28 #include "ppapi/proxy/ppb_core_proxy.h" |
29 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 29 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
30 #include "ppapi/proxy/ppb_image_data_proxy.h" | 30 #include "ppapi/proxy/ppb_image_data_proxy.h" |
31 #include "ppapi/proxy/ppb_instance_proxy.h" | 31 #include "ppapi/proxy/ppb_instance_proxy.h" |
32 #include "ppapi/proxy/ppb_testing_proxy.h" | 32 #include "ppapi/proxy/ppb_testing_proxy.h" |
33 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 33 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
34 #include "ppapi/proxy/ppb_url_request_info_proxy.h" | 34 #include "ppapi/proxy/ppb_url_request_info_proxy.h" |
35 #include "ppapi/proxy/ppb_url_response_info_proxy.h" | 35 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
36 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" | 36 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" |
37 #include "ppapi/proxy/ppp_class_proxy.h" | 37 #include "ppapi/proxy/ppp_class_proxy.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 if (interface_name == PPB_CORE_INTERFACE) | 206 if (interface_name == PPB_CORE_INTERFACE) |
207 return new PPB_Core_Proxy(this, interface_functions); | 207 return new PPB_Core_Proxy(this, interface_functions); |
208 if (interface_name == PPB_GRAPHICS_2D_INTERFACE) | 208 if (interface_name == PPB_GRAPHICS_2D_INTERFACE) |
209 return new PPB_Graphics2D_Proxy(this, interface_functions); | 209 return new PPB_Graphics2D_Proxy(this, interface_functions); |
210 if (interface_name == PPB_IMAGEDATA_INTERFACE) | 210 if (interface_name == PPB_IMAGEDATA_INTERFACE) |
211 return new PPB_ImageData_Proxy(this, interface_functions); | 211 return new PPB_ImageData_Proxy(this, interface_functions); |
212 if (interface_name == PPB_INSTANCE_INTERFACE) | 212 if (interface_name == PPB_INSTANCE_INTERFACE) |
213 return new PPB_Instance_Proxy(this, interface_functions); | 213 return new PPB_Instance_Proxy(this, interface_functions); |
214 if (interface_name == PPB_TESTING_DEV_INTERFACE) | 214 if (interface_name == PPB_TESTING_DEV_INTERFACE) |
215 return new PPB_Testing_Proxy(this, interface_functions); | 215 return new PPB_Testing_Proxy(this, interface_functions); |
216 if (interface_name == PPB_URLLOADER_DEV_INTERFACE) | 216 if (interface_name == PPB_URLLOADER_INTERFACE) |
217 return new PPB_URLLoader_Proxy(this, interface_functions); | 217 return new PPB_URLLoader_Proxy(this, interface_functions); |
218 if (interface_name == PPB_URLREQUESTINFO_DEV_INTERFACE) | 218 if (interface_name == PPB_URLREQUESTINFO_INTERFACE) |
219 return new PPB_URLRequestInfo_Proxy(this, interface_functions); | 219 return new PPB_URLRequestInfo_Proxy(this, interface_functions); |
220 if (interface_name == PPB_URLRESPONSEINFO_DEV_INTERFACE) | 220 if (interface_name == PPB_URLRESPONSEINFO_INTERFACE) |
221 return new PPB_URLResponseInfo_Proxy(this, interface_functions); | 221 return new PPB_URLResponseInfo_Proxy(this, interface_functions); |
222 if (interface_name == PPB_VAR_DEPRECATED_INTERFACE) | 222 if (interface_name == PPB_VAR_DEPRECATED_INTERFACE) |
223 return new PPB_Var_Deprecated_Proxy(this, interface_functions); | 223 return new PPB_Var_Deprecated_Proxy(this, interface_functions); |
224 if (interface_name == PPP_INSTANCE_INTERFACE) | 224 if (interface_name == PPP_INSTANCE_INTERFACE) |
225 return new PPP_Instance_Proxy(this, interface_functions); | 225 return new PPP_Instance_Proxy(this, interface_functions); |
226 | 226 |
227 return NULL; | 227 return NULL; |
228 } | 228 } |
229 | 229 |
230 } // namespace proxy | 230 } // namespace proxy |
231 } // namespace pp | 231 } // namespace pp |
232 | 232 |
OLD | NEW |