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

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

Issue 11366038: Rewrite PPB_AudioInput_Dev to use the new-style host/resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
OLDNEW
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
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 #include "ppapi/thunk/interfaces_ppb_public_stable.h" 285 #include "ppapi/thunk/interfaces_ppb_public_stable.h"
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_flash.h" 288 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
290 289
291 #undef UNPROXIED_API 290 #undef UNPROXIED_API
292 #undef PROXIED_IFACE 291 #undef PROXIED_IFACE
293 292
294 // Please keep alphabetized by interface macro name with "special" stuff at 293 // Please keep alphabetized by interface macro name with "special" stuff at
295 // the bottom. 294 // the bottom.
296 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE_0_1) == 0)
297 return ::ppapi::thunk::GetPPB_AudioInputTrusted_0_1_Thunk();
298 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0) 295 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0)
299 return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk(); 296 return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk();
300 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0) 297 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0)
301 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk(); 298 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk();
302 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) 299 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0)
303 return &core_interface; 300 return &core_interface;
304 if (strcmp(name, PPB_GPUBLACKLIST_PRIVATE_INTERFACE) == 0) 301 if (strcmp(name, PPB_GPUBLACKLIST_PRIVATE_INTERFACE) == 0)
305 return PPB_GpuBlacklist_Private_Impl::GetInterface(); 302 return PPB_GpuBlacklist_Private_Impl::GetInterface();
306 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) 303 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0)
307 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); 304 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk();
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 618 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
622 if (retval != 0) { 619 if (retval != 0) {
623 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 620 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
624 return false; 621 return false;
625 } 622 }
626 return true; 623 return true;
627 } 624 }
628 625
629 } // namespace ppapi 626 } // namespace ppapi
630 } // namespace webkit 627 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698