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

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

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix compile errors 11/21 #6 Created 7 years, 1 month 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 | « content/renderer/media/android/media_source_delegate.cc ('k') | content/renderer/media/texttrack_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/texttrack_impl.h
diff --git a/content/renderer/media/texttrack_impl.h b/content/renderer/media/texttrack_impl.h
index d7b5961358c0ef7911ad74a27dc48292f187fbeb..3285b60ed1021c4f67281cc350cac4019b0125e1 100644
--- a/content/renderer/media/texttrack_impl.h
+++ b/content/renderer/media/texttrack_impl.h
@@ -11,7 +11,12 @@
#include "base/memory/scoped_ptr.h"
#include "media/base/text_track.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace blink {
+class WebInbandTextTrackClient;
class WebMediaPlayerClient;
}
@@ -22,8 +27,9 @@ class WebInbandTextTrackImpl;
class TextTrackImpl : public media::TextTrack {
public:
// Constructor assumes ownership of the |text_track| object.
- TextTrackImpl(blink::WebMediaPlayerClient* client,
- WebInbandTextTrackImpl* text_track);
+ TextTrackImpl(const scoped_refptr<base::MessageLoopProxy>& message_loop,
+ blink::WebMediaPlayerClient* client,
+ scoped_ptr<WebInbandTextTrackImpl> text_track);
virtual ~TextTrackImpl();
@@ -34,6 +40,17 @@ class TextTrackImpl : public media::TextTrack {
const std::string& settings) OVERRIDE;
private:
+ static void OnAddCue(WebInbandTextTrackImpl* text_track,
+ const base::TimeDelta& start,
+ const base::TimeDelta& end,
+ const std::string& id,
+ const std::string& content,
+ const std::string& settings);
+
+ static void OnRemoveTrack(blink::WebMediaPlayerClient* client,
+ scoped_ptr<WebInbandTextTrackImpl> text_track);
+
+ scoped_refptr<base::MessageLoopProxy> message_loop_;
blink::WebMediaPlayerClient* client_;
scoped_ptr<WebInbandTextTrackImpl> text_track_;
DISALLOW_COPY_AND_ASSIGN(TextTrackImpl);
« no previous file with comments | « content/renderer/media/android/media_source_delegate.cc ('k') | content/renderer/media/texttrack_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698