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

Issue 1481143002: Added HttpUtils::HasValidators and HttpResponse::HasValidators (Closed)

Created:
5 years ago by jamartin
Modified:
4 years, 9 months ago
Reviewers:
bengr, gavinp, twifkak
CC:
chromium-reviews, cbentzel+watch_chromium.org, wifiprefetch-reviews_google.com, jamartin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added HttpUtils::HasValidators and HttpResponse::HasValidators Used in components/precache_fetcher.cc, part of the project "Wi-Fi Prefetch for Chrome Mobile" (see BUG), in order to increase the coverage of cacheable resources. Tested: $ ./build/gyp_chromium -D OS=linux && \ ninja -C out/Debug components_unittests net_unittests && \ out/Debug/components_unittests --gtest_filter=Precache* && \ out/Debug/net_unittests --gtest_filter=*.HasValidators* BUG=309216 Committed: https://crrev.com/2edf0e7ce56f2126ed7a22392b61a25dcc62f3dd Cr-Commit-Position: refs/heads/master@{#378226}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed first batch of bengr@'s comments #

Total comments: 4

Patch Set 3 : Fixed typos in the documentation #

Total comments: 5

Patch Set 4 : Sync'ed and rebased to master #

Patch Set 5 : Removed loops from the test cases #

Total comments: 8

Patch Set 6 : Tests for empty ("\"\"") ETags #

Total comments: 8

