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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "ppapi/c/private/ppb_instance_private.h" | 79 #include "ppapi/c/private/ppb_instance_private.h" |
80 #include "ppapi/c/private/ppb_network_list_private.h" | 80 #include "ppapi/c/private/ppb_network_list_private.h" |
81 #include "ppapi/c/private/ppb_network_monitor_private.h" | 81 #include "ppapi/c/private/ppb_network_monitor_private.h" |
82 #include "ppapi/c/private/ppb_pdf.h" | 82 #include "ppapi/c/private/ppb_pdf.h" |
83 #include "ppapi/c/private/ppb_proxy_private.h" | 83 #include "ppapi/c/private/ppb_proxy_private.h" |
84 #include "ppapi/c/private/ppb_talk_private.h" | 84 #include "ppapi/c/private/ppb_talk_private.h" |
85 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 85 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
86 #include "ppapi/c/private/ppb_udp_socket_private.h" | 86 #include "ppapi/c/private/ppb_udp_socket_private.h" |
87 #include "ppapi/c/private/ppb_uma_private.h" | 87 #include "ppapi/c/private/ppb_uma_private.h" |
88 #include "ppapi/c/private/ppb_x509_certificate_private.h" | 88 #include "ppapi/c/private/ppb_x509_certificate_private.h" |
89 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" | |
90 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 89 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
91 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 90 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
92 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 91 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
93 #include "ppapi/c/trusted/ppb_buffer_trusted.h" | 92 #include "ppapi/c/trusted/ppb_buffer_trusted.h" |
94 #include "ppapi/c/trusted/ppb_char_set_trusted.h" | 93 #include "ppapi/c/trusted/ppb_char_set_trusted.h" |
95 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" | 94 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" |
96 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | 95 #include "ppapi/c/trusted/ppb_file_io_trusted.h" |
97 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" | 96 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" |
98 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 97 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
99 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 98 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 #include "ppapi/thunk/interfaces_ppb_public_dev.h" | 286 #include "ppapi/thunk/interfaces_ppb_public_dev.h" |
288 #include "ppapi/thunk/interfaces_ppb_private.h" | 287 #include "ppapi/thunk/interfaces_ppb_private.h" |
289 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" | 288 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" |
290 #include "ppapi/thunk/interfaces_ppb_private_flash.h" | 289 #include "ppapi/thunk/interfaces_ppb_private_flash.h" |
291 | 290 |
292 #undef UNPROXIED_API | 291 #undef UNPROXIED_API |
293 #undef PROXIED_IFACE | 292 #undef PROXIED_IFACE |
294 | 293 |
295 // Please keep alphabetized by interface macro name with "special" stuff at | 294 // Please keep alphabetized by interface macro name with "special" stuff at |
296 // the bottom. | 295 // the bottom. |
297 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE_0_1) == 0) | |
298 return ::ppapi::thunk::GetPPB_AudioInputTrusted_0_1_Thunk(); | |
299 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0) | 296 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0) |
300 return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk(); | 297 return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk(); |
301 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0) | 298 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0) |
302 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk(); | 299 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk(); |
303 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) | 300 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) |
304 return &core_interface; | 301 return &core_interface; |
305 if (strcmp(name, PPB_GPUBLACKLIST_PRIVATE_INTERFACE) == 0) | 302 if (strcmp(name, PPB_GPUBLACKLIST_PRIVATE_INTERFACE) == 0) |
306 return PPB_GpuBlacklist_Private_Impl::GetInterface(); | 303 return PPB_GpuBlacklist_Private_Impl::GetInterface(); |
307 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) | 304 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) |
308 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); | 305 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 619 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
623 if (retval != 0) { | 620 if (retval != 0) { |
624 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 621 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
625 return false; | 622 return false; |
626 } | 623 } |
627 return true; | 624 return true; |
628 } | 625 } |
629 | 626 |
630 } // namespace ppapi | 627 } // namespace ppapi |
631 } // namespace webkit | 628 } // namespace webkit |
OLD | NEW |