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

Issue 9669038: Added out-of-process support for server sockets. (Closed)

Created:
8 years, 9 months ago by ygorshenin1
Modified:
8 years, 9 months ago
Reviewers:
brettw, yzshen1
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Dmitry Polukhin
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added out-of-process support for server sockets. BUG=108277 TEST=OutOfProcessPPAPITest.TCPServerSocketPrivate Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126873

Patch Set 1 #

Patch Set 2 : PPB_TCPServerSocket_Private_Proxy constructor from Dispatcher* marked as explicit. #

Total comments: 8

Patch Set 3 : Deleted global maps. #

Patch Set 4 : Fixed MockPluginDelegate. #

Patch Set 5 : Sync. #

Total comments: 26

Patch Set 6 : Fixed codereview issues, sync. #

Total comments: 4

Patch Set 7 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -147 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.h View 1 2 3 4 5 6 4 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 6 4 chunks +17 lines, -16 lines 0 comments Download
M content/browser/renderer_host/pepper_tcp_server_socket.h View 1 2 3 4 5 3 chunks +11 lines, -6 lines 0 comments Download
M content/browser/renderer_host/pepper_tcp_server_socket.cc View 1 2 3 4 5 5 chunks +18 lines, -15 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 4 chunks +10 lines, -12 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 3 chunks +31 lines, -35 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 3 chunks +10 lines, -7 lines 0 comments Download
A ppapi/proxy/ppb_tcp_server_socket_private_proxy.h View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc View 1 2 3 4 5 6 1 chunk +202 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_tcp_socket_private_proxy.cc View 3 chunks +34 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/shared_impl/api_id.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h View 1 2 3 4 5 2 chunks +4 lines, -8 lines 0 comments Download
M ppapi/shared_impl/private/ppb_tcp_server_socket_shared.cc View 1 2 3 4 5 6 chunks +6 lines, -13 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.cc View 1 2 3 4 5 5 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ygorshenin1
8 years, 9 months ago (2012-03-11 20:40:09 UTC) #1
brettw
http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc File ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc (right): http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc#newcode28 ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc:28: IDToServerSocketMap* g_id_to_uninitialized_server_socket = NULL; You shouldn't need this uninitialized ...
8 years, 9 months ago (2012-03-12 06:27:21 UTC) #2
ygorshenin1
http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc File ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc (right): http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc#newcode28 ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc:28: IDToServerSocketMap* g_id_to_uninitialized_server_socket = NULL; In the PROXY case, host_resource().host_resource() ...
8 years, 9 months ago (2012-03-12 12:59:37 UTC) #3
brettw
http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc File ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc (right): http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc#newcode28 ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc:28: IDToServerSocketMap* g_id_to_uninitialized_server_socket = NULL; Oh, sorry. You should just ...
8 years, 9 months ago (2012-03-12 15:22:49 UTC) #4
ygorshenin1
Thanks, PTAL. http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc File ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc (right): http://codereview.chromium.org/9669038/diff/20/ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc#newcode28 ppapi/proxy/ppb_tcp_server_socket_private_proxy.cc:28: IDToServerSocketMap* g_id_to_uninitialized_server_socket = NULL; On 2012/03/12 15:22:49, ...
8 years, 9 months ago (2012-03-13 11:33:17 UTC) #5
brettw
lgtm
8 years, 9 months ago (2012-03-13 16:27:39 UTC) #6
yzshen1
http://codereview.chromium.org/9669038/diff/7032/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9669038/diff/7032/content/browser/renderer_host/pepper_message_filter.cc#newcode637 content/browser/renderer_host/pepper_message_filter.cc:637: this, routing_id, plugin_dispatcher_id, socket_resource, real_socket_id); Please change the name ...
8 years, 9 months ago (2012-03-13 17:46:32 UTC) #7
ygorshenin1
PTAL http://codereview.chromium.org/9669038/diff/7032/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): http://codereview.chromium.org/9669038/diff/7032/content/browser/renderer_host/pepper_message_filter.cc#newcode637 content/browser/renderer_host/pepper_message_filter.cc:637: this, routing_id, plugin_dispatcher_id, socket_resource, real_socket_id); On 2012/03/13 17:46:32, ...
8 years, 9 months ago (2012-03-14 11:36:18 UTC) #8
yzshen1
lgtm http://codereview.chromium.org/9669038/diff/24002/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9669038/diff/24002/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode1492 content/renderer/pepper/pepper_plugin_delegate_impl.cc:1492: render_view_->Send( nit: only send Disconnect when accepted_socket_id != ...
8 years, 9 months ago (2012-03-14 17:05:04 UTC) #9
ygorshenin1
謝謝! http://codereview.chromium.org/9669038/diff/24002/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/9669038/diff/24002/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode1492 content/renderer/pepper/pepper_plugin_delegate_impl.cc:1492: render_view_->Send( On 2012/03/14 17:05:04, yzshen1 wrote: > nit: ...
8 years, 9 months ago (2012-03-15 07:08:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/9669038/20038
8 years, 9 months ago (2012-03-15 07:09:01 UTC) #11
commit-bot: I haz the power
8 years, 9 months ago (2012-03-15 09:39:59 UTC) #12
Change committed as 126873

Powered by Google App Engine
This is Rietveld 408576698