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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« media/base/message_loop_factory.h ('K') | « webkit/support/webkit_support.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_webview_delegate.cc
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index fccf8e7d78f0bd03f2cd05c8a382449081aef1be..88bda13791ee2f0a722be301ae6b793e3d40ac37 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -19,6 +19,7 @@
#include "gfx/native_widget_types.h"
#include "gfx/point.h"
#include "media/base/filter_collection.h"
+#include "media/base/message_loop_factory_impl.h"
#include "net/base/net_errors.h"
#include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h"
#include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h"
@@ -723,6 +724,9 @@ WebWorker* TestWebViewDelegate::createWorker(WebFrame* frame,
WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
WebFrame* frame, WebMediaPlayerClient* client) {
+ scoped_refptr<media::MessageLoopFactory> message_loop_factory(
+ new media::MessageLoopFactoryImpl());
+
scoped_ptr<media::FilterCollection> collection(
new media::FilterCollection());
@@ -731,7 +735,8 @@ WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
collection->AddVideoRenderer(video_renderer);
scoped_ptr<webkit_glue::WebMediaPlayerImpl> result(
- new webkit_glue::WebMediaPlayerImpl(client, collection.release()));
+ new webkit_glue::WebMediaPlayerImpl(client, collection.release(),
+ message_loop_factory));
if (!result->Initialize(frame, false, video_renderer)) {
return NULL;
}
« media/base/message_loop_factory.h ('K') | « webkit/support/webkit_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698