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

Issue 9121053: Added net logging to DownloadItem. (Closed)

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

Description

Added net logging to DownloadItem. Should any client of the DownloadItem wish to enable logging for it, they only need to provide a BoundNetLog or NetLog (depending on the download type). None currently do. This is the third of 4 CLs that will enable net logging for downloads. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120911

Patch Set 1 #

Patch Set 2 : Merged with trunk #

Patch Set 3 : Merged with parent #

Patch Set 4 : Merged with parent #

Patch Set 5 : Cleaned up comments & logging for history case. #

Patch Set 6 : Merged with parent #

Patch Set 7 : Merged with parent. #

Total comments: 36

Patch Set 8 : Merged with parent #

Patch Set 9 : Addressed Matt & Randy's comments #

Patch Set 10 : Don't log download item updates in passive mode. #

Patch Set 11 : Don't log download item updates in passive mode, part deux. #

Patch Set 12 : Merged with parent #

Total comments: 24

Patch Set 13 : Addressed Randy's comments #

Patch Set 14 : Merged with trunk #

Total comments: 10

Patch Set 15 : Recording danger type. #

Patch Set 16 : Fixed event source description code #

Patch Set 17 : Use BoundNetLog arguments in DownloadItemImpl constructors. #

Total comments: 4

Patch Set 18 : Changes to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+860 lines, -314 lines) Patch
M chrome/browser/net/passive_log_collector.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 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 1 chunk +298 lines, -291 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +18 lines, -5 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +129 lines, -12 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_net_log_parameters.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +128 lines, -0 lines 0 comments Download
M content/browser/download/download_net_log_parameters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +175 lines, -0 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 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
ahendrickson
This is the third of 4 CLs, which must be landed in this order: http://codereview.chromium.org/9288084/ ...
8 years, 10 months ago (2012-02-02 20:28:27 UTC) #1
Randy Smith (Not in Mondays)
Scanning over this, I realize that there's a difference of perspective between us as to ...
8 years, 10 months ago (2012-02-03 17:11:51 UTC) #2
Randy Smith (Not in Mondays)
On 2012/02/03 17:11:51, rdsmith wrote: > Scanning over this, I realize that there's a difference ...
8 years, 10 months ago (2012-02-03 17:17:02 UTC) #3
ahendrickson
On 2012/02/03 17:17:02, rdsmith wrote: > On 2012/02/03 17:11:51, rdsmith wrote: > > Scanning over ...
8 years, 10 months ago (2012-02-03 17:35:15 UTC) #4
Randy Smith (Not in Mondays)
On 2012/02/03 17:35:15, ahendrickson wrote: > On 2012/02/03 17:17:02, rdsmith wrote: > > On 2012/02/03 ...
8 years, 10 months ago (2012-02-03 17:42:29 UTC) #5
mmenke
http://codereview.chromium.org/9121053/diff/14019/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/9121053/diff/14019/content/browser/download/download_item_impl.cc#newcode414 content/browser/download/download_item_impl.cc:414: bound_net_log_.AddEvent( nit: If this is called a lot, should ...
8 years, 10 months ago (2012-02-03 17:59:44 UTC) #6
mmenke
Should add that I just skimmed through the CL, I leave the details of just ...
8 years, 10 months ago (2012-02-03 18:00:39 UTC) #7
Randy Smith (Not in Mondays)
One high level question for both Matt & Andy I want to get out there ...
8 years, 10 months ago (2012-02-03 18:05:30 UTC) #8
mmenke
http://codereview.chromium.org/9121053/diff/14019/net/base/net_log_event_type_list.h File net/base/net_log_event_type_list.h (right): http://codereview.chromium.org/9121053/diff/14019/net/base/net_log_event_type_list.h#newcode1498 net/base/net_log_event_type_list.h:1498: EVENT_TYPE(DOWNLOAD_ITEM_CHECKED) nit: Suggest a clearer name for this. DOWNLOAD_ITEM_SAFEBROWSING ...
8 years, 10 months ago (2012-02-03 18:12:28 UTC) #9
Randy Smith (Not in Mondays)
Initial comments. I still want to review the actual events that are logged in detail, ...
8 years, 10 months ago (2012-02-03 18:23:37 UTC) #10
mmenke
http://codereview.chromium.org/9121053/diff/14019/chrome/browser/net/passive_log_collector.cc File chrome/browser/net/passive_log_collector.cc (right): http://codereview.chromium.org/9121053/diff/14019/chrome/browser/net/passive_log_collector.cc#newcode872 chrome/browser/net/passive_log_collector.cc:872: if (entry.type == net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE && On 2012/02/03 18:23:37, rdsmith ...
8 years, 10 months ago (2012-02-03 18:27:54 UTC) #11
mmenke1
On 2012/02/03 18:05:30, rdsmith wrote: > One high level question for both Matt & Andy ...
8 years, 10 months ago (2012-02-03 18:28:35 UTC) #12
ahendrickson
On 2012/02/03 17:42:29, rdsmith wrote: > At this point we're at the level of things ...
8 years, 10 months ago (2012-02-03 19:08:20 UTC) #13
Randy Smith (Not in Mondays)
On 2012/02/03 19:08:20, ahendrickson wrote: > On 2012/02/03 17:42:29, rdsmith wrote: > > At this ...
8 years, 10 months ago (2012-02-03 19:11:10 UTC) #14
Randy Smith (Not in Mondays)
On 2012/02/03 19:11:10, rdsmith wrote: > On 2012/02/03 19:08:20, ahendrickson wrote: > > On 2012/02/03 ...
8 years, 10 months ago (2012-02-03 19:13:02 UTC) #15
ahendrickson
http://codereview.chromium.org/9121053/diff/14019/chrome/browser/resources/net_internals/source_entry.js File chrome/browser/resources/net_internals/source_entry.js (right): http://codereview.chromium.org/9121053/diff/14019/chrome/browser/resources/net_internals/source_entry.js#newcode190 chrome/browser/resources/net_internals/source_entry.js:190: e = this.findLogEntryByType_(LogEventType.DOWNLOAD_ITEM_ACTIVE); On 2012/02/03 18:23:37, rdsmith wrote: > ...
8 years, 10 months ago (2012-02-04 05:24:04 UTC) #16
mmenke
LGTM, from a purely NetLog standpoint, but I do think you shouldn't log the updates ...
8 years, 10 months ago (2012-02-04 05:35:28 UTC) #17
mmenke
http://codereview.chromium.org/9121053/diff/14019/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/9121053/diff/14019/content/browser/download/download_item_impl.cc#newcode414 content/browser/download/download_item_impl.cc:414: bound_net_log_.AddEvent( On 2012/02/04 05:35:28, Matt Menke wrote: > On ...
8 years, 10 months ago (2012-02-04 05:57:04 UTC) #18
ahendrickson
Randy, any unresolved issues? http://codereview.chromium.org/9121053/diff/14019/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/9121053/diff/14019/content/browser/download/download_item_impl.cc#newcode414 content/browser/download/download_item_impl.cc:414: bound_net_log_.AddEvent( On 2012/02/04 05:57:04, Matt ...
8 years, 10 months ago (2012-02-04 23:20:56 UTC) #19
Randy Smith (Not in Mondays)
On 2012/02/04 23:20:56, ahendrickson wrote: > Randy, any unresolved issues? What's your plan for logging ...
8 years, 10 months ago (2012-02-05 22:45:12 UTC) #20
Randy Smith (Not in Mondays)
On 2012/02/05 22:45:12, rdsmith wrote: > On 2012/02/04 23:20:56, ahendrickson wrote: > > Randy, any ...
8 years, 10 months ago (2012-02-05 22:59:24 UTC) #21
Randy Smith (Not in Mondays)
I think the description is out of date (mentions NetLog but we're not using BoundNetLog); ...
8 years, 10 months ago (2012-02-05 23:49:14 UTC) #22
ahendrickson
On 2012/02/05 22:45:12, rdsmith wrote: > What's your plan for logging from DownloadResourceHandler? (I won't ...
8 years, 10 months ago (2012-02-06 02:50:25 UTC) #23
ahendrickson
On 2012/02/05 22:59:24, rdsmith wrote: > On 2012/02/05 22:45:12, rdsmith wrote: > > What's your ...
8 years, 10 months ago (2012-02-06 02:54:51 UTC) #24
Randy Smith (Not in Mondays)
On 2012/02/06 02:50:25, ahendrickson wrote: > On 2012/02/05 22:45:12, rdsmith wrote: > > What's your ...
8 years, 10 months ago (2012-02-06 18:19:21 UTC) #25
Randy Smith (Not in Mondays)
On 2012/02/06 18:19:21, rdsmith wrote: > On 2012/02/06 02:50:25, ahendrickson wrote: > > On 2012/02/05 ...
8 years, 10 months ago (2012-02-06 18:20:15 UTC) #26
Randy Smith (Not in Mondays)
On 2012/02/06 02:54:51, ahendrickson wrote: > On 2012/02/05 22:59:24, rdsmith wrote: > > On 2012/02/05 ...
8 years, 10 months ago (2012-02-06 18:22:46 UTC) #27
ahendrickson
On 2012/02/06 18:20:15, rdsmith wrote: > On 2012/02/06 18:19:21, rdsmith wrote: > > On 2012/02/06 ...
8 years, 10 months ago (2012-02-06 20:37:00 UTC) #28
ahendrickson
http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.cc#newcode911 content/browser/download/download_item_impl.cc:911: bound_net_log_.EndEvent(net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE, NULL); On 2012/02/05 23:49:15, rdsmith wrote: > Do ...
8 years, 10 months ago (2012-02-06 21:39:20 UTC) #29
Randy Smith (Not in Mondays)
http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.cc#newcode911 content/browser/download/download_item_impl.cc:911: bound_net_log_.EndEvent(net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE, NULL); On 2012/02/06 21:39:20, ahendrickson wrote: > On ...
8 years, 10 months ago (2012-02-06 22:34:59 UTC) #30
ahendrickson
http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.cc#newcode911 content/browser/download/download_item_impl.cc:911: bound_net_log_.EndEvent(net::NetLog::TYPE_DOWNLOAD_ITEM_ACTIVE, NULL); On 2012/02/06 22:34:59, rdsmith wrote: > On ...
8 years, 10 months ago (2012-02-07 00:16:19 UTC) #31
Randy Smith (Not in Mondays)
http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.h File content/browser/download/download_item_impl.h (right): http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.h#newcode91 content/browser/download/download_item_impl.h:91: // Constructing for a regular download. On 2012/02/06 21:39:20, ...
8 years, 10 months ago (2012-02-07 15:09:45 UTC) #32
ahendrickson
Changed all DownloadItemImpl constructors to take a BoundNetLog. http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.h File content/browser/download/download_item_impl.h (right): http://codereview.chromium.org/9121053/diff/15025/content/browser/download/download_item_impl.h#newcode91 content/browser/download/download_item_impl.h:91: // ...
8 years, 10 months ago (2012-02-07 17:18:35 UTC) #33
mmenke1
http://codereview.chromium.org/9121053/diff/44012/net/base/net_log_event_type_list.h File net/base/net_log_event_type_list.h (right): http://codereview.chromium.org/9121053/diff/44012/net/base/net_log_event_type_list.h#newcode1484 net/base/net_log_event_type_list.h:1484: // state_info.force_filename nit: Suggest you indent this list, or ...
8 years, 10 months ago (2012-02-07 18:08:10 UTC) #34
Randy Smith (Not in Mondays)
LGTM. http://codereview.chromium.org/9121053/diff/44012/content/browser/download/download_item_impl.h File content/browser/download/download_item_impl.h (right): http://codereview.chromium.org/9121053/diff/44012/content/browser/download/download_item_impl.h#newcode85 content/browser/download/download_item_impl.h:85: // Constructing from persistent store: All the back ...
8 years, 10 months ago (2012-02-07 22:56:08 UTC) #35
ahendrickson
http://codereview.chromium.org/9121053/diff/44012/content/browser/download/download_item_impl.h File content/browser/download/download_item_impl.h (right): http://codereview.chromium.org/9121053/diff/44012/content/browser/download/download_item_impl.h#newcode85 content/browser/download/download_item_impl.h:85: // Constructing from persistent store: On 2012/02/07 22:56:08, rdsmith ...
8 years, 10 months ago (2012-02-07 23:04:22 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/9121053/50002
8 years, 10 months ago (2012-02-07 23:08:26 UTC) #37
commit-bot: I haz the power
8 years, 10 months ago (2012-02-08 02:24:10 UTC) #38
Change committed as 120911

Powered by Google App Engine
This is Rietveld 408576698