Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 8574029: Microphone support for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_audio_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
16 #include "ppapi/c/dev/ppb_buffer_dev.h" 17 #include "ppapi/c/dev/ppb_buffer_dev.h"
17 #include "ppapi/c/dev/ppb_char_set_dev.h" 18 #include "ppapi/c/dev/ppb_char_set_dev.h"
18 #include "ppapi/c/dev/ppb_console_dev.h" 19 #include "ppapi/c/dev/ppb_console_dev.h"
19 #include "ppapi/c/dev/ppb_context_3d_dev.h" 20 #include "ppapi/c/dev/ppb_context_3d_dev.h"
20 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" 21 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h"
21 #include "ppapi/c/dev/ppb_crypto_dev.h" 22 #include "ppapi/c/dev/ppb_crypto_dev.h"
22 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 23 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
23 #include "ppapi/c/dev/ppb_directory_reader_dev.h" 24 #include "ppapi/c/dev/ppb_directory_reader_dev.h"
24 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 25 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
25 #include "ppapi/c/dev/ppb_find_dev.h" 26 #include "ppapi/c/dev/ppb_find_dev.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "ppapi/c/private/ppb_flash_file.h" 69 #include "ppapi/c/private/ppb_flash_file.h"
69 #include "ppapi/c/private/ppb_flash_fullscreen.h" 70 #include "ppapi/c/private/ppb_flash_fullscreen.h"
70 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 71 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
71 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" 72 #include "ppapi/c/private/ppb_gpu_blacklist_private.h"
72 #include "ppapi/c/private/ppb_instance_private.h" 73 #include "ppapi/c/private/ppb_instance_private.h"
73 #include "ppapi/c/private/ppb_pdf.h" 74 #include "ppapi/c/private/ppb_pdf.h"
74 #include "ppapi/c/private/ppb_proxy_private.h" 75 #include "ppapi/c/private/ppb_proxy_private.h"
75 #include "ppapi/c/private/ppb_tcp_socket_private.h" 76 #include "ppapi/c/private/ppb_tcp_socket_private.h"
76 #include "ppapi/c/private/ppb_udp_socket_private.h" 77 #include "ppapi/c/private/ppb_udp_socket_private.h"
77 #include "ppapi/c/private/ppb_uma_private.h" 78 #include "ppapi/c/private/ppb_uma_private.h"
79 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h"
78 #include "ppapi/c/trusted/ppb_audio_trusted.h" 80 #include "ppapi/c/trusted/ppb_audio_trusted.h"
79 #include "ppapi/c/trusted/ppb_broker_trusted.h" 81 #include "ppapi/c/trusted/ppb_broker_trusted.h"
80 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 82 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
81 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 83 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
82 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 84 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
83 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" 85 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h"
84 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 86 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
85 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 87 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
86 #include "ppapi/shared_impl/input_event_impl.h" 88 #include "ppapi/shared_impl/input_event_impl.h"
87 #include "ppapi/shared_impl/time_conversion.h" 89 #include "ppapi/shared_impl/time_conversion.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 254
253 #include "ppapi/thunk/interfaces_ppb_public_stable.h" 255 #include "ppapi/thunk/interfaces_ppb_public_stable.h"
254 #include "ppapi/thunk/interfaces_ppb_public_dev.h" 256 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
255 #include "ppapi/thunk/interfaces_ppb_private.h" 257 #include "ppapi/thunk/interfaces_ppb_private.h"
256 258
257 #undef UNPROXIED_API 259 #undef UNPROXIED_API
258 #undef PROXIED_IFACE 260 #undef PROXIED_IFACE
259 261
260 // Please keep alphabetized by interface macro name with "special" stuff at 262 // Please keep alphabetized by interface macro name with "special" stuff at
261 // the bottom. 263 // the bottom.
264 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0)
265 return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk();
262 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) 266 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0)
263 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); 267 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk();
264 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) 268 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0)
265 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); 269 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk();
266 if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) 270 if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0)
267 return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); 271 return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk();
268 if (strcmp(name, PPB_CORE_INTERFACE) == 0) 272 if (strcmp(name, PPB_CORE_INTERFACE) == 0)
269 return &core_interface; 273 return &core_interface;
270 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0) 274 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0)
271 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); 275 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk();
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 561 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
558 if (retval != 0) { 562 if (retval != 0) {
559 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 563 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
560 return false; 564 return false;
561 } 565 }
562 return true; 566 return true;
563 } 567 }
564 568
565 } // namespace ppapi 569 } // namespace ppapi
566 } // namespace webkit 570 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_audio_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698