| 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 "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" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/message_loop_proxy.h" | 14 #include "base/message_loop_proxy.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "ppapi/c/dev/ppb_audio_input_dev.h" | |
| 17 #include "ppapi/c/dev/ppb_buffer_dev.h" | 16 #include "ppapi/c/dev/ppb_buffer_dev.h" |
| 18 #include "ppapi/c/dev/ppb_char_set_dev.h" | 17 #include "ppapi/c/dev/ppb_char_set_dev.h" |
| 19 #include "ppapi/c/dev/ppb_console_dev.h" | 18 #include "ppapi/c/dev/ppb_console_dev.h" |
| 20 #include "ppapi/c/dev/ppb_context_3d_dev.h" | 19 #include "ppapi/c/dev/ppb_context_3d_dev.h" |
| 21 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" | 20 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" |
| 22 #include "ppapi/c/dev/ppb_crypto_dev.h" | 21 #include "ppapi/c/dev/ppb_crypto_dev.h" |
| 23 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 22 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
| 24 #include "ppapi/c/dev/ppb_directory_reader_dev.h" | 23 #include "ppapi/c/dev/ppb_directory_reader_dev.h" |
| 25 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 24 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| 26 #include "ppapi/c/dev/ppb_find_dev.h" | 25 #include "ppapi/c/dev/ppb_find_dev.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "ppapi/c/private/ppb_flash_file.h" | 68 #include "ppapi/c/private/ppb_flash_file.h" |
| 70 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 69 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
| 71 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 70 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
| 72 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" | 71 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" |
| 73 #include "ppapi/c/private/ppb_instance_private.h" | 72 #include "ppapi/c/private/ppb_instance_private.h" |
| 74 #include "ppapi/c/private/ppb_pdf.h" | 73 #include "ppapi/c/private/ppb_pdf.h" |
| 75 #include "ppapi/c/private/ppb_proxy_private.h" | 74 #include "ppapi/c/private/ppb_proxy_private.h" |
| 76 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 75 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
| 77 #include "ppapi/c/private/ppb_udp_socket_private.h" | 76 #include "ppapi/c/private/ppb_udp_socket_private.h" |
| 78 #include "ppapi/c/private/ppb_uma_private.h" | 77 #include "ppapi/c/private/ppb_uma_private.h" |
| 79 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" | |
| 80 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 78 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
| 81 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 79 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
| 82 #include "ppapi/c/trusted/ppb_buffer_trusted.h" | 80 #include "ppapi/c/trusted/ppb_buffer_trusted.h" |
| 83 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" | 81 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" |
| 84 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | 82 #include "ppapi/c/trusted/ppb_file_io_trusted.h" |
| 85 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" | 83 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" |
| 86 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 84 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 87 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 85 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 88 #include "ppapi/shared_impl/input_event_impl.h" | 86 #include "ppapi/shared_impl/input_event_impl.h" |
| 89 #include "ppapi/shared_impl/time_conversion.h" | 87 #include "ppapi/shared_impl/time_conversion.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 252 |
| 255 #include "ppapi/thunk/interfaces_ppb_public_stable.h" | 253 #include "ppapi/thunk/interfaces_ppb_public_stable.h" |
| 256 #include "ppapi/thunk/interfaces_ppb_public_dev.h" | 254 #include "ppapi/thunk/interfaces_ppb_public_dev.h" |
| 257 #include "ppapi/thunk/interfaces_ppb_private.h" | 255 #include "ppapi/thunk/interfaces_ppb_private.h" |
| 258 | 256 |
| 259 #undef UNPROXIED_API | 257 #undef UNPROXIED_API |
| 260 #undef PROXIED_IFACE | 258 #undef PROXIED_IFACE |
| 261 | 259 |
| 262 // Please keep alphabetized by interface macro name with "special" stuff at | 260 // Please keep alphabetized by interface macro name with "special" stuff at |
| 263 // the bottom. | 261 // the bottom. |
| 264 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0) | |
| 265 return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk(); | |
| 266 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) | 262 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) |
| 267 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); | 263 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); |
| 268 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) | 264 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) |
| 269 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); | 265 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); |
| 270 if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) | 266 if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) |
| 271 return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); | 267 return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); |
| 272 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 268 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
| 273 return &core_interface; | 269 return &core_interface; |
| 274 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0) | 270 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0) |
| 275 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); | 271 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 557 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 562 if (retval != 0) { | 558 if (retval != 0) { |
| 563 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 559 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 564 return false; | 560 return false; |
| 565 } | 561 } |
| 566 return true; | 562 return true; |
| 567 } | 563 } |
| 568 | 564 |
| 569 } // namespace ppapi | 565 } // namespace ppapi |
| 570 } // namespace webkit | 566 } // namespace webkit |
| OLD | NEW |