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

Issue 118345: Http Cache: First pass of byte-range requests support.... (Closed)

Created:
11 years, 6 months ago by rvargas (doing something else)
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Http Cache: First pass of byte-range requests support. This is the first pass to implement support for range requests and the asociated sparse cache entry. It is disabled by default, and requires ENABLE_RANGE_SUPPORT to be defined in order to activate the code: all the code is compiled in, but Start() bypasses the cache for range requests, and OnNetworkInfoAvailable ignores 206. Big parts are still not implemented. Most notably we are not modifying the response headers that we send to the user, so the content-range and content-length info are not correct. BUG=12258 TEST=Unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18289

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+643 lines, -62 lines) Patch
M net/http/http_cache.cc View 1 2 26 chunks +277 lines, -59 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 4 chunks +125 lines, -3 lines 0 comments Download
M net/http/http_response_headers.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
A net/http/partial_data.h View 1 chunk +97 lines, -0 lines 0 comments Download
A net/http/partial_data.cc View 1 chunk +131 lines, -0 lines 0 comments Download
M net/net.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rvargas (doing something else)
Darin, I just thought it was better to have smaller reviews so that's why this ...
11 years, 6 months ago (2009-06-06 00:55:22 UTC) #1
rvargas (doing something else)
http://codereview.chromium.org/118345/diff/1002/14 File net/http/http_cache.cc (right): http://codereview.chromium.org/118345/diff/1002/14#newcode1077 Line 1077: if (partial_.get() && !partial_->IsCurrentRangeCached()) { Should we remove ...
11 years, 6 months ago (2009-06-09 03:35:14 UTC) #2
darin (slow to review)
OK, LGTM http://codereview.chromium.org/118345/diff/1002/14 File net/http/http_cache.cc (right): http://codereview.chromium.org/118345/diff/1002/14#newcode134 Line 134: class PartialData { nit: it would ...
11 years, 6 months ago (2009-06-11 17:23:42 UTC) #3
rvargas (doing something else)
Thanks. All comments addressed. > it is important to note that If-range is only useful ...
11 years, 6 months ago (2009-06-11 22:30:51 UTC) #4
darin (slow to review)
11 years, 6 months ago (2009-06-11 22:34:24 UTC) #5
OK, LGTM

Powered by Google App Engine
This is Rietveld 408576698