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

Unified Diff: content/renderer/media/buffered_data_source.h

Issue 508293003: Change media MessageLoopProxy usage to SingleThreadTaskRunners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: content/renderer/media/buffered_data_source.h
diff --git a/content/renderer/media/buffered_data_source.h b/content/renderer/media/buffered_data_source.h
index 9a4db0f40dc88d837cdaed74a37246d98e6c64d1..a9a8cd3ed2bf32c9bab83b9be8fe6d211294ea3a 100644
--- a/content/renderer/media/buffered_data_source.h
+++ b/content/renderer/media/buffered_data_source.h
@@ -18,7 +18,7 @@
#include "url/gurl.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace media {
@@ -53,13 +53,14 @@ class CONTENT_EXPORT BufferedDataSource : public media::DataSource {
// |url| and |cors_mode| are passed to the object. Buffered byte range changes
// will be reported to |host|. |downloading_cb| will be called whenever the
// downloading/paused state of the source changes.
- BufferedDataSource(const GURL& url,
- BufferedResourceLoader::CORSMode cors_mode,
- const scoped_refptr<base::MessageLoopProxy>& render_loop,
- blink::WebFrame* frame,
- media::MediaLog* media_log,
- BufferedDataSourceHost* host,
- const DownloadingCB& downloading_cb);
+ BufferedDataSource(
+ const GURL& url,
+ BufferedResourceLoader::CORSMode cors_mode,
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ blink::WebFrame* frame,
+ media::MediaLog* media_log,
+ BufferedDataSourceHost* host,
+ const DownloadingCB& downloading_cb);
virtual ~BufferedDataSource();
// Executes |init_cb| with the result of initialization when it has completed.
@@ -190,8 +191,8 @@ class CONTENT_EXPORT BufferedDataSource : public media::DataSource {
scoped_ptr<uint8[]> intermediate_read_buffer_;
int intermediate_read_buffer_size_;
- // The message loop of the render thread.
- const scoped_refptr<base::MessageLoopProxy> render_loop_;
+ // The task runner of the render thread.
+ const scoped_refptr<base::SingleThreadTaskRunner> render_task_runner_;
// Protects |stop_signal_received_| and |read_op_|.
base::Lock lock_;
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | content/renderer/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698