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

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

Issue 6716005: A proposal and implementation for an initial postMessage interface. These in... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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) 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "ppapi/c/dev/ppb_buffer_dev.h" 15 #include "ppapi/c/dev/ppb_buffer_dev.h"
16 #include "ppapi/c/dev/ppb_char_set_dev.h" 16 #include "ppapi/c/dev/ppb_char_set_dev.h"
17 #include "ppapi/c/dev/ppb_context_3d_dev.h" 17 #include "ppapi/c/dev/ppb_context_3d_dev.h"
18 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" 18 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h"
19 #include "ppapi/c/dev/ppb_console_dev.h" 19 #include "ppapi/c/dev/ppb_console_dev.h"
20 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 20 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
21 #include "ppapi/c/dev/ppb_directory_reader_dev.h" 21 #include "ppapi/c/dev/ppb_directory_reader_dev.h"
22 #include "ppapi/c/dev/ppb_file_io_dev.h" 22 #include "ppapi/c/dev/ppb_file_io_dev.h"
23 #include "ppapi/c/dev/ppb_file_io_trusted_dev.h" 23 #include "ppapi/c/dev/ppb_file_io_trusted_dev.h"
24 #include "ppapi/c/dev/ppb_file_system_dev.h" 24 #include "ppapi/c/dev/ppb_file_system_dev.h"
25 #include "ppapi/c/dev/ppb_find_dev.h" 25 #include "ppapi/c/dev/ppb_find_dev.h"
26 #include "ppapi/c/dev/ppb_font_dev.h" 26 #include "ppapi/c/dev/ppb_font_dev.h"
27 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 27 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
28 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" 28 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
29 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" 29 #include "ppapi/c/dev/ppb_graphics_3d_dev.h"
30 #include "ppapi/c/dev/ppb_messaging_dev.h"
30 #include "ppapi/c/dev/ppb_opengles_dev.h" 31 #include "ppapi/c/dev/ppb_opengles_dev.h"
31 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 32 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
32 #include "ppapi/c/dev/ppb_testing_dev.h" 33 #include "ppapi/c/dev/ppb_testing_dev.h"
33 #include "ppapi/c/dev/ppb_transport_dev.h" 34 #include "ppapi/c/dev/ppb_transport_dev.h"
34 #include "ppapi/c/dev/ppb_url_util_dev.h" 35 #include "ppapi/c/dev/ppb_url_util_dev.h"
35 #include "ppapi/c/dev/ppb_var_deprecated.h" 36 #include "ppapi/c/dev/ppb_var_deprecated.h"
36 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 37 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
37 #include "ppapi/c/dev/ppb_widget_dev.h" 38 #include "ppapi/c/dev/ppb_widget_dev.h"
38 #include "ppapi/c/dev/ppb_zoom_dev.h" 39 #include "ppapi/c/dev/ppb_zoom_dev.h"
39 #include "ppapi/c/pp_module.h" 40 #include "ppapi/c/pp_module.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) 270 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0)
270 return PluginInstance::GetFullscreenInterface(); 271 return PluginInstance::GetFullscreenInterface();
271 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) 272 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0)
272 return PPB_Graphics2D_Impl::GetInterface(); 273 return PPB_Graphics2D_Impl::GetInterface();
273 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0) 274 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0)
274 return PPB_ImageData_Impl::GetInterface(); 275 return PPB_ImageData_Impl::GetInterface();
275 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) 276 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0)
276 return PPB_ImageData_Impl::GetTrustedInterface(); 277 return PPB_ImageData_Impl::GetTrustedInterface();
277 if (strcmp(name, PPB_INSTANCE_INTERFACE) == 0) 278 if (strcmp(name, PPB_INSTANCE_INTERFACE) == 0)
278 return PluginInstance::GetInterface(); 279 return PluginInstance::GetInterface();
280 if (strcmp(name, PPB_MESSAGING_DEV_INTERFACE) == 0)
281 return PluginInstance::GetMessagingInterface();
279 if (strcmp(name, PPB_PDF_INTERFACE) == 0) 282 if (strcmp(name, PPB_PDF_INTERFACE) == 0)
280 return PPB_PDF_Impl::GetInterface(); 283 return PPB_PDF_Impl::GetInterface();
281 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 284 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
282 return PPB_Proxy_Impl::GetInterface(); 285 return PPB_Proxy_Impl::GetInterface();
283 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) 286 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0)
284 return PPB_Scrollbar_Impl::GetInterface(); 287 return PPB_Scrollbar_Impl::GetInterface();
285 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) 288 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0)
286 return PPB_Transport_Impl::GetInterface(); 289 return PPB_Transport_Impl::GetInterface();
287 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) 290 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0)
288 return PPB_URLLoader_Impl::GetInterface(); 291 return PPB_URLLoader_Impl::GetInterface();
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 if (retval != 0) { 533 if (retval != 0) {
531 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 534 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
532 return false; 535 return false;
533 } 536 }
534 return true; 537 return true;
535 } 538 }
536 539
537 } // namespace ppapi 540 } // namespace ppapi
538 } // namespace webkit 541 } // namespace webkit
539 542
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698