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

Issue 187583002: Cleanup: have common HttpResponseHeaders routine to update with range (Closed)

Created:
6 years, 9 months ago by kinuko
Modified:
6 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Cleanup: have common HttpResponseHeaders routine to update with range Currently we do this header-fixup in two places: PartialData and AppCache, and I'm planning to do the very same header-fixup in yet another module, ServiceWorker. I want to have a common utility in net/http/http_util to do this so that all 3 modules can share it. BUG=349319 TEST=HttpResponseHeadersTest.UpdateWithNewRange Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255905

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : addressed comments #

Total comments: 6

Patch Set 4 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -41 lines) Patch
M net/http/http_response_headers.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 3 chunks +28 lines, -0 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 1 2 3 2 chunks +53 lines, -0 lines 0 comments Download
M net/http/partial_data.cc View 1 2 1 chunk +11 lines, -25 lines 0 comments Download
M webkit/browser/appcache/appcache_url_request_job.cc View 1 2 2 chunks +3 lines, -16 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kinuko
Hi, I do like to make a small refactoring to have common routine in net/http/http_util. ...
6 years, 9 months ago (2014-03-05 10:05:11 UTC) #1
rvargas (doing something else)
https://codereview.chromium.org/187583002/diff/20001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/187583002/diff/20001/net/http/http_util.cc#newcode300 net/http/http_util.cc:300: if (!byte_range.IsValid()) We should probably dcheck this and return ...
6 years, 9 months ago (2014-03-05 19:47:33 UTC) #2
kinuko
(Changed issue subject) Thanks, addressed comments. https://codereview.chromium.org/187583002/diff/20001/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/187583002/diff/20001/net/http/http_util.cc#newcode300 net/http/http_util.cc:300: if (!byte_range.IsValid()) On ...
6 years, 9 months ago (2014-03-06 04:11:29 UTC) #3
kinuko
(+michaeln for appcache/ owner review)
6 years, 9 months ago (2014-03-06 04:14:42 UTC) #4
mmenke
I'm going to defer to rvargas on this one - I really don't know byte ...
6 years, 9 months ago (2014-03-06 18:18:47 UTC) #5
michaeln
appcache lgtm
6 years, 9 months ago (2014-03-06 18:58:52 UTC) #6
rvargas (doing something else)
https://codereview.chromium.org/187583002/diff/40001/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/187583002/diff/40001/net/http/http_response_headers.cc#newcode383 net/http/http_response_headers.cc:383: DCHECK(byte_range.IsValid()); On 2014/03/06 18:18:48, mmenke wrote: > Maybe add: ...
6 years, 9 months ago (2014-03-06 19:24:00 UTC) #7
kinuko
Updated, thanks. https://codereview.chromium.org/187583002/diff/40001/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/187583002/diff/40001/net/http/http_response_headers.cc#newcode383 net/http/http_response_headers.cc:383: DCHECK(byte_range.IsValid()); On 2014/03/06 19:24:00, rvargas wrote: > ...
6 years, 9 months ago (2014-03-07 05:05:13 UTC) #8
rvargas (doing something else)
LGTM
6 years, 9 months ago (2014-03-07 19:07:53 UTC) #9
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 9 months ago (2014-03-10 02:18:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187583002/60001
6 years, 9 months ago (2014-03-10 02:18:05 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 02:18:32 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-10 02:18:33 UTC) #13
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 9 months ago (2014-03-10 04:28:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187583002/60001
6 years, 9 months ago (2014-03-10 04:28:46 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 07:29:01 UTC) #16
Message was sent while issue was closed.
Change committed as 255905

Powered by Google App Engine
This is Rietveld 408576698