| 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 CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ |
| 6 #define CONTENT_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 { | 14 namespace blink { |
| 15 class WebMediaPlayerClient; | 15 class WebMediaPlayerClient; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class WebInbandTextTrackImpl; | 20 class WebInbandTextTrackImpl; |
| 21 | 21 |
| 22 class TextTrackImpl : public media::TextTrack { | 22 class TextTrackImpl : public media::TextTrack { |
| 23 public: | 23 public: |
| 24 // Constructor assumes ownership of the |text_track| object. | 24 // Constructor assumes ownership of the |text_track| object. |
| 25 TextTrackImpl(WebKit::WebMediaPlayerClient* client, | 25 TextTrackImpl(blink::WebMediaPlayerClient* client, |
| 26 WebInbandTextTrackImpl* text_track); | 26 WebInbandTextTrackImpl* text_track); |
| 27 | 27 |
| 28 virtual ~TextTrackImpl(); | 28 virtual ~TextTrackImpl(); |
| 29 | 29 |
| 30 virtual void addWebVTTCue(const base::TimeDelta& start, | 30 virtual void addWebVTTCue(const base::TimeDelta& start, |
| 31 const base::TimeDelta& end, | 31 const base::TimeDelta& end, |
| 32 const std::string& id, | 32 const std::string& id, |
| 33 const std::string& content, | 33 const std::string& content, |
| 34 const std::string& settings) OVERRIDE; | 34 const std::string& settings) OVERRIDE; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 WebKit::WebMediaPlayerClient* client_; | 37 blink::WebMediaPlayerClient* client_; |
| 38 scoped_ptr<WebInbandTextTrackImpl> text_track_; | 38 scoped_ptr<WebInbandTextTrackImpl> text_track_; |
| 39 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); | 39 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace content | 42 } // namespace content |
| 43 | 43 |
| 44 #endif // CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | 44 #endif // CONTENT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ |
| 45 | 45 |
| OLD | NEW |