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

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

Issue 236023003: Add WebMediaPlayer::timelineOffset() support to WebMediaPlayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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_DEMUXER_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // TODO(scherkus): this might not be needed http://crbug.com/234708 80 // TODO(scherkus): this might not be needed http://crbug.com/234708
81 virtual void OnAudioRendererDisabled() = 0; 81 virtual void OnAudioRendererDisabled() = 0;
82 82
83 // Returns the first stream of the given stream type (which is not allowed 83 // Returns the first stream of the given stream type (which is not allowed
84 // to be DemuxerStream::TEXT), or NULL if that type of stream is not present. 84 // to be DemuxerStream::TEXT), or NULL if that type of stream is not present.
85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; 85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
86 86
87 // Returns the starting time for the media file. 87 // Returns the starting time for the media file.
88 virtual base::TimeDelta GetStartTime() const = 0; 88 virtual base::TimeDelta GetStartTime() const = 0;
89 89
90 // Returns wallclock time represented by presentation timestamp 0.
scherkus (not reviewing) 2014/04/15 00:53:40 isn't it "wall clock" with a space, as in a clock
acolwell GONE FROM CHROMIUM 2014/04/16 01:01:08 Done.
91 // If the timstamps are not associated with a wallclock time, then
92 // a null Time is returned.
93 virtual base::Time GetWallclockTimelineOffset() const = 0;
94
90 private: 95 private:
91 DISALLOW_COPY_AND_ASSIGN(Demuxer); 96 DISALLOW_COPY_AND_ASSIGN(Demuxer);
92 }; 97 };
93 98
94 } // namespace media 99 } // namespace media
95 100
96 #endif // MEDIA_BASE_DEMUXER_H_ 101 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698