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

Issue 9288084: Added Net logging to FileStream. (Closed)

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

Description

Added Net logging to FileStream. The net logging doesn't currently do anything, but is ready if some system wants to pass it in. This is the first of 4 CLs that will enable net logging for downloads. BUG=None TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120226

Patch Set 1 #

Patch Set 2 : Merged with trunk #

Patch Set 3 : Clarified comments #

Total comments: 10

Patch Set 4 : Fixed typo in posix version of file stream. #

Total comments: 44

Patch Set 5 : Renamed BoundNetLog variables. #

Total comments: 28

Patch Set 6 : Changed FileStream constructors so they all take a NetLog pointer. #

Patch Set 7 : Removed extra line. #

Total comments: 4

Patch Set 8 : Merged with trunk #

Total comments: 14

Patch Set 9 : Cleaned up AsyncContext interface. #

Total comments: 2

Patch Set 10 : Changed how SetBoundNetLogSource() handles invalid bound net logs. #

Total comments: 4

Patch Set 11 : Changes per Roberto's comments. #

Patch Set 12 : Simplified SetBoundNetLogSource() again. #

Total comments: 16

Patch Set 13 : Cleanup per Matt's comments. #

Total comments: 2

Patch Set 14 : Clarified comments. #

Patch Set 15 : Cleaned up year on licence text. #

Total comments: 1

Patch Set 16 : Merged with trunk #

