Fix Win8 metro startup crash from window switcher button
[chromium-blink-merge.git] / webkit / media / texttrack_impl.h
blob507c8abba4dcadc0d7780f1d091938e35bbe30bd
1 // Copyright (c) 2012 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.
5 #ifndef WEBKIT_MEDIA_TEXTTRACK_IMPL_H_
6 #define WEBKIT_MEDIA_TEXTTRACK_IMPL_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "media/base/text_track.h"
14 namespace webkit_media {
16 class WebInbandTextTrackImpl;
18 class TextTrackImpl : public media::TextTrack {
19 public:
20 explicit TextTrackImpl(WebInbandTextTrackImpl* text_track);
21 virtual ~TextTrackImpl();
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;
29 private:
30 scoped_ptr<WebInbandTextTrackImpl> text_track_;
31 DISALLOW_COPY_AND_ASSIGN(TextTrackImpl);
34 } // namespace webkit_media
36 #endif // WEBKIT_MEDIA_TEXTTRACK_IMPL_H_