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

Issue 10399083: Make NetLog take in callbacks that return Values (Closed)

Created:
8 years, 7 months ago by mmenke
Modified:
7 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, cbentzel+watch_chromium.org, eroman, darin-cc_chromium.org
Visibility:
Public.

Description

Make NetLog take in callbacks that return Values rather than refcounted objects. Avoids the need to create classes and copy data. Also no longer get time whenever an event is logged. BUG=126243 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141377

Patch Set 1 #

Patch Set 2 : Fix net-internals #

Total comments: 5

Patch Set 3 : Upload prior to sync #

Patch Set 4 : Sync #

Patch Set 5 : Modify more files #

Patch Set 6 : Remove file #

Patch Set 7 : Sync, make nss/remoting happy #

Patch Set 8 : Fix remoting #

Patch Set 9 : Update comments #

Total comments: 27

Patch Set 10 : Response to comments #

Patch Set 11 : Update unit test #

Patch Set 12 : Make unit test less likely to crash on regression #

Patch Set 13 : Fix unit tests. #

Patch Set 14 : Sync #

Patch Set 15 : Fix merge error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1009 lines, -938 lines) Patch
M chrome/browser/net/chrome_net_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/net/chrome_net_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/browser/net/chrome_net_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/net/load_timing_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -28 lines 0 comments Download
M chrome/browser/net/load_timing_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +109 lines, -94 lines 0 comments Download
M chrome/browser/net/load_timing_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +157 lines, -163 lines 0 comments Download
M chrome/browser/net/net_log_logger.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/net/net_log_logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/media/media_internals_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/ui/webui/media/media_internals_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -17 lines 0 comments Download
M content/browser/debugger/devtools_netlog_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -22 lines 0 comments Download
M content/browser/debugger/devtools_netlog_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +78 lines, -67 lines 0 comments Download
M net/base/capturing_net_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -5 lines 0 comments Download
M net/base/capturing_net_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -14 lines 0 comments Download
M net/base/file_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -10 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 chunks +131 lines, -72 lines 0 comments Download
M net/base/net_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +207 lines, -108 lines 0 comments Download
D net/base/net_log_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -35 lines 0 comments Download
D net/http/http_net_log_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -71 lines 0 comments Download
D net/http/http_net_log_params.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -59 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -6 lines 0 comments Download
M net/http/http_network_transaction_spdy2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_network_transaction_spdy3_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_proxy_client_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -12 lines 0 comments Download
M net/http/http_request_headers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +17 lines, -2 lines 0 comments Download
M net/http/http_request_headers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +49 lines, -0 lines 0 comments Download
M net/http/http_request_headers_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +19 lines, -0 lines 0 comments Download
M net/http/http_response_headers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +51 lines, -0 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +28 lines, -0 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -7 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 23 chunks +33 lines, -22 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -12 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_netlog_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -30 lines 0 comments Download
M net/url_request/url_request_netlog_params.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +20 lines, -17 lines 0 comments Download
M remoting/host/vlog_net_log.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -5 lines 0 comments Download
M remoting/host/vlog_net_log.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
mmenke
Just wanted your initial opinion on this, not yet ready for a full review. I'll ...
8 years, 7 months ago (2012-05-18 10:12:37 UTC) #1
mmenke
On 2012/05/18 10:12:37, Matt Menke wrote: > Just wanted your initial opinion on this, not ...
8 years, 7 months ago (2012-05-18 10:28:28 UTC) #2
eroman
Thanks for putting this together! I will send you some high level comments shortly.
8 years, 7 months ago (2012-05-18 21:44:29 UTC) #3
eroman
(1) Regarding performance Callbacks are used extensively throughout Chrome so my expectation is they are ...
8 years, 7 months ago (2012-05-18 23:07:29 UTC) #4
mmenke
On 2012/05/18 23:07:29, eroman wrote: > (1) Regarding performance > > Callbacks are used extensively ...
8 years, 7 months ago (2012-05-18 23:12:51 UTC) #5
mmenke
On 2012/05/18 23:12:51, Matt Menke wrote: > On 2012/05/18 23:07:29, eroman wrote: > > (1) ...
8 years, 7 months ago (2012-05-18 23:56:58 UTC) #6
eroman
OK, I have cleared up some of the confusion I had on NetLog vs tracing! ...
8 years, 7 months ago (2012-05-22 21:43:44 UTC) #7
mmenke
On 2012/05/22 21:43:44, eroman wrote: > OK, I have cleared up some of the confusion ...
8 years, 7 months ago (2012-05-22 21:55:36 UTC) #8
eroman
LGTM. I like this refactor! http://codereview.chromium.org/10399083/diff/12001/net/base/net_log.cc File net/base/net_log.cc (right): http://codereview.chromium.org/10399083/diff/12001/net/base/net_log.cc#newcode312 net/base/net_log.cc:312: net_log_->AddEntry(type, nit: perhaps this ...
8 years, 7 months ago (2012-05-22 22:08:06 UTC) #9
mmenke
eroman: PTAL. This is the full CL. I'll need a signoff from the remoting and ...
8 years, 6 months ago (2012-06-06 17:50:02 UTC) #10
mmenke
http://codereview.chromium.org/10399083/diff/34110/remoting/host/vlog_net_log.cc File remoting/host/vlog_net_log.cc (right): http://codereview.chromium.org/10399083/diff/34110/remoting/host/vlog_net_log.cc#newcode32 remoting/host/vlog_net_log.cc:32: return id_++; This is not threadsafe, and the first ...
8 years, 6 months ago (2012-06-06 17:50:16 UTC) #11
eroman
lgtm http://codereview.chromium.org/10399083/diff/34110/chrome/browser/ui/webui/media/media_internals_proxy.cc File chrome/browser/ui/webui/media/media_internals_proxy.cc (right): http://codereview.chromium.org/10399083/diff/34110/chrome/browser/ui/webui/media/media_internals_proxy.cc#newcode98 chrome/browser/ui/webui/media/media_internals_proxy.cc:98: base::Owned(entry.ToValue()))); IMPORTANT: You sure about this? Looks like ...
8 years, 6 months ago (2012-06-06 21:27:10 UTC) #12
mmenke
One thing I've been thinking about, and avoided doing anything with on this CL, is ...
8 years, 6 months ago (2012-06-07 19:20:46 UTC) #13
mmenke
[+alexeypa]: Please review remoting. [+pfeldmen]: Please review devtools. [+estade]: Please review chrome/browser/ui/webui/media/. Thanks.
8 years, 6 months ago (2012-06-07 21:10:18 UTC) #14
alexeypa (please no reviews)
remoting/* - lgtm
8 years, 6 months ago (2012-06-07 21:20:22 UTC) #15
Evan Stade
rubber stamp lgtm for webui
8 years, 6 months ago (2012-06-07 21:53:04 UTC) #16
pfeldman
chrome/browser/net/load_timing_observer* content/browser/debugger/devtools_netlog_observer* lgtm
8 years, 6 months ago (2012-06-09 14:43:14 UTC) #17
mmenke
Thanks for the reviews
8 years, 6 months ago (2012-06-09 17:18:17 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/10399083/39115
8 years, 6 months ago (2012-06-09 17:18:29 UTC) #19
commit-bot: I haz the power
8 years, 6 months ago (2012-06-10 20:20:35 UTC) #20
Change committed as 141377

Powered by Google App Engine
This is Rietveld 408576698