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

Issue 302553006: Suppress pause and buffer for local resources (Closed)

Created:
6 years, 7 months ago by amogh.bihani
Modified:
6 years, 6 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, Ami GONE FROM CHROMIUM
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Suppress pause and buffer for local resources For local resources we do not need to buffer while the player is paused. "Pause and Buffer" amounts to unnecessary transmission between browser and renderer. BufferedDataSource already knows whether the resource is local or not. This patch changes the defer strategy in BufferedResourceLoader for local resources. BUG=129120 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275840

Patch Set 1 #

Total comments: 1

Patch Set 2 : Correcting comments #

Patch Set 3 : Using assume_fully_buffered_ instead of is_local_source_ #

Patch Set 4 : Adding unit test #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : Addressing comments #

Total comments: 4

Patch Set 7 : Adding tests for local, 206 and 200 repsonses #

Total comments: 2

Patch Set 8 : rebase #

Patch Set 9 : #

Patch Set 10 : Fixing crashing tests #

Patch Set 11 : Using default arguments instead of overloading #

Total comments: 1

Patch Set 12 : removing default arguments, adding setter for preload #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -17 lines) Patch
M content/renderer/media/buffered_data_source.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/media/buffered_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +138 lines, -8 lines 0 comments Download
M content/renderer/media/buffered_resource_loader.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
amogh.bihani
PTAL.
6 years, 7 months ago (2014-05-27 12:04:38 UTC) #1
AmoghBihani
https://codereview.chromium.org/302553006/diff/1/content/renderer/media/buffered_data_source.cc File content/renderer/media/buffered_data_source.cc (right): https://codereview.chromium.org/302553006/diff/1/content/renderer/media/buffered_data_source.cc#newcode531 content/renderer/media/buffered_data_source.cc:531: // in buffer is not necessary while the player ...
6 years, 7 months ago (2014-05-27 14:17:30 UTC) #2
Ami GONE FROM CHROMIUM
I no longer have enough state on the resource loading codepaths to provide a useful ...
6 years, 7 months ago (2014-05-27 15:28:37 UTC) #3
amogh.bihani
Scherkus@ PTAL.
6 years, 6 months ago (2014-05-28 13:29:14 UTC) #4
scherkus (not reviewing)
hrmm... it almost seems better if BufferedDataSource could decide this information itself seeing as it ...
6 years, 6 months ago (2014-05-29 03:06:13 UTC) #5
amogh.bihani
Thanks for the review. :) I have made the changes and added an unit test. ...
6 years, 6 months ago (2014-05-29 09:38:57 UTC) #6
scherkus (not reviewing)
https://codereview.chromium.org/302553006/diff/80001/content/renderer/media/buffered_data_source.cc File content/renderer/media/buffered_data_source.cc (right): https://codereview.chromium.org/302553006/diff/80001/content/renderer/media/buffered_data_source.cc#newcode532 content/renderer/media/buffered_data_source.cc:532: loader_->UpdateDeferStrategy(BufferedResourceLoader::kReadThenDefer); I feel like kCapacityDefer is right one to ...
6 years, 6 months ago (2014-05-30 20:37:38 UTC) #7
amogh.bihani
Thanks for the review. :) I have made the changes, PTAL. https://codereview.chromium.org/302553006/diff/80001/content/renderer/media/buffered_data_source.cc File content/renderer/media/buffered_data_source.cc (right): ...
6 years, 6 months ago (2014-06-02 05:01:28 UTC) #8
scherkus (not reviewing)
https://codereview.chromium.org/302553006/diff/90001/content/renderer/media/buffered_data_source_unittest.cc File content/renderer/media/buffered_data_source_unittest.cc (right): https://codereview.chromium.org/302553006/diff/90001/content/renderer/media/buffered_data_source_unittest.cc#newcode223 content/renderer/media/buffered_data_source_unittest.cc:223: void set_might_be_reused_from_cache_in_future(bool value) { instead of setting this private ...
6 years, 6 months ago (2014-06-02 20:02:33 UTC) #9
amogh.bihani
Thanks! Comments are in PS6 and PS7 https://codereview.chromium.org/302553006/diff/90001/content/renderer/media/buffered_data_source_unittest.cc File content/renderer/media/buffered_data_source_unittest.cc (right): https://codereview.chromium.org/302553006/diff/90001/content/renderer/media/buffered_data_source_unittest.cc#newcode223 content/renderer/media/buffered_data_source_unittest.cc:223: void set_might_be_reused_from_cache_in_future(bool ...
6 years, 6 months ago (2014-06-03 10:15:42 UTC) #10
scherkus (not reviewing)
lgtm
6 years, 6 months ago (2014-06-03 18:08:51 UTC) #11
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 6 months ago (2014-06-04 02:54:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/302553006/110001
6 years, 6 months ago (2014-06-04 02:55:28 UTC) #13
amogh.bihani
The CQ bit was unchecked by amogh.bihani@samsung.com
6 years, 6 months ago (2014-06-04 04:18:17 UTC) #14
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 6 months ago (2014-06-04 09:41:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/302553006/120001
6 years, 6 months ago (2014-06-04 09:44:10 UTC) #16
AmoghBihani
Sorry, I need you to again have a look. Unittests had to be changed after ...
6 years, 6 months ago (2014-06-04 15:30:46 UTC) #17
amogh.bihani
On 2014/06/04 15:30:46, AmoghBihani wrote: > Sorry, I need you to again have a look. ...
6 years, 6 months ago (2014-06-06 13:44:42 UTC) #18
scherkus (not reviewing)
https://codereview.chromium.org/302553006/diff/180001/content/renderer/media/buffered_data_source_unittest.cc File content/renderer/media/buffered_data_source_unittest.cc (right): https://codereview.chromium.org/302553006/diff/180001/content/renderer/media/buffered_data_source_unittest.cc#newcode124 content/renderer/media/buffered_data_source_unittest.cc:124: void Initialize(const char* url, bool expected, Preload preload = ...
6 years, 6 months ago (2014-06-06 16:39:20 UTC) #19
amogh.bihani
Thanks! I have made the changes.
6 years, 6 months ago (2014-06-09 03:41:30 UTC) #20
amogh.bihani
The CQ bit was checked by amogh.bihani@samsung.com
6 years, 6 months ago (2014-06-09 08:36:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/302553006/220001
6 years, 6 months ago (2014-06-09 08:38:09 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-09 12:56:11 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 19:58:50 UTC) #24
Message was sent while issue was closed.
Change committed as 275840

Powered by Google App Engine
This is Rietveld 408576698