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

Issue 5756004: Separate BufferedDataSource and BufferedResourceLoader into two files. (Closed)

Created:
10 years ago by annacc
Modified:
9 years, 7 months ago
CC:
chromium-reviews, vrk (LEFT CHROMIUM), fbarchard, ddorwin+watch_chromium.org, Alpha Left Google, sjl, acolwell GONE FROM CHROMIUM, darin-cc_chromium.org, awong, brettw-cc_chromium.org, pam+watch_chromium.org, scherkus (not reviewing), cbentzel+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Separate BufferedDataSource and BufferedResourceLoader into two files. It's time to finally separate the huge monster files buffered_data_source.[h/cc] into two. ericroman: There are some variables and short methods that both BufferedDataSource and BufferedResourceLoader rely on and that I have moved to src/net/http/http_util.h. Could you please verify that this is an ok place to put them? Also, appcache issues have been resolved (and approved by michaeln) so I've removed those comments. BUG=None. TEST=Compiles. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69429

Patch Set 1 #

Total comments: 20

Patch Set 2 : address comments + removed media_resource_loader_bridge_factory + added new timeout to test_timeouts #

Total comments: 8

Patch Set 3 : addressing phajdan.jr's comments #

Total comments: 22

Patch Set 4 : addressing scherkus's comments #

Patch Set 5 : removing the constants and methods I added to http_util.h #

Total comments: 7

Patch Set 6 : moving kPositionNotSpecified to buffered_resource_loader.h #

