Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: media/base/text_track.h

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporate aaron's comments (10/12) Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_BASE_TEXT_TRACK_H_ 5 #ifndef MEDIA_BASE_TEXT_TRACK_H_
6 #define MEDIA_BASE_TEXT_TRACK_H_ 6 #define MEDIA_BASE_TEXT_TRACK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 14 matching lines...) Expand all
25 class TextTrack { 25 class TextTrack {
26 public: 26 public:
27 virtual ~TextTrack() {} 27 virtual ~TextTrack() {}
28 virtual void addWebVTTCue(const base::TimeDelta& start, 28 virtual void addWebVTTCue(const base::TimeDelta& start,
29 const base::TimeDelta& end, 29 const base::TimeDelta& end,
30 const std::string& id, 30 const std::string& id,
31 const std::string& content, 31 const std::string& content,
32 const std::string& settings) = 0; 32 const std::string& settings) = 0;
33 }; 33 };
34 34
35 typedef base::Callback<scoped_ptr<TextTrack> 35 typedef base::Callback<void
36 (scoped_ptr<TextTrack>)> AddTextTrackDoneCB;
37
38 typedef base::Callback<void
36 (TextKind kind, 39 (TextKind kind,
37 const std::string& label, 40 const std::string& label,
38 const std::string& language)> AddTextTrackCB; 41 const std::string& language,
42 const AddTextTrackDoneCB& done_cb)> AddTextTrackCB;
39 43
40 } // namespace media 44 } // namespace media
41 45
42 #endif // MEDIA_BASE_TEXT_TRACK_H_ 46 #endif // MEDIA_BASE_TEXT_TRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698