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

Issue 1883883002: Log sent and received bytes in net::BidirectionalStream (Closed)

Created:
4 years, 8 months ago by xunjieli
Modified:
4 years, 8 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log sent and received bytes in net::BidirectionalStream This CL adds logging of sent and received bytes in net::BidirectionalStream if capturing all bytes. BUG=602669 Committed: https://crrev.com/be07785e0727b7b70b55487cca10fcfd2e1796b0 Cr-Commit-Position: refs/heads/master@{#387425}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Add new types #

Total comments: 14

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -3 lines) Patch
M net/http/bidirectional_stream.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M net/http/bidirectional_stream.cc View 1 4 chunks +25 lines, -2 lines 0 comments Download
M net/http/bidirectional_stream_unittest.cc View 1 2 4 chunks +112 lines, -1 line 0 comments Download
M net/log/net_log_event_type_list.h View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
xunjieli
Matt, is this the right approach? Please advise. Sorry for sending you another review.
4 years, 8 months ago (2016-04-13 17:49:36 UTC) #3
mmenke
https://codereview.chromium.org/1883883002/diff/20001/net/http/bidirectional_stream.cc File net/http/bidirectional_stream.cc (right): https://codereview.chromium.org/1883883002/diff/20001/net/http/bidirectional_stream.cc#newcode162 net/http/bidirectional_stream.cc:162: net_log_.AddByteTransferEvent(NetLog::TYPE_SOCKET_BYTES_RECEIVED, bytes_read, TYPE_SOCKET_BYTES_SENT is used for bytes sent at ...
4 years, 8 months ago (2016-04-13 18:03:50 UTC) #4
xunjieli
https://codereview.chromium.org/1883883002/diff/20001/net/http/bidirectional_stream.cc File net/http/bidirectional_stream.cc (right): https://codereview.chromium.org/1883883002/diff/20001/net/http/bidirectional_stream.cc#newcode162 net/http/bidirectional_stream.cc:162: net_log_.AddByteTransferEvent(NetLog::TYPE_SOCKET_BYTES_RECEIVED, bytes_read, On 2016/04/13 18:03:50, mmenke wrote: > TYPE_SOCKET_BYTES_SENT ...
4 years, 8 months ago (2016-04-13 18:16:03 UTC) #6
mmenke
https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream.h File net/http/bidirectional_stream.h (right): https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream.h#newcode15 net/http/bidirectional_stream.h:15: #include "net/log/net_log.h" Need to include base/memory/ref_counted.h https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream_unittest.cc File net/http/bidirectional_stream_unittest.cc ...
4 years, 8 months ago (2016-04-14 15:38:20 UTC) #7
xunjieli
https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream.h File net/http/bidirectional_stream.h (right): https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream.h#newcode15 net/http/bidirectional_stream.h:15: #include "net/log/net_log.h" On 2016/04/14 15:38:19, mmenke wrote: > Need ...
4 years, 8 months ago (2016-04-14 18:57:06 UTC) #8
mmenke
LGTM https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream_unittest.cc File net/http/bidirectional_stream_unittest.cc (right): https://codereview.chromium.org/1883883002/diff/60001/net/http/bidirectional_stream_unittest.cc#newcode513 net/http/bidirectional_stream_unittest.cc:513: base::RunLoop().RunUntilIdle(); On 2016/04/14 18:57:06, xunjieli wrote: > On ...
4 years, 8 months ago (2016-04-14 19:04:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883883002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883883002/80001
4 years, 8 months ago (2016-04-14 20:12:45 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 8 months ago (2016-04-14 21:15:39 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 21:16:59 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/be07785e0727b7b70b55487cca10fcfd2e1796b0
Cr-Commit-Position: refs/heads/master@{#387425}

Powered by Google App Engine
This is Rietveld 408576698