Patch Set 7 : inlining + removing Is...Protocol methods and getting rid of GetBufferedFirstBytePosition #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1352 lines, -1561 lines) Patch
M base/test/test_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/test/test_switches.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/test/test_timeouts.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M base/test/test_timeouts.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M webkit/glue/media/buffered_data_source.h View 1 1 chunk +1 line, -236 lines 0 comments Download
M webkit/glue/media/buffered_data_source.cc View 1 2 3 4 5 6 10 chunks +12 lines, -584 lines 2 comments Download
M webkit/glue/media/buffered_data_source_unittest.cc View 1 2 3 4 chunks +14 lines, -463 lines 0 comments Download
A webkit/glue/media/buffered_resource_loader.h View 1 2 3 4 5 6 1 chunk +247 lines, -0 lines 0 comments Download
A webkit/glue/media/buffered_resource_loader.cc View 1 2 3 4 5 6 1 chunk +574 lines, -0 lines 0 comments Download
A webkit/glue/media/buffered_resource_loader_unittest.cc View 1 1 chunk +484 lines, -0 lines 0 comments Download
D webkit/glue/media/media_resource_loader_bridge_factory.h View 1 1 chunk +0 lines, -76 lines 0 comments Download
D webkit/glue/media/media_resource_loader_bridge_factory.cc View 1 1 chunk +0 lines, -82 lines 0 comments Download
D webkit/glue/media/media_resource_loader_bridge_factory_unittest.cc View 1 1 chunk +0 lines, -44 lines 0 comments Download
D webkit/glue/media/mock_media_resource_loader_bridge_factory.h View 1 1 chunk +0 lines, -36 lines 0 comments Download
M webkit/glue/media/simple_data_source.cc View 1 2 3 4 5 6 4 chunks +6 lines, -14 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/support/webkit_support.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 1 chunk +1 line, -2 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
annacc
10 years ago (2010-12-10 20:47:46 UTC) #1
scherkus (not reviewing)
is it also time to delete media_resource_loader_bridge_factory.h + friends? http://codereview.chromium.org/5756004/diff/1/webkit/glue/media/buffered_data_source.cc File webkit/glue/media/buffered_data_source.cc (right): http://codereview.chromium.org/5756004/diff/1/webkit/glue/media/buffered_data_source.cc#newcode7 webkit/glue/media/buffered_data_source.cc:7: ...
10 years ago (2010-12-10 23:02:38 UTC) #2
Paweł Hajdan Jr.
Drive-by with a test comment. Please let me take another look before committing. http://codereview.chromium.org/5756004/diff/1/webkit/glue/media/buffered_data_source_unittest.cc File ...
10 years ago (2010-12-11 10:42:57 UTC) #3
annacc
I think I've addressed all your comments. Also removed media_resource_loader_bridge_factory and added a new timeout ...
10 years ago (2010-12-11 20:12:38 UTC) #4
Paweł Hajdan Jr.
Mostly nits. http://codereview.chromium.org/5756004/diff/9001/base/test/test_switches.cc File base/test/test_switches.cc (right): http://codereview.chromium.org/5756004/diff/9001/base/test/test_switches.cc#newcode16 base/test/test_switches.cc:16: const char switches::kUiTestShortTimeout[] = "ui-test-short-timeout"; nit: Remember ...
10 years ago (2010-12-13 18:54:31 UTC) #5
annacc
http://codereview.chromium.org/5756004/diff/9001/base/test/test_switches.cc File base/test/test_switches.cc (right): http://codereview.chromium.org/5756004/diff/9001/base/test/test_switches.cc#newcode16 base/test/test_switches.cc:16: const char switches::kUiTestShortTimeout[] = "ui-test-short-timeout"; On 2010/12/13 18:54:32, Paweł ...
10 years ago (2010-12-13 20:14:21 UTC) #6
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM. Thanks!
10 years ago (2010-12-13 20:46:37 UTC) #7
annacc
Is this CL ready to go?
10 years ago (2010-12-14 18:35:58 UTC) #8
scherkus (not reviewing)
getting there! try to find someone to look at your http_util.h stuff to make sure ...
10 years ago (2010-12-14 18:48:19 UTC) #9
annacc
http://codereview.chromium.org/5756004/diff/17001/net/http/http_util.h File net/http/http_util.h (right): http://codereview.chromium.org/5756004/diff/17001/net/http/http_util.h#newcode66 net/http/http_util.h:66: const int kInitialReadBufferSize = 32768; On 2010/12/14 18:48:19, scherkus ...
10 years ago (2010-12-14 21:10:17 UTC) #10
annacc
http://codereview.chromium.org/5756004/diff/17001/net/http/http_util.h File net/http/http_util.h (right): http://codereview.chromium.org/5756004/diff/17001/net/http/http_util.h#newcode66 net/http/http_util.h:66: const int kInitialReadBufferSize = 32768; On 2010/12/14 21:10:17, annacc ...
10 years ago (2010-12-14 21:30:44 UTC) #11
scherkus (not reviewing)
willchan works on src/net/ stuff too I believe
10 years ago (2010-12-14 22:14:20 UTC) #12
cbentzel
On 2010/12/14 22:14:20, scherkus wrote: > willchan works on src/net/ stuff too I believe Quick ...
10 years ago (2010-12-14 23:38:09 UTC) #13
erikwright (departed)
I don't consider myself an authority on net, but I will provide my two cents. ...
10 years ago (2010-12-15 00:13:34 UTC) #14
willchan no longer on Chromium
Speaking for net/, I agree with cbentzel and erikwright. Cheers. On Tue, Dec 14, 2010 ...
10 years ago (2010-12-15 00:26:50 UTC) #15
annacc
OK, I will move these changes back into buffered data source / resource loader. Thanks ...
10 years ago (2010-12-15 00:28:54 UTC) #16
annacc
10 years ago (2010-12-15 00:43:55 UTC) #17
erikwright (departed)
Removing myself from reviewers list, as net/ is no longer affected.
10 years ago (2010-12-15 00:59:10 UTC) #18
scherkus (not reviewing)
LGTM w/ nits http://codereview.chromium.org/5756004/diff/17001/webkit/glue/media/buffered_data_source.h File webkit/glue/media/buffered_data_source.h (right): http://codereview.chromium.org/5756004/diff/17001/webkit/glue/media/buffered_data_source.h#newcode13 webkit/glue/media/buffered_data_source.h:13: #include "webkit/glue/media/buffered_resource_loader.h" On 2010/12/14 21:10:17, annacc ...
10 years ago (2010-12-15 16:00:36 UTC) #19
annacc
http://codereview.chromium.org/5756004/diff/65001/webkit/glue/media/buffered_data_source.cc File webkit/glue/media/buffered_data_source.cc (right): http://codereview.chromium.org/5756004/diff/65001/webkit/glue/media/buffered_data_source.cc#newcode19 webkit/glue/media/buffered_data_source.cc:19: const int64 kPositionNotSpecified = -1; On 2010/12/15 16:00:36, scherkus ...
10 years ago (2010-12-15 18:34:03 UTC) #20
scherkus (not reviewing)
http://codereview.chromium.org/5756004/diff/65001/webkit/glue/media/buffered_data_source.cc File webkit/glue/media/buffered_data_source.cc (right): http://codereview.chromium.org/5756004/diff/65001/webkit/glue/media/buffered_data_source.cc#newcode19 webkit/glue/media/buffered_data_source.cc:19: const int64 kPositionNotSpecified = -1; On 2010/12/15 18:34:03, annacc ...
10 years ago (2010-12-15 18:42:45 UTC) #21
annacc
Done and done. Removed GetBufferedFirstBytePosition() and renamed GetBufferedLastBytePosition() to GetBufferedPosition(). Inlined and removed Is...Protocol()s and ...
10 years ago (2010-12-15 19:19:49 UTC) #22
annacc
friendly ping.
10 years ago (2010-12-16 17:59:13 UTC) #23
scherkus (not reviewing)
LGTM w/ nits For future reference (because I don't think I explained this before!) when ...
10 years ago (2010-12-16 18:09:42 UTC) #24
annacc
10 years ago (2010-12-16 18:51:49 UTC) #25
Committed revision 69429

Powered by Google App Engine
This is Rietveld 408576698