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

Issue 24195004: PPB_TCPSocket: add support for TCP server socket operations. (Closed)

Created:
7 years, 3 months ago by yzshen1
Modified:
7 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, noelallen1, dmichael (off chromium)
Visibility:
Public.

Description

PPB_TCPSocket: add support for TCP server socket operations. BUG=262601 TEST=new tests in test_tcp_socket. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224383

Patch Set 1 #

Total comments: 16

Patch Set 2 : #

Patch Set 3 : #

Total comments: 31

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : sync #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1897 lines, -391 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 4 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h View 1 2 3 4 2 chunks +12 lines, -9 lines 0 comments Download
M content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc View 1 2 3 4 5 4 chunks +28 lines, -27 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.cc View 7 chunks +28 lines, -23 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h View 1 2 3 4 8 chunks +74 lines, -37 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc View 1 2 3 4 5 6 32 chunks +434 lines, -99 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/resource_creation_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/resource_creation_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/api/ppb_tcp_socket.idl View 1 2 3 4 5 chunks +85 lines, -12 lines 0 comments Download
M ppapi/c/ppb_tcp_socket.h View 1 2 3 4 8 chunks +105 lines, -13 lines 0 comments Download
M ppapi/cpp/tcp_socket.h View 1 2 3 4 5 chunks +57 lines, -11 lines 0 comments Download
M ppapi/cpp/tcp_socket.cc View 1 2 7 chunks +69 lines, -3 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 5 chunks +87 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 5 chunks +19 lines, -3 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 1 chunk +9 lines, -1 line 0 comments Download
M ppapi/proxy/tcp_socket_private_resource.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/proxy/tcp_socket_private_resource.cc View 1 2 3 4 5 6 4 chunks +13 lines, -6 lines 0 comments Download
M ppapi/proxy/tcp_socket_resource.h View 1 2 2 chunks +27 lines, -1 line 0 comments Download
M ppapi/proxy/tcp_socket_resource.cc View 1 2 3 4 5 6 4 chunks +46 lines, -5 lines 0 comments Download
M ppapi/proxy/tcp_socket_resource_base.h View 6 chunks +30 lines, -19 lines 0 comments Download
M ppapi/proxy/tcp_socket_resource_base.cc View 1 2 3 4 5 6 15 chunks +194 lines, -69 lines 0 comments Download
A ppapi/shared_impl/ppb_tcp_socket_shared.h View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppb_tcp_socket_shared.cc View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download
M ppapi/tests/test_tcp_socket.h View 1 chunk +10 lines, -3 lines 0 comments Download
M ppapi/tests/test_tcp_socket.cc View 1 2 8 chunks +256 lines, -41 lines 0 comments Download
M ppapi/tests/test_utils.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/tests/test_utils.cc View 1 chunk +47 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_stable.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_api.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_tcp_socket_thunk.cc View 1 2 6 chunks +59 lines, -1 line 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
yzshen1
Hi, Would you please take a look? Thanks! Bill: main reviewer. Brett: OWNER review for ...
7 years, 3 months ago (2013-09-17 18:14:09 UTC) #1
yzshen1
There are two changes to the IDL after our last discussion. Please take a look. ...
7 years, 3 months ago (2013-09-17 18:30:58 UTC) #2
noelallen1
I'm not sure people expect the socket to get destroyed with the connection fails. While ...
7 years, 3 months ago (2013-09-17 18:59:43 UTC) #3
bbudge
Some comments on IDL before full review. https://codereview.chromium.org/24195004/diff/1/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc File content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc (right): https://codereview.chromium.org/24195004/diff/1/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc#newcode197 content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc:197: host_->GetPpapiHost(), instance, ...
7 years, 3 months ago (2013-09-17 19:42:17 UTC) #4
noelallen1
https://codereview.chromium.org/24195004/diff/1/ppapi/api/ppb_tcp_socket.idl File ppapi/api/ppb_tcp_socket.idl (right): https://codereview.chromium.org/24195004/diff/1/ppapi/api/ppb_tcp_socket.idl#newcode90 ppapi/api/ppb_tcp_socket.idl:90: [in] PP_NetAddress_Family family); On 2013/09/17 19:42:18, bbudge1 wrote: > ...
7 years, 3 months ago (2013-09-18 04:08:50 UTC) #5
yzshen1
Thanks, Bill and Noel! > I'm not sure people expect the socket to get destroyed ...
7 years, 3 months ago (2013-09-18 16:56:25 UTC) #6
bbudge
https://codereview.chromium.org/24195004/diff/1/ppapi/api/ppb_tcp_socket.idl File ppapi/api/ppb_tcp_socket.idl (right): https://codereview.chromium.org/24195004/diff/1/ppapi/api/ppb_tcp_socket.idl#newcode90 ppapi/api/ppb_tcp_socket.idl:90: [in] PP_NetAddress_Family family); I was looking at the API ...
7 years, 3 months ago (2013-09-18 17:46:35 UTC) #7
yzshen1
Thanks Bill! https://codereview.chromium.org/24195004/diff/1/ppapi/api/ppb_tcp_socket.idl File ppapi/api/ppb_tcp_socket.idl (right): https://codereview.chromium.org/24195004/diff/1/ppapi/api/ppb_tcp_socket.idl#newcode90 ppapi/api/ppb_tcp_socket.idl:90: [in] PP_NetAddress_Family family); On 2013/09/18 17:46:35, bbudge1 ...
7 years, 3 months ago (2013-09-18 18:06:55 UTC) #8
yzshen1
According to offline discussion, I have removed the 1.1 Create() function. Please take another look. ...
7 years, 3 months ago (2013-09-18 20:45:06 UTC) #9
bbudge
https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h File content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h (right): https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h#newcode45 content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h:45: scoped_ptr<ppapi::host::ResourceHost> CreateNewTCPSocket( Indent is off by 1. https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/pepper_tcp_server_socket_message_filter.h File ...
7 years, 3 months ago (2013-09-19 19:41:47 UTC) #10
jschuh
ipc security rubberstamp lgtm.
7 years, 3 months ago (2013-09-19 21:07:30 UTC) #11
yzshen1
Thanks, Bill! :) https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h File content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h (right): https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h#newcode45 content/browser/renderer_host/pepper/content_browser_pepper_host_factory.h:45: scoped_ptr<ppapi::host::ResourceHost> CreateNewTCPSocket( On 2013/09/19 19:41:47, bbudge1 ...
7 years, 3 months ago (2013-09-19 21:12:15 UTC) #12
bbudge
Found a few more things. https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h (right): https://codereview.chromium.org/24195004/diff/10001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h#newcode178 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.h:178: ppapi::host::PpapiHost* ppapi_host_; On 2013/09/19 ...
7 years, 3 months ago (2013-09-19 22:30:57 UTC) #13
yzshen1
https://codereview.chromium.org/24195004/diff/21001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc File content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc (right): https://codereview.chromium.org/24195004/diff/21001/content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc#newcode98 content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc:98: DCHECK(host); On 2013/09/19 22:30:58, bbudge1 wrote: > If this ...
7 years, 3 months ago (2013-09-19 23:14:41 UTC) #14
bbudge
LGTM
7 years, 3 months ago (2013-09-19 23:26:56 UTC) #15
brettw
.gypi lgtm
7 years, 3 months ago (2013-09-20 04:52:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/24195004/20036
7 years, 3 months ago (2013-09-20 05:01:51 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=199895
7 years, 3 months ago (2013-09-20 09:48:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/24195004/20036
7 years, 3 months ago (2013-09-20 14:06:24 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-20 15:29:24 UTC) #20
Message was sent while issue was closed.
Change committed as 224383

Powered by Google App Engine
This is Rietveld 408576698