| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // callback upon completion. | 66 // callback upon completion. |
| 67 virtual void Seek(base::TimeDelta time, | 67 virtual void Seek(base::TimeDelta time, |
| 68 const PipelineStatusCB& status_cb) = 0; | 68 const PipelineStatusCB& status_cb) = 0; |
| 69 | 69 |
| 70 // Stops this demuxer. | 70 // Stops this demuxer. |
| 71 // | 71 // |
| 72 // After this call the demuxer may be destroyed. It is illegal to call any | 72 // After this call the demuxer may be destroyed. It is illegal to call any |
| 73 // method (including Stop()) after a demuxer has stopped. | 73 // method (including Stop()) after a demuxer has stopped. |
| 74 virtual void Stop() = 0; | 74 virtual void Stop() = 0; |
| 75 | 75 |
| 76 // Returns the starting time for the media file; it's always positive. |
| 77 virtual base::TimeDelta GetStartTime() const = 0; |
| 78 |
| 76 // Returns Time represented by presentation timestamp 0. | 79 // Returns Time represented by presentation timestamp 0. |
| 77 // If the timstamps are not associated with a Time, then | 80 // If the timstamps are not associated with a Time, then |
| 78 // a null Time is returned. | 81 // a null Time is returned. |
| 79 virtual base::Time GetTimelineOffset() const = 0; | 82 virtual base::Time GetTimelineOffset() const = 0; |
| 80 | 83 |
| 81 private: | 84 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 85 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace media | 88 } // namespace media |
| 86 | 89 |
| 87 #endif // MEDIA_BASE_DEMUXER_H_ | 90 #endif // MEDIA_BASE_DEMUXER_H_ |
| OLD | NEW |