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

Issue 721273002: Remove timing limitation to set Broadcast, ReceiveBuffer, and SendBuffer options from UDPSocket. (Closed)

Created:
6 years, 1 month ago by hidehiko
Modified:
6 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, dmichael (off chromium), Nike, Ryan Sleevi, satorux1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove timing limitation to set Broadcast, ReceiveBuffer, and SendBuffer options from UDPSocket. Currently, we have timing limitation to set these options. This CL splits Open() from Connect() and Bind(), so that those options can be set anytime after Open(). This is the preparation to remove the same limitation from PPAPI's socket APIs. BUG=425563, 420697 TEST=Ran trybots. Committed: https://crrev.com/17fac55b85211ba10c1bb3bf8a46798bcf0eb729 Cr-Commit-Position: refs/heads/master@{#307204}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : #

Total comments: 34

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -265 lines) Patch
M chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/cast_streaming/performance_test.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_service.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_sd_server.h View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_sd_server.cc View 1 2 3 chunks +2 lines, -7 lines 0 comments Download
M extensions/browser/api/socket/udp_socket.cc View 1 2 2 chunks +17 lines, -2 lines 0 comments Download
M media/cast/net/udp_transport.cc View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
M media/cast/test/utility/net_utility.cc View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M media/cast/test/utility/udp_proxy.cc View 1 2 4 chunks +4 lines, -7 lines 0 comments Download
M net/udp/udp_client_socket.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M net/udp/udp_server_socket.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/udp/udp_server_socket.cc View 1 2 3 3 chunks +26 lines, -3 lines 0 comments Download
M net/udp/udp_socket.h View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M net/udp/udp_socket_libevent.h View 1 2 3 4 5 10 chunks +46 lines, -40 lines 0 comments Download
M net/udp/udp_socket_libevent.cc View 1 2 3 8 chunks +57 lines, -78 lines 0 comments Download
M net/udp/udp_socket_unittest.cc View 1 2 5 chunks +13 lines, -2 lines 0 comments Download
M net/udp/udp_socket_win.h View 1 2 3 4 5 11 chunks +39 lines, -36 lines 0 comments Download
M net/udp/udp_socket_win.cc View 1 2 3 9 chunks +45 lines, -55 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
hidehiko
This CL is extracted from crrev.com/690903002, with reflecting rvargas@'s comments. Could you take a look? ...
6 years, 1 month ago (2014-11-13 17:56:18 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/721273002/diff/40001/net/udp/udp_socket_win.cc File net/udp/udp_socket_win.cc (right): https://codereview.chromium.org/721273002/diff/40001/net/udp/udp_socket_win.cc#newcode487 net/udp/udp_socket_win.cc:487: if (is_connected()) { As I mentioned on the other ...
6 years, 1 month ago (2014-11-14 02:44:43 UTC) #5
hidehiko
Thank you for review. https://codereview.chromium.org/721273002/diff/40001/net/udp/udp_socket_win.cc File net/udp/udp_socket_win.cc (right): https://codereview.chromium.org/721273002/diff/40001/net/udp/udp_socket_win.cc#newcode487 net/udp/udp_socket_win.cc:487: if (is_connected()) { On 2014/11/14 ...
6 years, 1 month ago (2014-11-19 06:11:24 UTC) #6
rvargas (doing something else)
https://codereview.chromium.org/721273002/diff/40001/net/udp/udp_socket_win.cc File net/udp/udp_socket_win.cc (right): https://codereview.chromium.org/721273002/diff/40001/net/udp/udp_socket_win.cc#newcode487 net/udp/udp_socket_win.cc:487: if (is_connected()) { On 2014/11/19 06:11:24, hidehiko wrote: > ...
6 years, 1 month ago (2014-11-19 22:18:56 UTC) #7
hidehiko
Hi, Thank you for the discussion last week. As we agreed on it, I updated ...
6 years ago (2014-12-01 16:06:25 UTC) #10
rvargas (doing something else)
https://codereview.chromium.org/721273002/diff/120001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/721273002/diff/120001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode344 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:344: scoped_ptr<net::UDPServerSocket> receive_socket( The class used here should come from ...
6 years ago (2014-12-02 23:28:10 UTC) #11
hidehiko
Thank you for review. PTAL. I think we agreed on the generic implementation direction, so ...
6 years ago (2014-12-03 17:33:28 UTC) #14
hubbe
LGTM for media/cast/* Separating UDP sockets into server and client sockets never made any sense ...
6 years ago (2014-12-03 18:22:52 UTC) #15
Scott Byer
LGTM for cloud_print
6 years ago (2014-12-03 19:13:11 UTC) #16
rvargas (doing something else)
https://codereview.chromium.org/721273002/diff/120001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/721273002/diff/120001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode344 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:344: scoped_ptr<net::UDPServerSocket> receive_socket( On 2014/12/03 17:33:27, hidehiko wrote: > On ...
6 years ago (2014-12-03 21:00:16 UTC) #17
Ken Rockot(use gerrit already)
extensions lgtm
6 years ago (2014-12-03 21:07:49 UTC) #18
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/721273002/diff/120001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/721273002/diff/120001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode344 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:344: scoped_ptr<net::UDPServerSocket> receive_socket( On 2014/12/03 ...
6 years ago (2014-12-04 04:03:36 UTC) #19
rvargas (doing something else)
LGTM after last nit. https://codereview.chromium.org/721273002/diff/160001/net/udp/udp_socket_libevent.h File net/udp/udp_socket_libevent.h (right): https://codereview.chromium.org/721273002/diff/160001/net/udp/udp_socket_libevent.h#newcode117 net/udp/udp_socket_libevent.h:117: // other processes. Should be ...
6 years ago (2014-12-04 19:51:37 UTC) #20
bbudge
LGTM (though I'm not at all familiar with this code.)
6 years ago (2014-12-06 01:25:54 UTC) #21
hidehiko
Thank you for review, all. Submitting. https://codereview.chromium.org/721273002/diff/160001/net/udp/udp_socket_libevent.h File net/udp/udp_socket_libevent.h (right): https://codereview.chromium.org/721273002/diff/160001/net/udp/udp_socket_libevent.h#newcode117 net/udp/udp_socket_libevent.h:117: // other processes. ...
6 years ago (2014-12-08 05:07:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/721273002/200001
6 years ago (2014-12-08 05:07:59 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:200001)
6 years ago (2014-12-08 06:02:25 UTC) #25
commit-bot: I haz the power
6 years ago (2014-12-08 06:03:06 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/17fac55b85211ba10c1bb3bf8a46798bcf0eb729
Cr-Commit-Position: refs/heads/master@{#307204}

Powered by Google App Engine
This is Rietveld 408576698