| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | |
| 6 #define WEBKIT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "media/base/text_track.h" | |
| 13 | |
| 14 namespace webkit_media { | |
| 15 | |
| 16 class WebInbandTextTrackImpl; | |
| 17 | |
| 18 class TextTrackImpl : public media::TextTrack { | |
| 19 public: | |
| 20 explicit TextTrackImpl(WebInbandTextTrackImpl* text_track); | |
| 21 virtual ~TextTrackImpl(); | |
| 22 | |
| 23 virtual void addWebVTTCue(const base::TimeDelta& start, | |
| 24 const base::TimeDelta& end, | |
| 25 const std::string& id, | |
| 26 const std::string& content, | |
| 27 const std::string& settings) OVERRIDE; | |
| 28 | |
| 29 private: | |
| 30 scoped_ptr<WebInbandTextTrackImpl> text_track_; | |
| 31 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl); | |
| 32 }; | |
| 33 | |
| 34 } // namespace webkit_media | |
| 35 | |
| 36 #endif // WEBKIT_RENDERER_MEDIA_TEXTTRACK_IMPL_H_ | |
| 37 | |
| OLD | NEW |