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

Issue 8601012: DownloadQuery filters and sorts DownloadItems. (Closed)

Created:
9 years, 1 month ago by benjhayden
Modified:
9 years ago
CC:
chromium-reviews, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

DownloadQuery filters and sorts DownloadItems DownloadQuery will be used first by the DownloadsSearchFunction in download_extension_api.h/cc to implement the chrome.experimental.downloads.search() function outlined in http://goo.gl/6hO1n BUG=12133 TEST=content_unittests DownloadQueryTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114460

Patch Set 1 : DownloadQuery #

Total comments: 26

Patch Set 2 : Callbacks #

Total comments: 20

Patch Set 3 : comments #

Total comments: 9

Patch Set 4 : tests #

Total comments: 55

Patch Set 5 : " #

Total comments: 4

Patch Set 6 : const #

Total comments: 6

Patch Set 7 : comments #

Total comments: 2

Patch Set 8 : kill dbhandle #

Total comments: 8

Patch Set 9 : ... #

Patch Set 10 : include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+921 lines, -0 lines) Patch
A content/browser/download/download_query.h View 1 2 3 4 5 6 7 8 1 chunk +148 lines, -0 lines 0 comments Download
A content/browser/download/download_query.cc View 1 2 3 4 5 6 7 8 1 chunk +373 lines, -0 lines 0 comments Download
A content/browser/download/download_query_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +397 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
benjhayden
PTAL. Please overlook the test's incompleteness for now. I'll write some more tests while awaiting ...
9 years ago (2011-11-22 19:54:06 UTC) #1
Randy Smith (Not in Mondays)
On 2011/11/22 19:54:06, b s h wrote: > PTAL. > Please overlook the test's incompleteness ...
9 years ago (2011-11-23 19:44:52 UTC) #2
benjhayden
I split http://codereview.chromium.org/7825035/ into the DownloadItemABC/Impl/Mock cl, this one, and one or two others, so ...
9 years ago (2011-11-23 19:56:57 UTC) #3
Randy Smith (Not in Mondays)
Non-test comments. This looks pretty good (though guideline comments as to the various bits of ...
9 years ago (2011-11-23 21:07:34 UTC) #4
benjhayden
As I mentioned IRL, I realized that I had partially re-implemented base::Bind/Callback, so I rewrote ...
9 years ago (2011-11-30 16:21:47 UTC) #5
Randy Smith (Not in Mondays)
Wow. This is nice. I presume you already have C++ readability, but if you don't, ...
9 years ago (2011-11-30 19:26:17 UTC) #6
benjhayden
I have C++ readability in google's internal reckoning. Do you know if that translates to ...
9 years ago (2011-11-30 22:13:49 UTC) #7
Randy Smith (Not in Mondays)
On 2011/11/30 22:13:49, b s h wrote: > I have C++ readability in google's internal ...
9 years ago (2011-11-30 22:27:27 UTC) #8
cbentzel
I won't be able to get to this review until Friday, but feel free to ...
9 years ago (2011-12-01 15:37:45 UTC) #9
Randy Smith (Not in Mondays)
Will do another round on tests when they're ready. But beyond that, looks good. http://codereview.chromium.org/8601012/diff/30001/content/browser/download/download_query.cc ...
9 years ago (2011-12-01 19:24:30 UTC) #10
benjhayden
The new tests cover every line except the NOTREACHED branches, which are only there to ...
9 years ago (2011-12-02 22:31:53 UTC) #11
asanka
http://codereview.chromium.org/8601012/diff/30001/content/browser/download/download_query.cc File content/browser/download/download_query.cc (right): http://codereview.chromium.org/8601012/diff/30001/content/browser/download/download_query.cc#newcode54 content/browser/download/download_query.cc:54: } On 2011/12/02 22:31:53, b s h wrote: > ...
9 years ago (2011-12-05 05:17:10 UTC) #12
Randy Smith (Not in Mondays)
Quick note before I review the unit tests: I don't see a perftest here (I'm ...
9 years ago (2011-12-05 20:02:42 UTC) #13
benjhayden
On 2011/12/05 20:02:42, rdsmith wrote: > Quick note before I review the unit tests: I ...
9 years ago (2011-12-05 20:20:20 UTC) #14
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h#newcode56 content/browser/download/download_query.h:56: FILTER_FIELD_START_TIME, // int nit: Mention somewhere that times are ...
9 years ago (2011-12-05 20:25:42 UTC) #15
cbentzel
This looks really cool! Nice improvement. I'll let Randy do the detailed review, I primarily ...
9 years ago (2011-12-05 21:56:26 UTC) #16
benjhayden
Search() usually takes about 46 nanoseconds per item per filter when all the filters are ...
9 years ago (2011-12-09 19:29:15 UTC) #17
cbentzel
I'm happy with the interface now. I'll remove myself from the reviewers list and let ...
9 years ago (2011-12-09 19:38:58 UTC) #18
cbentzel
I'm happy with the interface now. I'll remove myself from the reviewers list and let ...
9 years ago (2011-12-09 19:38:58 UTC) #19
benjhayden
http://codereview.chromium.org/8601012/diff/45002/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/45002/content/browser/download/download_query.h#newcode122 content/browser/download/download_query.h:122: DownloadVector* results) { On 2011/12/09 19:38:58, cbentzel wrote: > ...
9 years ago (2011-12-09 21:57:53 UTC) #20
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8601012/diff/7001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/7001/content/browser/download/download_query.h#newcode16 content/browser/download/download_query.h:16: namespace download_util { On 2011/12/05 21:56:26, cbentzel wrote: > ...
9 years ago (2011-12-12 18:17:54 UTC) #21
Randy Smith (Not in Mondays)
Sorry, one other request: I find the issue description (and the subject) a bit terse; ...
9 years ago (2011-12-12 18:19:53 UTC) #22
cbentzel
http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h#newcode72 content/browser/download/download_query.h:72: bool Filter(FilterFieldName name, int value); On 2011/12/12 18:17:54, rdsmith ...
9 years ago (2011-12-12 19:08:29 UTC) #23
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h#newcode72 content/browser/download/download_query.h:72: bool Filter(FilterFieldName name, int value); On 2011/12/12 19:08:29, cbentzel ...
9 years ago (2011-12-12 19:19:29 UTC) #24
benjhayden
http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h#newcode36 content/browser/download/download_query.h:36: class CONTENT_EXPORT DownloadQuery { On 2011/12/12 18:17:54, rdsmith wrote: ...
9 years ago (2011-12-12 19:52:10 UTC) #25
Randy Smith (Not in Mondays)
LGTM given the sort change as we discussed. As I mention, I'd vote in favor ...
9 years ago (2011-12-12 21:01:38 UTC) #26
benjhayden
http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h#newcode72 content/browser/download/download_query.h:72: bool Filter(FilterFieldName name, int value); On 2011/12/12 21:01:38, rdsmith ...
9 years ago (2011-12-12 21:28:06 UTC) #27
Randy Smith (Not in Mondays)
http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h File content/browser/download/download_query.h (right): http://codereview.chromium.org/8601012/diff/36001/content/browser/download/download_query.h#newcode72 content/browser/download/download_query.h:72: bool Filter(FilterFieldName name, int value); On 2011/12/12 21:28:06, b ...
9 years ago (2011-12-12 21:31:56 UTC) #28
asanka
LGTM. Comments are nits. http://codereview.chromium.org/8601012/diff/50004/content/browser/download/download_query.cc File content/browser/download/download_query.cc (right): http://codereview.chromium.org/8601012/diff/50004/content/browser/download/download_query.cc#newcode338 content/browser/download/download_query.cc:338: direction, &GetFilename)); Nit: indentation. Here ...
9 years ago (2011-12-13 16:17:12 UTC) #29
benjhayden
Thank you, everybody, for your help and your patience! I'll submit as soon as the ...
9 years ago (2011-12-13 18:50:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8601012/67006
9 years ago (2011-12-13 21:24:25 UTC) #31
commit-bot: I haz the power
Try job failure for 8601012-67006 (retry) on win_rel for step "compile" (clobber build). It's a ...
9 years ago (2011-12-13 22:07:40 UTC) #32
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years ago (2011-12-14 14:28:29 UTC) #33
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years ago (2011-12-14 14:29:47 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8601012/72001
9 years ago (2011-12-14 14:39:28 UTC) #35
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years ago (2011-12-14 17:04:46 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8601012/72001
9 years ago (2011-12-14 17:42:11 UTC) #37
commit-bot: I haz the power
9 years ago (2011-12-14 18:40:43 UTC) #38
Change committed as 114460

Powered by Google App Engine
This is Rietveld 408576698