OLD | NEW |
---|---|
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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "media/base/data_source.h" | 10 #include "media/base/data_source.h" |
11 #include "media/base/demuxer_stream.h" | 11 #include "media/base/demuxer_stream.h" |
12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
13 #include "media/base/pipeline_status.h" | 13 #include "media/base/pipeline_status.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 class MEDIA_EXPORT DemuxerHost : public DataSourceHost { | 17 class MEDIA_EXPORT DemuxerHost : public DataSourceHost { |
acolwell GONE FROM CHROMIUM
2012/07/27 00:03:23
Since AddBufferedTimeRange() is in here now, can w
vrk (LEFT CHROMIUM)
2012/07/28 01:42:05
Possibly, I need to chat with you about it though.
| |
18 public: | 18 public: |
19 // Sets the duration of the media in microseconds. | 19 // Sets the duration of the media in microseconds. |
20 // Duration may be kInfiniteDuration() if the duration is not known. | 20 // Duration may be kInfiniteDuration() if the duration is not known. |
21 virtual void SetDuration(base::TimeDelta duration) = 0; | 21 virtual void SetDuration(base::TimeDelta duration) = 0; |
22 | 22 |
23 // Stops execution of the pipeline due to a fatal error. Do not call this | 23 // Stops execution of the pipeline due to a fatal error. Do not call this |
24 // method with PIPELINE_OK. | 24 // method with PIPELINE_OK. |
25 virtual void OnDemuxerError(PipelineStatus error) = 0; | 25 virtual void OnDemuxerError(PipelineStatus error) = 0; |
26 | 26 |
27 // Notify the host that time range [start,end] has been buffered. | |
28 virtual void AddBufferedTimeRange(base::TimeDelta start, | |
29 base::TimeDelta end) = 0; | |
30 | |
27 protected: | 31 protected: |
28 virtual ~DemuxerHost(); | 32 virtual ~DemuxerHost(); |
29 }; | 33 }; |
30 | 34 |
31 class MEDIA_EXPORT Demuxer : public base::RefCountedThreadSafe<Demuxer> { | 35 class MEDIA_EXPORT Demuxer : public base::RefCountedThreadSafe<Demuxer> { |
32 public: | 36 public: |
33 Demuxer(); | 37 Demuxer(); |
34 | 38 |
35 // Completes initialization of the demuxer. | 39 // Completes initialization of the demuxer. |
36 // | 40 // |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 friend class base::RefCountedThreadSafe<Demuxer>; | 76 friend class base::RefCountedThreadSafe<Demuxer>; |
73 virtual ~Demuxer(); | 77 virtual ~Demuxer(); |
74 | 78 |
75 private: | 79 private: |
76 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 80 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
77 }; | 81 }; |
78 | 82 |
79 } // namespace media | 83 } // namespace media |
80 | 84 |
81 #endif // MEDIA_BASE_DEMUXER_H_ | 85 #endif // MEDIA_BASE_DEMUXER_H_ |
OLD | NEW |