summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmediaplayer_impl.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 21:15:46 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 21:15:46 +0000
commit7968428a96099f945dcd1381aefb60b0a2faa484 (patch)
tree55fa6a12e12327243f245c83aaab5676c515a7ec /webkit/glue/webmediaplayer_impl.h
parentb8aa9d19922b5e8f9c5ba359daff1c8a94464768 (diff)
downloadchromium_src-7968428a96099f945dcd1381aefb60b0a2faa484.zip
chromium_src-7968428a96099f945dcd1381aefb60b0a2faa484.tar.gz
chromium_src-7968428a96099f945dcd1381aefb60b0a2faa484.tar.bz2
Refactoring BufferedDataSource to work with WebURLLoader instead of a MediaResourceLoaderBridge.
Attempt #2 after fixing some race conditions between Initialize() and Abort() (see r68363). 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. Patch by annacc@chromium.org: http://codereview.chromium.org/3863002/ 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 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmediaplayer_impl.h')
-rw-r--r--webkit/glue/webmediaplayer_impl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/glue/webmediaplayer_impl.h b/webkit/glue/webmediaplayer_impl.h
index a0224b1..d1f73a0 100644
--- a/webkit/glue/webmediaplayer_impl.h
+++ b/webkit/glue/webmediaplayer_impl.h
@@ -69,6 +69,10 @@
class GURL;
+namespace WebKit {
+class WebFrame;
+}
+
namespace webkit_glue {
class MediaResourceLoaderBridgeFactory;
@@ -176,8 +180,7 @@ class WebMediaPlayerImpl : public WebKit::WebMediaPlayer,
// Finalizes initialization of the object.
bool Initialize(
- MediaResourceLoaderBridgeFactory* bridge_factory_simple,
- MediaResourceLoaderBridgeFactory* bridge_factory_buffered,
+ WebKit::WebFrame* frame,
bool use_simple_data_source,
scoped_refptr<WebVideoRenderer> web_video_renderer);