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

Issue 1444253003: Use If-Range instead of If-Match/If-Unmodified-Since for partial requests. (Closed)

Created:
5 years, 1 month ago by asanka
Modified:
5 years ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use If-Range instead of If-Match/If-Unmodified-Since for partial requests. If-Range can shortcut partial resumption requests by having the server respond with the entire entity if there's a validator mismatch. This cuts down resumptions by one roundtrip. The If-Range has been in use by HttpCacheTransaction successfully and it is not believed that availability of support is a concern. R=rdsmith@chromium.org,svaldez@chromium.org,mkearney@chromium.org,davidben@chromium.org,isherman@chromium.org BUG=7648 Committed: https://crrev.com/eaa4e86fe7d9154bde31181108180480e1d603c1 Cr-Commit-Position: refs/heads/master@{#362771}

Patch Set 1 #

Patch Set 2 : Retire SERVER_PRECONDITION interrupt reason. #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Add comment indicating why the value 32 is missing in interrupt reasons list. #

Total comments: 2

Patch Set 5 : Make it obvious that the interrupt reason is obsolete. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -84 lines) Patch
M chrome/browser/download/download_item_model.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/download/download_item_model_unittest.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/downloads.idl View 1 2 1 chunk +0 lines, -1 line 2 comments Download
M content/browser/download/download_browsertest.cc View 1 1 chunk +0 lines, -51 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 chunk +10 lines, -9 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/download_interrupt_reason_values.h View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 chunks +6 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (10 generated)
asanka
rdsmith: I'm breaking out the change to use If-Range instead of If-Match/If-Unmodified-Since.
5 years, 1 month ago (2015-11-16 19:33:18 UTC) #2
asanka
On 2015/11/16 at 19:33:18, asanka wrote: > rdsmith: I'm breaking out the change to use ...
5 years, 1 month ago (2015-11-16 19:33:29 UTC) #3
Randy Smith (Not in Mondays)
Should we make a corresponding change on the receiving side? I looked over the code, ...
5 years, 1 month ago (2015-11-16 20:59:57 UTC) #4
asanka
On 2015/11/16 at 20:59:57, rdsmith wrote: > Should we make a corresponding change on the ...
5 years, 1 month ago (2015-11-16 21:21:04 UTC) #5
Randy Smith (Not in Mondays)
On 2015/11/16 21:21:04, asanka wrote: > On 2015/11/16 at 20:59:57, rdsmith wrote: > > Should ...
5 years, 1 month ago (2015-11-17 22:04:39 UTC) #6
asanka
On 2015/11/17 at 22:04:39, rdsmith wrote: > On 2015/11/16 21:21:04, asanka wrote: > > On ...
5 years, 1 month ago (2015-11-21 01:27:38 UTC) #7
asanka
On 2015/11/21 at 01:27:38, asanka wrote: > On 2015/11/17 at 22:04:39, rdsmith wrote: > > ...
5 years, 1 month ago (2015-11-21 01:28:41 UTC) #8
Randy Smith (Not in Mondays)
LGTM with nit. https://codereview.chromium.org/1444253003/diff/40001/content/public/browser/download_interrupt_reason_values.h File content/public/browser/download_interrupt_reason_values.h (left): https://codereview.chromium.org/1444253003/diff/40001/content/public/browser/download_interrupt_reason_values.h#oldcode92 content/public/browser/download_interrupt_reason_values.h:92: I'd leave a comment here just ...
5 years, 1 month ago (2015-11-21 15:40:03 UTC) #9
asanka
rdsmith: Thanks! mkearney: downloads.idl I'm removing SERVER_PRECONDITION from InterruptReasons enum. Note that this change causes ...
5 years, 1 month ago (2015-11-23 16:42:48 UTC) #12
Randy Smith (Not in Mondays)
On 2015/11/23 16:42:48, asanka wrote: > rdsmith: Thanks! > > mkearney: downloads.idl > I'm removing ...
5 years, 1 month ago (2015-11-23 17:13:45 UTC) #13
davidben
content/public/browser/download_interrupt_reason_values.h lgtm with nit. Didn't look at the rest of the CL. https://codereview.chromium.org/1444253003/diff/60001/content/public/browser/download_interrupt_reason_values.h File content/public/browser/download_interrupt_reason_values.h ...
5 years, 1 month ago (2015-11-23 17:35:37 UTC) #14
Ilya Sherman
histograms.xml lgtm
5 years, 1 month ago (2015-11-23 19:21:09 UTC) #15
asanka
https://codereview.chromium.org/1444253003/diff/60001/content/public/browser/download_interrupt_reason_values.h File content/public/browser/download_interrupt_reason_values.h (right): https://codereview.chromium.org/1444253003/diff/60001/content/public/browser/download_interrupt_reason_values.h#newcode93 content/public/browser/download_interrupt_reason_values.h:93: // INTERRUPT_REASON(SERVER_PRECONDITION, 32) On 2015/11/23 at 17:35:37, davidben (slow) ...
5 years ago (2015-11-23 22:01:11 UTC) #16
asanka
mkearney: ping? Could you take a look at the downloads.idl changes? #12 mentions some caveats.
5 years ago (2015-11-24 17:34:34 UTC) #17
asanka
On 2015/11/24 at 17:34:34, asanka wrote: > mkearney: ping? Could you take a look at ...
5 years ago (2015-11-30 19:14:39 UTC) #18
mkearney1
lgtm
5 years ago (2015-12-02 16:49:50 UTC) #19
asanka
On 2015/12/02 at 16:49:50, mkearney wrote: > lgtm Thanks! Devlin: Could you also take a ...
5 years ago (2015-12-02 16:59:18 UTC) #22
Devlin
lgtm https://codereview.chromium.org/1444253003/diff/80001/chrome/common/extensions/api/downloads.idl File chrome/common/extensions/api/downloads.idl (left): https://codereview.chromium.org/1444253003/diff/80001/chrome/common/extensions/api/downloads.idl#oldcode58 chrome/common/extensions/api/downloads.idl:58: SERVER_PRECONDITION, Unfortunately, we expose these enums on the ...
5 years ago (2015-12-02 17:18:27 UTC) #23
asanka
Thanks! https://codereview.chromium.org/1444253003/diff/80001/chrome/common/extensions/api/downloads.idl File chrome/common/extensions/api/downloads.idl (left): https://codereview.chromium.org/1444253003/diff/80001/chrome/common/extensions/api/downloads.idl#oldcode58 chrome/common/extensions/api/downloads.idl:58: SERVER_PRECONDITION, On 2015/12/02 at 17:18:27, Devlin wrote: > ...
5 years ago (2015-12-02 17:23:52 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1444253003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1444253003/80001
5 years ago (2015-12-02 17:24:47 UTC) #26
Devlin
On 2015/12/02 17:23:52, asanka wrote: > --- > Note that this change causes "SERVER_PRECONDITION" to ...
5 years ago (2015-12-02 17:26:48 UTC) #27
asanka
On 2015/12/02 at 17:26:48, rdevlin.cronin wrote: > On 2015/12/02 17:23:52, asanka wrote: > > --- ...
5 years ago (2015-12-02 17:48:17 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-02 18:58:03 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1444253003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1444253003/80001
5 years ago (2015-12-02 19:15:17 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-02 19:32:13 UTC) #34
commit-bot: I haz the power
5 years ago (2015-12-02 19:33:11 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/eaa4e86fe7d9154bde31181108180480e1d603c1
Cr-Commit-Position: refs/heads/master@{#362771}

Powered by Google App Engine
This is Rietveld 408576698