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 MEDIA_BLINK_TEXTTRACK_IMPL_H_ | 5 #ifndef MEDIA_BLINK_TEXTTRACK_IMPL_H_ |
6 #define MEDIA_BLINK_TEXTTRACK_IMPL_H_ | 6 #define MEDIA_BLINK_TEXTTRACK_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "media/base/text_track.h" | 12 #include "media/base/text_track.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class SingleThreadTaskRunner; | 15 class SingleThreadTaskRunner; |
16 } | 16 } |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 class WebInbandTextTrackClient; | |
20 class WebMediaPlayerClient; | 19 class WebMediaPlayerClient; |
21 } | 20 } |
22 | 21 |
23 namespace media { | 22 namespace media { |
24 | 23 |
25 class WebInbandTextTrackImpl; | 24 class WebInbandTextTrackImpl; |
26 | 25 |
27 class TextTrackImpl : public TextTrack { | 26 class TextTrackImpl : public TextTrack { |
28 public: | 27 public: |
29 // Constructor assumes ownership of the |text_track| object. | 28 // Constructor assumes ownership of the |text_track| object. |
(...skipping 22 matching lines...) Expand all Loading... |
52 | 51 |
53 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 52 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
54 blink::WebMediaPlayerClient* client_; | 53 blink::WebMediaPlayerClient* client_; |
55 std::unique_ptr<WebInbandTextTrackImpl> text_track_; | 54 std::unique_ptr<WebInbandTextTrackImpl> text_track_; |
56 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); | 55 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); |
57 }; | 56 }; |
58 | 57 |
59 } // namespace media | 58 } // namespace media |
60 | 59 |
61 #endif // MEDIA_BLINK_TEXTTRACK_IMPL_H_ | 60 #endif // MEDIA_BLINK_TEXTTRACK_IMPL_H_ |
OLD | NEW |