OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/plugins/ppapi/plugin_module.h" | 5 #include "webkit/plugins/ppapi/plugin_module.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 #include "ppapi/c/ppp.h" | 67 #include "ppapi/c/ppp.h" |
68 #include "ppapi/c/ppp_instance.h" | 68 #include "ppapi/c/ppp_instance.h" |
69 #include "ppapi/c/private/ppb_file_ref_private.h" | 69 #include "ppapi/c/private/ppb_file_ref_private.h" |
70 #include "ppapi/c/private/ppb_flash.h" | 70 #include "ppapi/c/private/ppb_flash.h" |
71 #include "ppapi/c/private/ppb_flash_clipboard.h" | 71 #include "ppapi/c/private/ppb_flash_clipboard.h" |
72 #include "ppapi/c/private/ppb_flash_file.h" | 72 #include "ppapi/c/private/ppb_flash_file.h" |
73 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 73 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
74 #include "ppapi/c/private/ppb_flash_message_loop.h" | 74 #include "ppapi/c/private/ppb_flash_message_loop.h" |
75 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 75 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
76 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" | 76 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" |
77 #include "ppapi/c/private/ppb_host_resolver_private.h" | |
77 #include "ppapi/c/private/ppb_instance_private.h" | 78 #include "ppapi/c/private/ppb_instance_private.h" |
78 #include "ppapi/c/private/ppb_pdf.h" | 79 #include "ppapi/c/private/ppb_pdf.h" |
79 #include "ppapi/c/private/ppb_proxy_private.h" | 80 #include "ppapi/c/private/ppb_proxy_private.h" |
80 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" | 81 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" |
81 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 82 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
82 #include "ppapi/c/private/ppb_udp_socket_private.h" | 83 #include "ppapi/c/private/ppb_udp_socket_private.h" |
83 #include "ppapi/c/private/ppb_uma_private.h" | 84 #include "ppapi/c/private/ppb_uma_private.h" |
84 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" | 85 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" |
85 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 86 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
86 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 87 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
330 if (strcmp(name, PPB_FLASH_MESSAGELOOP_INTERFACE_0_1) == 0) | 331 if (strcmp(name, PPB_FLASH_MESSAGELOOP_INTERFACE_0_1) == 0) |
331 return ::ppapi::thunk::GetPPB_Flash_MessageLoop_0_1_Thunk(); | 332 return ::ppapi::thunk::GetPPB_Flash_MessageLoop_0_1_Thunk(); |
332 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE_0_2) == 0) | 333 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE_0_2) == 0) |
333 return ::ppapi::thunk::GetPPB_TCPSocket_Private_0_3_Thunk(); | 334 return ::ppapi::thunk::GetPPB_TCPSocket_Private_0_3_Thunk(); |
334 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0) | 335 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0) |
335 return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk(); | 336 return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk(); |
336 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) | 337 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) |
337 return PPB_GpuBlacklist_Private_Impl::GetInterface(); | 338 return PPB_GpuBlacklist_Private_Impl::GetInterface(); |
338 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) | 339 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) |
339 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); | 340 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); |
341 if (strcmp(name, PPB_HOSTRESOLVER_PRIVATE_INTERFACE_0_1) == 0) | |
brettw
2012/02/28 17:02:50
Instead of hardcoding this, you should add a mappi
ygorshenin1
2012/02/29 14:02:37
Done.
| |
342 return ::ppapi::thunk::GetPPB_HostResolver_Private_0_1_Thunk(); | |
340 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) | 343 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) |
341 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); | 344 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); |
342 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) | 345 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) |
343 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); | 346 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); |
344 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0) | 347 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0) |
345 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(); | 348 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(); |
346 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0) | 349 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0) |
347 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface(); | 350 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface(); |
348 if (strcmp(name, PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE) == 0) | 351 if (strcmp(name, PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE) == 0) |
349 return ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface(); | 352 return ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface(); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
617 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 620 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
618 if (retval != 0) { | 621 if (retval != 0) { |
619 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 622 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
620 return false; | 623 return false; |
621 } | 624 } |
622 return true; | 625 return true; |
623 } | 626 } |
624 | 627 |
625 } // namespace ppapi | 628 } // namespace ppapi |
626 } // namespace webkit | 629 } // namespace webkit |
OLD | NEW |