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

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

Issue 9669038: Added out-of-process support for server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "ppapi/c/private/ppb_flash_file.h" 72 #include "ppapi/c/private/ppb_flash_file.h"
73 #include "ppapi/c/private/ppb_flash_fullscreen.h" 73 #include "ppapi/c/private/ppb_flash_fullscreen.h"
74 #include "ppapi/c/private/ppb_flash_message_loop.h" 74 #include "ppapi/c/private/ppb_flash_message_loop.h"
75 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 75 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
76 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" 76 #include "ppapi/c/private/ppb_gpu_blacklist_private.h"
77 #include "ppapi/c/private/ppb_instance_private.h" 77 #include "ppapi/c/private/ppb_instance_private.h"
78 #include "ppapi/c/private/ppb_network_list_private.h" 78 #include "ppapi/c/private/ppb_network_list_private.h"
79 #include "ppapi/c/private/ppb_network_monitor_private.h" 79 #include "ppapi/c/private/ppb_network_monitor_private.h"
80 #include "ppapi/c/private/ppb_pdf.h" 80 #include "ppapi/c/private/ppb_pdf.h"
81 #include "ppapi/c/private/ppb_proxy_private.h" 81 #include "ppapi/c/private/ppb_proxy_private.h"
82 #include "ppapi/c/private/ppb_tcp_server_socket_private.h"
83 #include "ppapi/c/private/ppb_tcp_socket_private.h" 82 #include "ppapi/c/private/ppb_tcp_socket_private.h"
84 #include "ppapi/c/private/ppb_udp_socket_private.h" 83 #include "ppapi/c/private/ppb_udp_socket_private.h"
85 #include "ppapi/c/private/ppb_uma_private.h" 84 #include "ppapi/c/private/ppb_uma_private.h"
86 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" 85 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h"
87 #include "ppapi/c/trusted/ppb_audio_trusted.h" 86 #include "ppapi/c/trusted/ppb_audio_trusted.h"
88 #include "ppapi/c/trusted/ppb_broker_trusted.h" 87 #include "ppapi/c/trusted/ppb_broker_trusted.h"
89 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 88 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
90 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 89 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
91 #include "ppapi/c/trusted/ppb_char_set_trusted.h" 90 #include "ppapi/c/trusted/ppb_char_set_trusted.h"
92 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 91 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE) == 0) 351 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE) == 0)
353 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface(); 352 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface();
354 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE) == 0) 353 if (strcmp(name, PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE) == 0)
355 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface(); 354 return ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface();
356 if (strcmp(name, PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE) == 0) 355 if (strcmp(name, PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE) == 0)
357 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface(); 356 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface();
358 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE) == 0) 357 if (strcmp(name, PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE) == 0)
359 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface(); 358 return ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface();
360 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 359 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
361 return PPB_Proxy_Impl::GetInterface(); 360 return PPB_Proxy_Impl::GetInterface();
362 if (strcmp(name, PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE) == 0)
363 return ::ppapi::thunk::GetPPB_TCPServerSocket_Private_0_1_Thunk();
364 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 361 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
365 return PPB_UMA_Private_Impl::GetInterface(); 362 return PPB_UMA_Private_Impl::GetInterface();
366 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) 363 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
367 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); 364 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
368 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 365 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
369 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 366 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
370 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 367 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
371 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 368 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
372 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) 369 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
373 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); 370 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1();
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 617 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
621 if (retval != 0) { 618 if (retval != 0) {
622 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 619 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
623 return false; 620 return false;
624 } 621 }
625 return true; 622 return true;
626 } 623 }
627 624
628 } // namespace ppapi 625 } // namespace ppapi
629 } // namespace webkit 626 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698