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

Unified Diff: webkit/media/texttrack_impl.h

Issue 13419002: Media Source dispatches inband text tracks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporated aaron's comments Created 7 years, 7 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: webkit/media/texttrack_impl.h
diff --git a/webkit/media/texttrack_impl.h b/webkit/media/texttrack_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa6c6cbd75d3a76879c74164139197ae9536e0a8
--- /dev/null
+++ b/webkit/media/texttrack_impl.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_MEDIA_TEXTTRACK_IMPL_H_
+#define WEBKIT_MEDIA_TEXTTRACK_IMPL_H_
+
acolwell GONE FROM CHROMIUM 2013/05/17 16:32:08 nit:Add <string> include.
Matthew Heaney (Chromium) 2013/05/18 01:35:48 Done.
+#include "base/basictypes.h"
+#include "media/base/text_track.h"
+
+namespace webkit_media {
+
+class WebInbandTextTrackImpl;
+
+class TextTrackImpl : public media::TextTrack {
+ public:
+ explicit TextTrackImpl(WebInbandTextTrackImpl* text_track);
+ virtual ~TextTrackImpl();
+
+ virtual void addWebVTTCue(const base::TimeDelta& start,
+ const base::TimeDelta& end,
+ const std::string& id,
+ const std::string& content,
+ const std::string& settings);
+
+ private:
+ WebInbandTextTrackImpl* text_track_;
acolwell GONE FROM CHROMIUM 2013/05/17 16:32:08 nit: Make scoped_ptr<WebInbandTextTrackImpl>
Matthew Heaney (Chromium) 2013/05/18 01:35:48 Done.
+ DISALLOW_COPY_AND_ASSIGN(TextTrackImpl);
+};
+
+} // namespace webkit_media
+
+#endif // WEBKIT_MEDIA_TEXTTRACK_IMPL_H_
+

Powered by Google App Engine
This is Rietveld 408576698