OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ |
6 #define WEBKIT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "media/base/text_track.h" | 12 #include "media/base/text_track.h" |
13 | 13 |
14 namespace webkit_media { | 14 namespace content { |
15 | 15 |
16 class WebInbandTextTrackImpl; | 16 class WebInbandTextTrackImpl; |
17 | 17 |
18 class TextTrackImpl : public media::TextTrack { | 18 class TextTrackImpl : public media::TextTrack { |
19 public: | 19 public: |
20 explicit TextTrackImpl(WebInbandTextTrackImpl* text_track); | 20 explicit TextTrackImpl(WebInbandTextTrackImpl* text_track); |
21 virtual ~TextTrackImpl(); | 21 virtual ~TextTrackImpl(); |
22 | 22 |
23 virtual void addWebVTTCue(const base::TimeDelta& start, | 23 virtual void addWebVTTCue(const base::TimeDelta& start, |
24 const base::TimeDelta& end, | 24 const base::TimeDelta& end, |
25 const std::string& id, | 25 const std::string& id, |
26 const std::string& content, | 26 const std::string& content, |
27 const std::string& settings) OVERRIDE; | 27 const std::string& settings) OVERRIDE; |
28 | 28 |
29 private: | 29 private: |
30 scoped_ptr<WebInbandTextTrackImpl> text_track_; | 30 scoped_ptr<WebInbandTextTrackImpl> text_track_; |
31 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); | 31 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace webkit_media | 34 } // namespace content |
35 | 35 |
36 #endif // WEBKIT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | 36 #endif // CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ |
37 | 37 |
OLD | NEW |