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

Issue 3863002: Refactoring BufferedDataSource to work with WebURLLoader instead of a MediaResourceLoaderBridge. (Closed)

Created:
10 years, 2 months ago by annacc
Modified:
9 years, 7 months ago
CC:
Alpha Left Google, annacc
Visibility:
Public.

Description

Refactoring BufferedDataSource to work with WebURLLoader instead of a MediaResourceLoaderBridge. + 2 unit test modifications. One thing to notice is that both buffered_data_source_unittest and simple_data_source_unittest need to have a way to inject a MockWebURLLoader into the BufferedResourceLoader and the SimpleDataSource. In order to make sure a new one is not created during a Start(), I introduced the function SetURLLoaderForTest and keep_test_loader flag. BUG=16751 TEST= src/xcodebuild/Debug/test_shell_tests --gtest_filter=Buffered* src/xcodebuild/Debug/test_shell_tests --gtest_filter=Simple* src/webkit/tools/layout_tests/run_webkit_tests.sh --debug media webkit/tools/layout_tests/run_webkit_tests.sh --debug http/tests/media (but arg, the video-referer.html test still fails, any ideas?)

Patch Set 1 #

Total comments: 23

Patch Set 2 : Modifying unittests to match the new refactored loading system. #

Patch Set 3 : merged #

Patch Set 4 : removed a weird include line #

Patch Set 5 : Removed unnecessary WebURLLoaders in the two unittests because windows compilation complains. #

Total comments: 16

Patch Set 6 : addressing alpha's comments #

Patch Set 7 : moved webframe.h in git #

Patch Set 8 : delete slightly unsightly comments #

Patch Set 9 : . #

Total comments: 66

Patch Set 10 : addressing andrew's comments #

Total comments: 18

Patch Set 11 : merged and updated mock_webframe.h + addressed andrew's comments #

Patch Set 12 : . #

Total comments: 2

Patch Set 13 : little indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1006 lines, -484 lines) Patch
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -25 lines 0 comments Download
M webkit/glue/media/buffered_data_source.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +70 lines, -37 lines 0 comments Download
M webkit/glue/media/buffered_data_source.cc View 1 2 3 4 5 6 7 8 9 10 27 chunks +197 lines, -112 lines 0 comments Download
M webkit/glue/media/buffered_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 27 chunks +97 lines, -130 lines 0 comments Download
M webkit/glue/media/simple_data_source.h View 1 2 3 4 5 6 7 8 9 5 chunks +48 lines, -24 lines 0 comments Download
M webkit/glue/media/simple_data_source.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +92 lines, -35 lines 0 comments Download
M webkit/glue/media/simple_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +42 lines, -53 lines 0 comments Download
A webkit/glue/mock_webframe.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +352 lines, -0 lines 0 comments Download
A webkit/glue/mock_weburlloader_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
M webkit/glue/multipart_response_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/multipart_response_delegate.cc View 1 2 3 4 5 3 chunks +34 lines, -10 lines 0 comments Download
M webkit/glue/multipart_response_delegate_unittest.cc View 1 2 3 4 5 4 chunks +12 lines, -4 lines 0 comments Download
M webkit/glue/plugins/webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M webkit/glue/webmediaplayer_impl.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -23 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -23 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
annacc
10 years, 2 months ago (2010-10-18 22:22:39 UTC) #1
scherkus (not reviewing)
looking good so far! this is indeed a big (but very nice to have) refactor! ...
10 years, 2 months ago (2010-10-18 22:57:12 UTC) #2
Alpha Left Google
Looks pretty good. After we have fixed this we'll need to handle the case of ...
10 years, 2 months ago (2010-10-18 23:55:18 UTC) #3
annacc
10 years, 1 month ago (2010-11-18 06:13:22 UTC) #4
annacc
I think the last email did not include my comments. Sorry for the double up... ...
10 years, 1 month ago (2010-11-18 06:18:58 UTC) #5
Alpha Left Google
Wow! This is a big change! Good job doing this and it looks very solid ...
10 years, 1 month ago (2010-11-19 22:53:40 UTC) #6
annacc
+michaeln Michael, could you please comment on the following: render_view.cc line 2665 webkit_support.cc line 270 ...
10 years, 1 month ago (2010-11-20 00:27:09 UTC) #7
scherkus (not reviewing)
lots of style nits and overall looking good! I'd probably axe the OnXXXDestroy() expectations and ...
10 years, 1 month ago (2010-11-22 21:27:29 UTC) #8
annacc
http://codereview.chromium.org/3863002/diff/27002/webkit/glue/media/buffered_data_source.cc File webkit/glue/media/buffered_data_source.cc (right): http://codereview.chromium.org/3863002/diff/27002/webkit/glue/media/buffered_data_source.cc#newcode131 webkit/glue/media/buffered_data_source.cc:131: if (frame == NULL) On 2010/11/22 21:27:29, scherkus wrote: ...
10 years, 1 month ago (2010-11-24 21:34:44 UTC) #9
Alpha Left Google
LGTM.
10 years ago (2010-11-29 19:55:19 UTC) #10
scherkus (not reviewing)
tiny nits, but we should also get that WebApplicationCacheHostImpl stuff sorted out before committing http://codereview.chromium.org/3863002/diff/52001/chrome/renderer/render_view.cc ...
10 years ago (2010-11-30 20:05:39 UTC) #11
annacc
http://codereview.chromium.org/3863002/diff/52001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/3863002/diff/52001/chrome/renderer/render_view.cc#newcode2666 chrome/renderer/render_view.cc:2666: WebApplicationCacheHostImpl* appcache_host = On 2010/11/30 20:05:39, scherkus wrote: > ...
10 years ago (2010-11-30 21:51:44 UTC) #12
scherkus (not reviewing)
one tiny indentation nit when we get the appcache stuff sorted out let's check it ...
10 years ago (2010-11-30 23:18:06 UTC) #13
annacc
http://codereview.chromium.org/3863002/diff/84001/webkit/glue/mock_webframe.h File webkit/glue/mock_webframe.h (right): http://codereview.chromium.org/3863002/diff/84001/webkit/glue/mock_webframe.h#newcode212 webkit/glue/mock_webframe.h:212: return NULL; On 2010/11/30 23:18:06, scherkus wrote: > nit: ...
10 years ago (2010-11-30 23:32:53 UTC) #14
annacc
Hi Michael, Alpha suggested I ask you about our use of WebApplicationCacheHostImpl. I'd really appreciate ...
10 years ago (2010-11-30 23:42:55 UTC) #15
scherkus (not reviewing)
10 years ago (2010-12-02 23:01:17 UTC) #16
Committed as r68094.

Powered by Google App Engine
This is Rietveld 408576698