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

Issue 8200011: Add NetLog support to UDP sockets. (Closed)

Created:
9 years, 2 months ago by mmenke
Modified:
9 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, darin-cc_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

Add NetLog support to UDP sockets. BUG=99508 TEST=UDPSocketTest.Connect Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106109

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : Add comments #

Patch Set 4 : Hex encode bytes #

Total comments: 2

Patch Set 5 : Fix include order #

Patch Set 6 : Update year #

Total comments: 10

Patch Set 7 : Response to comments, sync #

Patch Set 8 : Don't do address conversions on windows when we don't have to. #

Total comments: 10

Patch Set 9 : Response to comments in progress... #

Patch Set 10 : Response to comments #

Patch Set 11 : Sync #

Patch Set 12 : Cleanup #

Patch Set 13 : Fix linux #

Patch Set 14 : Fix linux again #

Patch Set 15 : Fix linux yet again #

Total comments: 6

Patch Set 16 : Response to comments #

Patch Set 17 : Update comment #

Patch Set 18 : Fix Linux #

Patch Set 19 : '' #

Total comments: 4

Patch Set 20 : Response to comments #

Patch Set 21 : Sync #

Patch Set 22 : Fix Windows #

Patch Set 23 : ??? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -99 lines) Patch
M chrome/browser/net/passive_log_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/net/passive_log_collector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/events_view.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/source_entry.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +24 lines, -6 lines 0 comments Download
M chrome/browser/resources/net_internals/source_tracker.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +11 lines, -0 lines 0 comments Download
M net/base/net_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -1 line 0 comments Download
M net/base/net_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +12 lines, -2 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +56 lines, -6 lines 0 comments Download
M net/base/net_log_source_type_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
A net/udp/udp_data_transfer_param.h View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A net/udp/udp_data_transfer_param.cc View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
M net/udp/udp_socket_libevent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +10 lines, -2 lines 0 comments Download
M net/udp/udp_socket_libevent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 chunks +89 lines, -31 lines 0 comments Download
M net/udp/udp_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +55 lines, -16 lines 0 comments Download
M net/udp/udp_socket_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +15 lines, -4 lines 0 comments Download
M net/udp/udp_socket_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 10 chunks +90 lines, -28 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
mmenke
eroman: Please review everything. agayev: Please review the UDP component of this CL.
9 years, 2 months ago (2011-10-11 14:13:29 UTC) #1
cbentzel
Not sure if agayev is going to have time to review this. sergeyu may be ...
9 years, 2 months ago (2011-10-11 14:23:33 UTC) #2
mmenke
Oops... I mean sergeyu. Those g's and y's confuse me, for some reason. sergeyu: Please ...
9 years, 2 months ago (2011-10-11 14:31:16 UTC) #3
eroman
lgtm http://codereview.chromium.org/8200011/diff/18003/net/udp/udp_data_transfer_param.h File net/udp/udp_data_transfer_param.h (right): http://codereview.chromium.org/8200011/diff/18003/net/udp/udp_data_transfer_param.h#newcode1 net/udp/udp_data_transfer_param.h:1: // Copyright (c) 2010 The Chromium Authors. All ...
9 years, 2 months ago (2011-10-11 20:50:06 UTC) #4
mmenke
My response isn't displayed as a reply, so resending. My great wisdom must be recorded ...
9 years, 2 months ago (2011-10-11 21:14:13 UTC) #5
mmenke
Oops... Copied wrong email. http://codereview.chromium.org/8200011/diff/18003/net/udp/udp_data_transfer_param.h File net/udp/udp_data_transfer_param.h (right): http://codereview.chromium.org/8200011/diff/18003/net/udp/udp_data_transfer_param.h#newcode1 net/udp/udp_data_transfer_param.h:1: // Copyright (c) 2010 The ...
9 years, 2 months ago (2011-10-11 21:16:54 UTC) #6
Sergey Ulanov
Looks good overall, but I'm concerned about creation of UDPDataTransferNetLogParam for every packet sent/received, and ...
9 years, 2 months ago (2011-10-13 04:01:54 UTC) #7
mmenke
Thanks for the feedback. http://codereview.chromium.org/8200011/diff/18006/net/udp/udp_data_transfer_param.cc File net/udp/udp_data_transfer_param.cc (right): http://codereview.chromium.org/8200011/diff/18006/net/udp/udp_data_transfer_param.cc#newcode18 net/udp/udp_data_transfer_param.cc:18: hex_encoded_bytes_(log_bytes ? base::HexEncode(bytes, byte_count) : ...
9 years, 2 months ago (2011-10-13 14:37:23 UTC) #8
mmenke
sergeyu: Ping.
9 years, 2 months ago (2011-10-14 18:43:31 UTC) #9
Sergey Ulanov
On 2011/10/14 18:43:31, Matt Menke wrote: > sergeyu: Ping. Looking now.
9 years, 2 months ago (2011-10-14 19:44:50 UTC) #10
Sergey Ulanov
LGTM Feel free to ignore my nits. http://codereview.chromium.org/8200011/diff/37002/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): http://codereview.chromium.org/8200011/diff/37002/net/udp/udp_socket_libevent.cc#newcode156 net/udp/udp_socket_libevent.cc:156: if (nread ...
9 years, 2 months ago (2011-10-14 20:15:47 UTC) #11
mmenke
http://codereview.chromium.org/8200011/diff/37002/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): http://codereview.chromium.org/8200011/diff/37002/net/udp/udp_socket_libevent.cc#newcode156 net/udp/udp_socket_libevent.cc:156: if (nread < 0) { On 2011/10/14 20:15:47, sergeyu ...
9 years, 2 months ago (2011-10-17 17:35:19 UTC) #12
Sergey Ulanov
http://codereview.chromium.org/8200011/diff/53013/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): http://codereview.chromium.org/8200011/diff/53013/net/udp/udp_socket_libevent.cc#newcode197 net/udp/udp_socket_libevent.cc:197: return LogWrite(nwrite, buf->data(), address); Can we move this to ...
9 years, 2 months ago (2011-10-17 17:48:13 UTC) #13
mmenke
http://codereview.chromium.org/8200011/diff/53013/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): http://codereview.chromium.org/8200011/diff/53013/net/udp/udp_socket_libevent.cc#newcode197 net/udp/udp_socket_libevent.cc:197: return LogWrite(nwrite, buf->data(), address); On 2011/10/17 17:48:13, sergeyu wrote: ...
9 years, 2 months ago (2011-10-17 19:41:38 UTC) #14
Sergey Ulanov
couple more nits http://codereview.chromium.org/8200011/diff/44036/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): http://codereview.chromium.org/8200011/diff/44036/net/udp/udp_socket_libevent.cc#newcode162 net/udp/udp_socket_libevent.cc:162: return LogRead(MapSystemError(errno), NULL, 0, NULL); LogRead() ...
9 years, 2 months ago (2011-10-18 01:29:25 UTC) #15
mmenke
http://codereview.chromium.org/8200011/diff/44036/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): http://codereview.chromium.org/8200011/diff/44036/net/udp/udp_socket_libevent.cc#newcode162 net/udp/udp_socket_libevent.cc:162: return LogRead(MapSystemError(errno), NULL, 0, NULL); On 2011/10/18 01:29:25, sergeyu ...
9 years, 2 months ago (2011-10-18 15:16:57 UTC) #16
Sergey Ulanov
LGTM. Thanks!
9 years, 2 months ago (2011-10-18 16:48:09 UTC) #17
mmenke
On 2011/10/18 16:48:09, sergeyu wrote: > LGTM. Thanks! Thanks for all the feedback.
9 years, 2 months ago (2011-10-18 16:49:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/8200011/61006
9 years, 2 months ago (2011-10-18 16:51:40 UTC) #19
commit-bot: I haz the power
Can't process patch for file chrome/browser/resources/net_internals/source_entry.js. File's status is None, patchset upload is incomplete.
9 years, 2 months ago (2011-10-18 16:51:43 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/8200011/67001
9 years, 2 months ago (2011-10-18 18:20:16 UTC) #21
commit-bot: I haz the power
9 years, 2 months ago (2011-10-18 20:08:11 UTC) #22
Change committed as 106109

Powered by Google App Engine
This is Rietveld 408576698