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

Issue 104513002: Fixed playing video in component extensions. (Closed)

Created:
7 years ago by kirr
Modified:
6 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fixed playing video in component extensions. Added support of range request to URLRequestSimpleJob. BufferedDataSource uses range requests for buffering video. But extension protocol performs these requests using URLRequestResourceBundleJob, which is not support range requests. BUG=330501 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244667

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added RangeRequestHelper #

Patch Set 3 : RangeRequestHelper replaced by URLRangeRequestJob #

Patch Set 4 : Added URLRequestSimpleJobTest. More clear ignoring incorrect range headers. #

Total comments: 25

Patch Set 5 : Fixed nits #

Total comments: 4

Patch Set 6 : Fixed nits #

Patch Set 7 : Fixed license misprint and printf crash. #

Patch Set 8 : Linux compilation fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -4 lines) Patch
M net/net.gyp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A net/url_request/url_range_request_job.h View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A net/url_request/url_range_request_job.cc View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M net/url_request/url_request_simple_job.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_simple_job.cc View 1 2 3 4 5 4 chunks +25 lines, -2 lines 0 comments Download
A net/url_request/url_request_simple_job_unittest.cc View 1 2 3 4 5 6 7 1 chunk +141 lines, -0 lines 0 comments Download
M tools/gn/secondary/net/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
kirr
Please review my code. The problem is video was not played if its source file ...
7 years ago (2013-12-05 09:24:13 UTC) #1
kirr
ping :)
7 years ago (2013-12-06 14:23:42 UTC) #2
willchan no longer on Chromium
The two previous engineers you emailed no longer work on the project. Sending this to ...
7 years ago (2013-12-06 18:46:25 UTC) #3
pivanof
I believe I don't have power to approve changes anyway. On Fri, Dec 6, 2013 ...
7 years ago (2013-12-06 18:55:38 UTC) #4
mmenke
Could you please file a bug describing the exact problem? I'd love a simple repro ...
7 years ago (2013-12-06 19:25:10 UTC) #5
kirr
The problem is that BufferedDataSource could send a range request, but URLRequestResourceBundleJob does not support ...
7 years ago (2013-12-15 09:17:27 UTC) #6
kirr
Sorry for the delay.
7 years ago (2013-12-15 09:17:58 UTC) #7
mmenke
On 2013/12/15 09:17:58, kirr wrote: > Sorry for the delay. Not a problem. I'll try ...
7 years ago (2013-12-16 16:04:59 UTC) #8
mmenke
For unit tests, I suggest we make something like url_request_unittest (Look at the basic test ...
7 years ago (2013-12-17 17:10:14 UTC) #9
kirr
https://codereview.chromium.org/104513002/diff/1/net/url_request/url_request_simple_job.cc File net/url_request/url_request_simple_job.cc (right): https://codereview.chromium.org/104513002/diff/1/net/url_request/url_request_simple_job.cc#newcode68 net/url_request/url_request_simple_job.cc:68: ERR_REQUEST_RANGE_NOT_SATISFIABLE)); It seems you are right. But all URLRequestJobs ...
7 years ago (2013-12-18 08:03:30 UTC) #10
mmenke
https://codereview.chromium.org/104513002/diff/1/net/url_request/url_request_simple_job.cc File net/url_request/url_request_simple_job.cc (right): https://codereview.chromium.org/104513002/diff/1/net/url_request/url_request_simple_job.cc#newcode68 net/url_request/url_request_simple_job.cc:68: ERR_REQUEST_RANGE_NOT_SATISFIABLE)); Thanks for pointing that out! I think conceptually, ...
7 years ago (2013-12-18 15:40:31 UTC) #11
mmenke
Another engineer has pointed out to me just how weird this behavior really is, and ...
7 years ago (2013-12-18 17:33:58 UTC) #12
mmenke
On 2013/12/18 17:33:58, mmenke wrote: > Another engineer has pointed out to me just how ...
7 years ago (2013-12-18 17:35:25 UTC) #13
kirr
Added helper class. Please see, if I understand right. If it's ok, I can add ...
7 years ago (2013-12-19 10:31:56 UTC) #14
mmenke
On 2013/12/19 10:31:56, kirr wrote: > Added helper class. > Please see, if I understand ...
7 years ago (2013-12-19 17:05:33 UTC) #15
mmenke
On 2013/12/19 17:05:33, mmenke wrote: > On 2013/12/19 10:31:56, kirr wrote: > > Added helper ...
7 years ago (2013-12-19 17:11:12 UTC) #16
kirr
I've added URLRangeRequestJob. But to make this class consistent it should be small. It's just ...
7 years ago (2013-12-23 13:35:50 UTC) #17
mmenke
On 2013/12/23 13:35:50, kirr wrote: > I've added URLRangeRequestJob. But to make this class consistent ...
6 years, 11 months ago (2014-01-06 15:21:05 UTC) #18
mmenke
This is looking good! Just nits. https://codereview.chromium.org/104513002/diff/80001/net/url_request/url_range_request_job.cc File net/url_request/url_range_request_job.cc (right): https://codereview.chromium.org/104513002/diff/80001/net/url_request/url_range_request_job.cc#newcode1 net/url_request/url_range_request_job.cc:1: // Copyright (c) ...
6 years, 11 months ago (2014-01-07 18:51:38 UTC) #19
kirr
https://codereview.chromium.org/104513002/diff/80001/net/url_request/url_range_request_job.cc File net/url_request/url_range_request_job.cc (right): https://codereview.chromium.org/104513002/diff/80001/net/url_request/url_range_request_job.cc#newcode1 net/url_request/url_range_request_job.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
6 years, 11 months ago (2014-01-09 07:33:21 UTC) #20
mmenke
LGTM https://codereview.chromium.org/104513002/diff/80001/net/url_request/url_request_simple_job_unittest.cc File net/url_request/url_request_simple_job_unittest.cc (right): https://codereview.chromium.org/104513002/diff/80001/net/url_request/url_request_simple_job_unittest.cc#newcode139 net/url_request/url_request_simple_job_unittest.cc:139: EXPECT_EQ(kTestData, delegate_.data_received()); It just seems a little weird ...
6 years, 11 months ago (2014-01-09 15:49:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kirr@yandex-team.ru/104513002/250001
6 years, 11 months ago (2014-01-10 07:47:31 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=44283
6 years, 11 months ago (2014-01-10 08:19:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kirr@yandex-team.ru/104513002/380001
6 years, 11 months ago (2014-01-13 10:10:23 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=213203
6 years, 11 months ago (2014-01-13 10:27:51 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kirr@yandex-team.ru/104513002/510003
6 years, 11 months ago (2014-01-13 10:54:47 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=245416
6 years, 11 months ago (2014-01-13 15:24:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kirr@yandex-team.ru/104513002/510003
6 years, 11 months ago (2014-01-14 07:24:46 UTC) #28
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 11:16:20 UTC) #29
Message was sent while issue was closed.
Change committed as 244667

Powered by Google App Engine
This is Rietveld 408576698