Patch Set 17 : Fixed copyright issue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+537 lines, -138 lines) Patch
M chrome/browser/bookmarks/bookmark_html_writer.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/imageburner/burn_manager.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/passive_log_collector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +16 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 2 chunks +29 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 1 chunk +4 lines, -0 lines 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 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/bloom_filter.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_backend.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/zip.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/zip_reader.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/base_file.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/base_file_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/drag_download_util.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/redirect_to_file_resource_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/base/file_stream.h View 1 2 3 4 5 6 7 8 9 5 chunks +16 lines, -3 lines 0 comments Download
M net/base/file_stream_metrics.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M net/base/file_stream_metrics.cc View 1 2 3 4 5 3 chunks +21 lines, -1 line 0 comments Download
A net/base/file_stream_net_log_parameters.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A net/base/file_stream_net_log_parameters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
M net/base/file_stream_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +142 lines, -41 lines 0 comments Download
M net/base/file_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 24 chunks +24 lines, -24 lines 0 comments Download
M net/base/file_stream_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 18 chunks +105 lines, -25 lines 0 comments Download
M net/base/mock_file_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -4 lines 0 comments Download
M net/base/net_log.h View 1 2 3 4 5 2 chunks +2 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 1 chunk +40 lines, -0 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 1 chunk +2 lines, -1 line 0 comments Download
M net/base/upload_data.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/net.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/tools/dump_cache/dump_files.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_file_job.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M webkit/blob/blob_url_request_job.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_writer_delegate.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M webkit/glue/webfileutilities_impl.cc View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
ahendrickson
rdsmith: all (focusing on what data we want to extract) mmenke: all (NetLog expertise) rvargas: ...
8 years, 10 months ago (2012-01-30 19:36:12 UTC) #1
Randy Smith (Not in Mondays)
High level comments, mostly about commenting the interface so it's clear how it will behave ...
8 years, 10 months ago (2012-01-30 21:27:41 UTC) #2
ahendrickson
http://codereview.chromium.org/9288084/diff/8001/net/base/file_stream.h File net/base/file_stream.h (right): http://codereview.chromium.org/9288084/diff/8001/net/base/file_stream.h#newcode36 net/base/file_stream.h:36: // Create a new BoundNetLog and attach it to ...
8 years, 10 months ago (2012-01-30 22:30:53 UTC) #3
mmenke
A couple quick comments. I'll take a closer look tonight or tomorrow AM. http://codereview.chromium.org/9288084/diff/10004/chrome/browser/resources/net_internals/source_entry.js File ...
8 years, 10 months ago (2012-01-30 22:38:39 UTC) #4
rvargas (doing something else)
http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream.h File net/base/file_stream.h (right): http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream.h#newcode36 net/base/file_stream.h:36: // Create a new BoundNetLog and attach it to ...
8 years, 10 months ago (2012-01-30 23:11:38 UTC) #5
Randy Smith (Not in Mondays)
Second round of interface comments. I'd like to do more scanning of the implementation, but ...
8 years, 10 months ago (2012-01-30 23:29:13 UTC) #6
mmenke
http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc#newcode554 net/base/file_stream_posix.cc:554: net_log_.source()))); On 2012/01/30 23:29:13, rdsmith wrote: > What does ...
8 years, 10 months ago (2012-01-30 23:43:47 UTC) #7
mmenke
http://codereview.chromium.org/9288084/diff/15002/chrome/browser/net/passive_log_collector.h File chrome/browser/net/passive_log_collector.h (right): http://codereview.chromium.org/9288084/diff/15002/chrome/browser/net/passive_log_collector.h#newcode433 chrome/browser/net/passive_log_collector.h:433: nit: Remove extra linebreak. http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc#newcode540 ...
8 years, 10 months ago (2012-01-31 18:28:43 UTC) #8
Randy Smith (Not in Mondays)
http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc#newcode554 net/base/file_stream_posix.cc:554: net_log_.source()))); On 2012/01/30 23:43:47, Matt Menke wrote: > On ...
8 years, 10 months ago (2012-01-31 19:29:02 UTC) #9
ahendrickson
There are now only 2 constructors for FileStream. The originals have been changed by adding ...
8 years, 10 months ago (2012-01-31 20:12:40 UTC) #10
mmenke
http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc#newcode554 net/base/file_stream_posix.cc:554: net_log_.source()))); On 2012/01/31 19:29:03, rdsmith wrote: > On 2012/01/30 ...
8 years, 10 months ago (2012-01-31 21:20:31 UTC) #11
mmenke
http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc#newcode540 net/base/file_stream_posix.cc:540: if (log.source().id == net::NetLog::Source::kInvalidId) On 2012/01/31 20:12:41, ahendrickson wrote: ...
8 years, 10 months ago (2012-01-31 21:25:33 UTC) #12
Randy Smith (Not in Mondays)
On 2012/01/31 20:12:40, ahendrickson wrote: > There are now only 2 constructors for FileStream. The ...
8 years, 10 months ago (2012-01-31 21:58:23 UTC) #13
Randy Smith (Not in Mondays)
If you're willing, I'd like you to take out the pointers to the other CLs ...
8 years, 10 months ago (2012-01-31 22:22:41 UTC) #14
ahendrickson
Per Randy's request, I've moved the links to the 4 CLs into the comment section: ...
8 years, 10 months ago (2012-01-31 22:29:47 UTC) #15
mmenke
http://codereview.chromium.org/9288084/diff/23001/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/23001/net/base/file_stream_posix.cc#newcode382 net/base/file_stream_posix.cc:382: bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN, NULL); On 2012/01/31 22:22:41, rdsmith wrote: > It ...
8 years, 10 months ago (2012-01-31 22:33:50 UTC) #16
Randy Smith (Not in Mondays)
http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc#newcode540 net/base/file_stream_posix.cc:540: if (log.source().id == net::NetLog::Source::kInvalidId) On 2012/01/31 22:29:47, ahendrickson wrote: ...
8 years, 10 months ago (2012-01-31 22:37:15 UTC) #17
rvargas (doing something else)
http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc#newcode362 net/base/file_stream_posix.cc:362: net_log_.BeginEvent( On 2012/01/31 20:12:40, ahendrickson wrote: > On 2012/01/30 ...
8 years, 10 months ago (2012-01-31 23:07:23 UTC) #18
ahendrickson
http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_posix.cc#newcode540 net/base/file_stream_posix.cc:540: if (log.source().id == net::NetLog::Source::kInvalidId) On 2012/01/31 22:37:15, rdsmith wrote: ...
8 years, 10 months ago (2012-01-31 23:14:33 UTC) #19
mmenke
http://codereview.chromium.org/9288084/diff/22042/net/base/file_stream_win.cc File net/base/file_stream_win.cc (right): http://codereview.chromium.org/9288084/diff/22042/net/base/file_stream_win.cc#newcode447 net/base/file_stream_win.cc:447: (bound_net_log_.source().id == net::NetLog::Source::kInvalidId)) { Think you want != here. ...
8 years, 10 months ago (2012-01-31 23:20:57 UTC) #20
ahendrickson
http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/9288084/diff/10004/net/base/file_stream_posix.cc#newcode362 net/base/file_stream_posix.cc:362: net_log_.BeginEvent( On 2012/01/31 23:07:23, rvargas wrote: > On 2012/01/31 ...
8 years, 10 months ago (2012-02-01 00:13:28 UTC) #21
rvargas (doing something else)
Patch 12 LGTM
8 years, 10 months ago (2012-02-01 07:27:09 UTC) #22
Randy Smith (Not in Mondays)
LGTM. http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_win.cc File net/base/file_stream_win.cc (right): http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_win.cc#newcode127 net/base/file_stream_win.cc:127: bound_net_log_); On 2012/01/31 22:29:47, ahendrickson wrote: > On ...
8 years, 10 months ago (2012-02-01 16:21:52 UTC) #23
mmenke
A couple nits, but LGTM. http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_win.cc File net/base/file_stream_win.cc (right): http://codereview.chromium.org/9288084/diff/15002/net/base/file_stream_win.cc#newcode127 net/base/file_stream_win.cc:127: bound_net_log_); On 2012/02/01 16:21:52, ...
8 years, 10 months ago (2012-02-01 16:25:52 UTC) #24
ahendrickson
Will commit when the trybots succeed. http://codereview.chromium.org/9288084/diff/18053/net/base/file_stream_net_log_parameters.cc File net/base/file_stream_net_log_parameters.cc (right): http://codereview.chromium.org/9288084/diff/18053/net/base/file_stream_net_log_parameters.cc#newcode22 net/base/file_stream_net_log_parameters.cc:22: dict->SetString("net_error_name", net::ErrorToString(net_error_)); On ...
8 years, 10 months ago (2012-02-01 18:38:32 UTC) #25
mmenke
http://codereview.chromium.org/9288084/diff/22086/net/base/net_log_event_type_list.h File net/base/net_log_event_type_list.h (right): http://codereview.chromium.org/9288084/diff/22086/net/base/net_log_event_type_list.h#newcode1438 net/base/net_log_event_type_list.h:1438: // The END event is created when a file ...
8 years, 10 months ago (2012-02-01 19:21:02 UTC) #26
ahendrickson
Darin could you take a look at: webkit/* content/browser/renderer_host/redirect_to_file_resource_handler.cc http://codereview.chromium.org/9288084/diff/22086/net/base/net_log_event_type_list.h File net/base/net_log_event_type_list.h (right): http://codereview.chromium.org/9288084/diff/22086/net/base/net_log_event_type_list.h#newcode1438 net/base/net_log_event_type_list.h:1438: ...
8 years, 10 months ago (2012-02-01 20:42:04 UTC) #27
darin (slow to review)
webkit/ and content/ <-- LGTM http://codereview.chromium.org/9288084/diff/16080/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): http://codereview.chromium.org/9288084/diff/16080/content/browser/download/base_file.cc#newcode452 content/browser/download/base_file.cc:452: file_stream_.reset(new net::FileStream(NULL)); had you ...
8 years, 10 months ago (2012-02-02 06:04:35 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/9288084/16080
8 years, 10 months ago (2012-02-02 11:58:02 UTC) #29
commit-bot: I haz the power
Can't apply patch for file chrome/browser/net/passive_log_collector.cc. While running patch -p1 --forward --force; patching file chrome/browser/net/passive_log_collector.cc ...
8 years, 10 months ago (2012-02-02 11:58:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/9288084/24083
8 years, 10 months ago (2012-02-02 12:35:49 UTC) #31
commit-bot: I haz the power
Presubmit check for 9288084-24083 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-02 12:36:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/9288084/18064
8 years, 10 months ago (2012-02-02 12:45:32 UTC) #33
commit-bot: I haz the power
Try job failure for 9288084-18064 (retry) on win_rel for step "test_shell_tests". It's a second try, ...
8 years, 10 months ago (2012-02-02 14:48:19 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/9288084/18064
8 years, 10 months ago (2012-02-02 15:32:50 UTC) #35
commit-bot: I haz the power
8 years, 10 months ago (2012-02-02 18:17:59 UTC) #36
Try job failure for 9288084-18064 (retry) (retry) on win_rel for step
"test_shell_tests".
It's a second try, previously, step "test_shell_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698