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

Issue 1924383002: BufferedDataSource now caches redirects for subsequent requests (Closed)

Created:
4 years, 7 months ago by watk
Modified:
4 years, 7 months ago
Reviewers:
hubbe, DaleCurtis
CC:
DaleCurtis, chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

BufferedDataSource now caches redirects for subsequent requests on Android Previously BDS would always make requests to the initial URL. So if the response was a redirect it would be followed on every subsequent request. Now we save the destination after redirects and use it for future requests. This will speed up seeking because we need to do fewer http requests, and is more robust because we can be more sure that we're requesting bytes from the same resource each time. See the bug for an example. This is Android only for now because Android has historically had this behavior. MultiBufferDataSource, which will replace BDS, also implements this logic, so all platforms will soon have it. BUG=606666 Committed: https://crrev.com/7ca0b0cfb005a022f08346a778b4481b985078c1 Cr-Commit-Position: refs/heads/master@{#391121}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reword comment #

Patch Set 3 : rebase #

Patch Set 4 : Converted to android only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -0 lines) Patch
M media/blink/buffered_data_source.cc View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M media/blink/buffered_data_source_unittest.cc View 1 2 3 3 chunks +63 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
watk
PTAL. I didn't restrict this to Android only because MultiBuffer is already doing this, so ...
4 years, 7 months ago (2016-04-28 19:31:29 UTC) #3
hubbe
https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc File media/blink/buffered_data_source.cc (right): https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc#newcode395 media/blink/buffered_data_source.cc:395: // If it's empty, it was a response from ...
4 years, 7 months ago (2016-04-28 19:34:17 UTC) #4
watk
https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc File media/blink/buffered_data_source.cc (right): https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc#newcode395 media/blink/buffered_data_source.cc:395: // If it's empty, it was a response from ...
4 years, 7 months ago (2016-04-28 20:05:16 UTC) #5
hubbe
On 2016/04/28 20:05:16, watk wrote: > https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc > File media/blink/buffered_data_source.cc (right): > > https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc#newcode395 > ...
4 years, 7 months ago (2016-04-28 20:17:27 UTC) #7
watk
On 2016/04/28 20:17:27, hubbe wrote: > On 2016/04/28 20:05:16, watk wrote: > > > https://codereview.chromium.org/1924383002/diff/1/media/blink/buffered_data_source.cc ...
4 years, 7 months ago (2016-04-28 20:23:15 UTC) #8
hubbe
On 2016/04/28 20:23:15, watk wrote: > On 2016/04/28 20:17:27, hubbe wrote: > > On 2016/04/28 ...
4 years, 7 months ago (2016-04-28 20:48:15 UTC) #9
DaleCurtis
The service worker special case is for the security issue we had a while back ...
4 years, 7 months ago (2016-04-28 21:01:49 UTC) #11
chromium-reviews
I thought the solution to that was to not accept redirects from origin A to ...
4 years, 7 months ago (2016-04-28 21:19:01 UTC) #12
watk
On 2016/04/28 20:48:15, hubbe wrote: > On 2016/04/28 20:23:15, watk wrote: > > On 2016/04/28 ...
4 years, 7 months ago (2016-04-28 21:23:08 UTC) #13
watk
On 2016/04/28 20:48:15, hubbe wrote: > On 2016/04/28 20:23:15, watk wrote: > > On 2016/04/28 ...
4 years, 7 months ago (2016-04-28 21:23:51 UTC) #14
hubbe
On 2016/04/28 21:23:51, watk wrote: > On 2016/04/28 20:48:15, hubbe wrote: > > On 2016/04/28 ...
4 years, 7 months ago (2016-04-28 22:11:52 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924383002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924383002/20001
4 years, 7 months ago (2016-04-28 22:42:27 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/220919)
4 years, 7 months ago (2016-04-29 00:15:50 UTC) #19
watk
PTAL
4 years, 7 months ago (2016-05-02 22:35:14 UTC) #21
hubbe
lgtm
4 years, 7 months ago (2016-05-02 22:40:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1924383002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1924383002/60001
4 years, 7 months ago (2016-05-02 22:41:48 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-03 00:36:16 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 00:39:04 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7ca0b0cfb005a022f08346a778b4481b985078c1
Cr-Commit-Position: refs/heads/master@{#391121}

Powered by Google App Engine
This is Rietveld 408576698