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

Issue 10134008: Add bind(), recvFrom(), sendTo() for UDP socket. (Closed)

Created:
8 years, 8 months ago by Peng
Modified:
8 years, 8 months ago
Reviewers:
miket_OOO, bryeung, agl
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add bind(), recvFrom(), sendTo() for UDP socket. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133935

Patch Set 1 #

Patch Set 2 : Backup code #

Patch Set 3 : Update #

Patch Set 4 : Update #

Patch Set 5 : Update #

Patch Set 6 : Update #

Patch Set 7 : Update #

Patch Set 8 : wip #

Patch Set 9 : wip #

Total comments: 17

Patch Set 10 : Fix review issues #

Patch Set 11 : Update #

Patch Set 12 : Reenable api tests #

Total comments: 20

Patch Set 13 : Fix review issues #

Patch Set 14 : Rebase on head #

Patch Set 15 : Update #

Patch Set 16 : Update #

Patch Set 17 : Update inline document. #

Patch Set 18 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -257 lines) Patch
M chrome/browser/extensions/api/api_resource_event_notifier.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/api_resource_event_notifier.cc View 1 2 11 12 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +31 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket.cc View 1 2 3 4 5 6 7 8 9 4 chunks +50 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.h View 1 2 3 4 5 6 5 chunks +50 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +128 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +14 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +48 lines, -22 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +16 lines, -20 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +60 lines, -34 lines 0 comments Download
D chrome/browser/extensions/api/socket/udp_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -104 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/experimental.socket.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +54 lines, -6 lines 0 comments Download
M chrome/renderer/resources/extensions/experimental.socket_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/socket/api/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +19 lines, -9 lines 0 comments Download
M net/udp/udp_socket_libevent.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M net/udp/udp_socket_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
miket_OOO
Continuing email discussion: if TCP and UDP create/connect semantics are so different, would it make ...
8 years, 8 months ago (2012-04-20 17:14:29 UTC) #1
Peng
Hi Mike, Could you please review this CL. Hi Agl, Could you please review code ...
8 years, 8 months ago (2012-04-23 21:02:12 UTC) #2
agl
net/ LGTM with suggested change. https://chromiumcodereview.appspot.com/10134008/diff/4016/net/udp/udp_socket_win.h File net/udp/udp_socket_win.h (right): https://chromiumcodereview.appspot.com/10134008/diff/4016/net/udp/udp_socket_win.h#newcode28 net/udp/udp_socket_win.h:28: class NET_EXPORT UDPSocketWin : ...
8 years, 8 months ago (2012-04-23 21:07:08 UTC) #3
miket_OOO
Generally: we need the tests re-renabled, or at least an explanation why it's impossible to ...
8 years, 8 months ago (2012-04-23 22:23:40 UTC) #4
Peng
https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/socket.cc File chrome/browser/extensions/api/socket/socket.cc (right): https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/socket.cc#newcode41 chrome/browser/extensions/api/socket/socket.cc:41: int port = 0; On 2012/04/23 22:23:40, miket wrote: ...
8 years, 8 months ago (2012-04-24 15:07:14 UTC) #5
miket_OOO
https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/socket_apitest.cc File chrome/browser/extensions/api/socket/socket_apitest.cc (right): https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/socket_apitest.cc#newcode37 chrome/browser/extensions/api/socket/socket_apitest.cc:37: #if 0 > The UDP part of apitest has ...
8 years, 8 months ago (2012-04-24 18:13:56 UTC) #6
Peng
https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/socket_apitest.cc File chrome/browser/extensions/api/socket/socket_apitest.cc (right): https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/socket_apitest.cc#newcode37 chrome/browser/extensions/api/socket/socket_apitest.cc:37: #if 0 On 2012/04/24 18:13:56, miket wrote: > > ...
8 years, 8 months ago (2012-04-24 20:31:38 UTC) #7
miket_OOO
LGTM but first please clean up lots of style nits noted below. https://chromiumcodereview.appspot.com/10134008/diff/4016/chrome/browser/extensions/api/socket/udp_socket_unittest.cc File chrome/browser/extensions/api/socket/udp_socket_unittest.cc ...
8 years, 8 months ago (2012-04-24 20:49:05 UTC) #8
Peng
Update the CL. Sorry for those style problems. https://chromiumcodereview.appspot.com/10134008/diff/30001/chrome/browser/extensions/api/api_function.cc File chrome/browser/extensions/api/api_function.cc (right): https://chromiumcodereview.appspot.com/10134008/diff/30001/chrome/browser/extensions/api/api_function.cc#newcode52 chrome/browser/extensions/api/api_function.cc:52: } ...
8 years, 8 months ago (2012-04-24 21:13:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10134008/47001
8 years, 8 months ago (2012-04-25 15:53:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/10134008/46039
8 years, 8 months ago (2012-04-25 16:31:48 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 17:54:56 UTC) #12
Change committed as 133935

Powered by Google App Engine
This is Rietveld 408576698