Patch Set 7 : Clarified the documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -2 lines) Patch
M components/precache/core/precache_fetcher.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_response_headers.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M net/http/http_util.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M net/http/http_util.cc View 1 2 3 4 5 6 2 chunks +21 lines, -0 lines 0 comments Download
M net/http/http_util_unittest.cc View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (17 generated)
jamartin
5 years ago (2015-11-27 18:55:46 UTC) #2
jamartin (wrong)
gavinp@chromium.org: Please review changes in net/http/
5 years ago (2015-11-27 19:03:14 UTC) #4
bengr
https://codereview.chromium.org/1481143002/diff/1/net/http/http_response_headers.h File net/http/http_response_headers.h (right): https://codereview.chromium.org/1481143002/diff/1/net/http/http_response_headers.h#newcode261 net/http/http_response_headers.h:261: // section 13.3.3 of RFC 2616. I'd add that ...
5 years ago (2015-12-03 17:42:21 UTC) #5
jamartin (wrong)
PTAL. https://codereview.chromium.org/1481143002/diff/1/net/http/http_response_headers.h File net/http/http_response_headers.h (right): https://codereview.chromium.org/1481143002/diff/1/net/http/http_response_headers.h#newcode261 net/http/http_response_headers.h:261: // section 13.3.3 of RFC 2616. On 2015/12/03 ...
5 years ago (2015-12-08 16:58:18 UTC) #7
bengr
lgtm, with nits on comments. https://codereview.chromium.org/1481143002/diff/20001/net/http/http_response_headers.h File net/http/http_response_headers.h (right): https://codereview.chromium.org/1481143002/diff/20001/net/http/http_response_headers.h#newcode261 net/http/http_response_headers.h:261: // an ETag) regardless ...
4 years, 10 months ago (2016-02-21 21:08:06 UTC) #8
jamartin
All done. I'm ready to submit now. https://codereview.chromium.org/1481143002/diff/20001/net/http/http_response_headers.h File net/http/http_response_headers.h (right): https://codereview.chromium.org/1481143002/diff/20001/net/http/http_response_headers.h#newcode261 net/http/http_response_headers.h:261: // an ...
4 years, 10 months ago (2016-02-22 16:49:43 UTC) #9
bengr
On 2016/02/22 16:49:43, jamartin1 wrote: > All done. I'm ready to submit now. > > ...
4 years, 10 months ago (2016-02-22 17:23:36 UTC) #10
twifkak
lgtm LG so you don't have to wait for another earth rotation for me to ...
4 years, 10 months ago (2016-02-22 23:44:44 UTC) #11
twifkak
s/required/strongly preferred/. I came across a little harsh, there. Thanks for this change!
4 years, 10 months ago (2016-02-22 23:45:40 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481143002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481143002/80001
4 years, 10 months ago (2016-02-23 13:53:41 UTC) #17
jamartin
All done. Thanks for the reviews. I'm now waiting for Gavin's approval for the OWNERship. ...
4 years, 10 months ago (2016-02-23 14:03:35 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-23 15:07:19 UTC) #20
twifkak
lgtm https://codereview.chromium.org/1481143002/diff/40001/net/http/http_util_unittest.cc File net/http/http_util_unittest.cc (right): https://codereview.chromium.org/1481143002/diff/40001/net/http/http_util_unittest.cc#newcode1191 net/http/http_util_unittest.cc:1191: } On 2016/02/23 14:03:35, jamartin1 wrote: > On ...
4 years, 10 months ago (2016-02-24 21:07:39 UTC) #23
mmenke
[+gavinp]: Mind reviewing? I'm unfamiliar with validators. There should be a filed bug for this, ...
4 years, 10 months ago (2016-02-25 07:56:45 UTC) #25
jamartin
https://codereview.chromium.org/1481143002/diff/80001/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/1481143002/diff/80001/net/http/http_response_headers.cc#newcode1251 net/http/http_response_headers.cc:1251: bool HttpResponseHeaders::HasValidators() const { On 2016/02/25 07:56:45, mmenke wrote: ...
4 years, 10 months ago (2016-02-25 11:30:49 UTC) #27
mmenke
https://codereview.chromium.org/1481143002/diff/80001/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/1481143002/diff/80001/net/http/http_response_headers.cc#newcode1251 net/http/http_response_headers.cc:1251: bool HttpResponseHeaders::HasValidators() const { On 2016/02/25 11:30:49, jamartin1 wrote: ...
4 years, 10 months ago (2016-02-25 11:41:06 UTC) #28
gavinp
Looks good and useful; just two annoying questions. https://codereview.chromium.org/1481143002/diff/80001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/1481143002/diff/80001/net/http/http_util.cc#newcode740 net/http/http_util.cc:740: const ...
4 years, 10 months ago (2016-02-25 18:56:20 UTC) #29
jamartin
PTAL. https://codereview.chromium.org/1481143002/diff/80001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/1481143002/diff/80001/net/http/http_util.cc#newcode740 net/http/http_util.cc:740: const std::string& date_header) { On 2016/02/25 18:56:20, gavinp ...
4 years, 10 months ago (2016-02-26 14:47:50 UTC) #30
gavinp
LGTM. Take or leave my nits as you see fit. Really awesome on updating the ...
4 years, 10 months ago (2016-02-26 15:32:59 UTC) #31
gavinp
(in which I admit to being rong earlier about a thing) https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc File net/http/http_util.cc (right): ...
4 years, 10 months ago (2016-02-26 15:35:14 UTC) #32
jamartin
Thanks for the review. Submitting... https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc#newcode744 net/http/http_util.cc:744: if (version < HttpVersion(1, ...
4 years, 9 months ago (2016-02-29 14:40:01 UTC) #34
gavinp
Thanks! I learned a lot in the review. https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc#newcode744 net/http/http_util.cc:744: if ...
4 years, 9 months ago (2016-02-29 14:44:00 UTC) #35
gavinp
Thanks! I learned a lot in the review. https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/1481143002/diff/100001/net/http/http_util.cc#newcode744 net/http/http_util.cc:744: if ...
4 years, 9 months ago (2016-02-29 14:44:01 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481143002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481143002/120001
4 years, 9 months ago (2016-02-29 15:15:28 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-02-29 17:39:34 UTC) #41
commit-bot: I haz the power
4 years, 9 months ago (2016-02-29 17:40:32 UTC) #43
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2edf0e7ce56f2126ed7a22392b61a25dcc62f3dd
Cr-Commit-Position: refs/heads/master@{#378226}

Powered by Google App Engine
This is Rietveld 408576698