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

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

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 10 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "ppapi/c/private/ppb_flash.h" 69 #include "ppapi/c/private/ppb_flash.h"
70 #include "ppapi/c/private/ppb_flash_clipboard.h" 70 #include "ppapi/c/private/ppb_flash_clipboard.h"
71 #include "ppapi/c/private/ppb_flash_file.h" 71 #include "ppapi/c/private/ppb_flash_file.h"
72 #include "ppapi/c/private/ppb_flash_fullscreen.h" 72 #include "ppapi/c/private/ppb_flash_fullscreen.h"
73 #include "ppapi/c/private/ppb_flash_message_loop.h" 73 #include "ppapi/c/private/ppb_flash_message_loop.h"
74 #include "ppapi/c/private/ppb_flash_tcp_socket.h" 74 #include "ppapi/c/private/ppb_flash_tcp_socket.h"
75 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" 75 #include "ppapi/c/private/ppb_gpu_blacklist_private.h"
76 #include "ppapi/c/private/ppb_instance_private.h" 76 #include "ppapi/c/private/ppb_instance_private.h"
77 #include "ppapi/c/private/ppb_pdf.h" 77 #include "ppapi/c/private/ppb_pdf.h"
78 #include "ppapi/c/private/ppb_proxy_private.h" 78 #include "ppapi/c/private/ppb_proxy_private.h"
79 #include "ppapi/c/private/ppb_tcp_server_socket_private.h"
79 #include "ppapi/c/private/ppb_tcp_socket_private.h" 80 #include "ppapi/c/private/ppb_tcp_socket_private.h"
80 #include "ppapi/c/private/ppb_udp_socket_private.h" 81 #include "ppapi/c/private/ppb_udp_socket_private.h"
81 #include "ppapi/c/private/ppb_uma_private.h" 82 #include "ppapi/c/private/ppb_uma_private.h"
82 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" 83 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h"
83 #include "ppapi/c/trusted/ppb_audio_trusted.h" 84 #include "ppapi/c/trusted/ppb_audio_trusted.h"
84 #include "ppapi/c/trusted/ppb_broker_trusted.h" 85 #include "ppapi/c/trusted/ppb_broker_trusted.h"
85 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 86 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
86 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 87 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
87 #include "ppapi/c/trusted/ppb_char_set_trusted.h" 88 #include "ppapi/c/trusted/ppb_char_set_trusted.h"
88 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 89 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) 337 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0)
337 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); 338 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk();
338 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) 339 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0)
339 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); 340 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk();
340 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0) 341 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0)
341 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(); 342 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk();
342 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0) 343 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0)
343 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface(); 344 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface();
344 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 345 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
345 return PPB_Proxy_Impl::GetInterface(); 346 return PPB_Proxy_Impl::GetInterface();
347 if (strcmp(name, PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE) == 0)
348 return ::ppapi::thunk::GetPPB_TCPServerSocket_Private_0_1_Thunk();
346 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 349 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
347 return PPB_UMA_Private_Impl::GetInterface(); 350 return PPB_UMA_Private_Impl::GetInterface();
348 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) 351 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
349 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); 352 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
350 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 353 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
351 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 354 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
352 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 355 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
353 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 356 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
354 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) 357 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
355 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); 358 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 604 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
602 if (retval != 0) { 605 if (retval != 0) {
603 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 606 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
604 return false; 607 return false;
605 } 608 }
606 return true; 609 return true;
607 } 610 }
608 611
609 } // namespace ppapi 612 } // namespace ppapi
610 } // namespace webkit 613 } // 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