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

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: Changed type of tcp_socket_buffer_ field of PPB_TCPServerSocket_Private class. 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_buffer_trusted.h" 86 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
86 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h" 87 #include "ppapi/c/trusted/ppb_file_chooser_trusted.h"
87 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 88 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
88 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h" 89 #include "ppapi/c/trusted/ppb_graphics_3d_trusted.h"
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) 336 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0)
336 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); 337 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk();
337 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) 338 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0)
338 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); 339 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk();
339 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0) 340 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE_0_1) == 0)
340 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk(); 341 return ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk();
341 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0) 342 if (strcmp(name, PPB_OPENGLES2_INTERFACE) == 0)
342 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface(); 343 return ::ppapi::PPB_OpenGLES2_Shared::GetInterface();
343 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) 344 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0)
344 return PPB_Proxy_Impl::GetInterface(); 345 return PPB_Proxy_Impl::GetInterface();
346 if (strcmp(name, PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE) == 0)
yzshen1 2012/02/09 02:31:50 I think you could add entry in interfaces_ppb_priv
ygorshenin1 2012/02/09 15:00:10 This is possible only after addition of PPB_TCPSer
347 return ::ppapi::thunk::GetPPB_TCPServerSocket_Private_0_1_Thunk();
345 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) 348 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0)
346 return PPB_UMA_Private_Impl::GetInterface(); 349 return PPB_UMA_Private_Impl::GetInterface();
347 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0) 350 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE_0_3) == 0)
348 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk(); 351 return ::ppapi::thunk::GetPPB_URLLoaderTrusted_0_3_Thunk();
349 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0) 352 if (strcmp(name, PPB_VAR_DEPRECATED_INTERFACE) == 0)
350 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface(); 353 return PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface();
351 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0) 354 if (strcmp(name, PPB_VAR_INTERFACE_1_0) == 0)
352 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0(); 355 return ::ppapi::PPB_Var_Shared::GetVarInterface1_0();
353 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0) 356 if (strcmp(name, PPB_VAR_INTERFACE_1_1) == 0)
354 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1(); 357 return ::ppapi::PPB_Var_Shared::GetVarInterface1_1();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 603 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
601 if (retval != 0) { 604 if (retval != 0) {
602 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 605 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
603 return false; 606 return false;
604 } 607 }
605 return true; 608 return true;
606 } 609 }
607 610
608 } // namespace ppapi 611 } // namespace ppapi
609 } // namespace webkit 612 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698