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

Unified Diff: content/renderer/media/android/media_source_delegate.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
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/android/media_source_delegate.h
diff --git a/content/renderer/media/android/media_source_delegate.h b/content/renderer/media/android/media_source_delegate.h
index c208454a6977b83819bd477ff10c12f30aa09416..d5e62b40640f13f680db11a8439f18c0cce1ada7 100644
--- a/content/renderer/media/android/media_source_delegate.h
+++ b/content/renderer/media/android/media_source_delegate.h
@@ -12,7 +12,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/time/time.h"
#include "media/base/decryptor.h"
#include "media/base/demuxer.h"
@@ -22,6 +21,10 @@
#include "media/base/text_track.h"
#include "third_party/WebKit/public/platform/WebMediaPlayer.h"
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace media {
class ChunkDemuxer;
class DecoderBuffer;
@@ -53,10 +56,11 @@ class MediaSourceDelegate : public media::DemuxerHost {
}
};
- MediaSourceDelegate(RendererDemuxerAndroid* demuxer_client,
- int demuxer_client_id,
- const scoped_refptr<base::MessageLoopProxy>& media_loop,
- const scoped_refptr<media::MediaLog> media_log);
+ MediaSourceDelegate(
+ RendererDemuxerAndroid* demuxer_client,
+ int demuxer_client_id,
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ const scoped_refptr<media::MediaLog> media_log);
// Initialize the MediaSourceDelegate. |media_source| will be owned by
// this object after this call.
@@ -231,9 +235,9 @@ class MediaSourceDelegate : public media::DemuxerHost {
size_t access_unit_size_;
- // Message loop for main renderer and media threads.
- const scoped_refptr<base::MessageLoopProxy> main_loop_;
- const scoped_refptr<base::MessageLoopProxy> media_loop_;
+ // Task runner for main renderer and media threads.
+ const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
+ const scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<MediaSourceDelegate> main_weak_factory_;
« no previous file with comments | « no previous file | content/renderer/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698