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

Unified Diff: webkit/media/buffered_data_source.h

Issue 12388039: Use base::MessageLoopProxy instead of MessageLoop* in webkit/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 10 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
« no previous file with comments | « no previous file | webkit/media/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/buffered_data_source.h
diff --git a/webkit/media/buffered_data_source.h b/webkit/media/buffered_data_source.h
index e01fef7bbc9281f6602e0b9bcc2fb44b1c257768..6d50c39986b4e5840b0dff182d9f5920c69cda24 100644
--- a/webkit/media/buffered_data_source.h
+++ b/webkit/media/buffered_data_source.h
@@ -16,7 +16,9 @@
#include "webkit/media/buffered_resource_loader.h"
#include "webkit/media/preload.h"
-class MessageLoop;
+namespace base {
+class MessageLoopProxy;
+}
namespace media {
class MediaLog;
@@ -35,7 +37,7 @@ class BufferedDataSource : public media::DataSource {
// |downloading_cb| will be called whenever the downloading/paused state of
// the source changes.
- BufferedDataSource(MessageLoop* render_loop,
+ BufferedDataSource(const scoped_refptr<base::MessageLoopProxy>& render_loop,
WebKit::WebFrame* frame,
media::MediaLog* media_log,
const DownloadingCB& downloading_cb);
@@ -179,7 +181,7 @@ class BufferedDataSource : public media::DataSource {
int intermediate_read_buffer_size_;
// The message loop of the render thread.
- MessageLoop* render_loop_;
+ const scoped_refptr<base::MessageLoopProxy> render_loop_;
// Protects |stop_signal_received_| and |read_op_|.
base::Lock lock_;
« no previous file with comments | « no previous file | webkit/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698