| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef MEDIA_BASE_STREAM_POSITION_H_ |
| 6 #define MEDIA_BASE_STREAM_POSITION_H_ |
| 7 |
| 8 #include "base/time/time.h" |
| 9 #include "media/base/media_export.h" |
| 10 |
| 11 namespace media { |
| 12 |
| 13 struct MEDIA_EXPORT StreamPosition { |
| 14 enum class Kind { |
| 15 PRECISE, |
| 16 KEY_FRAME_PRECEDING_TIME, |
| 17 }; |
| 18 |
| 19 static StreamPosition Precise(base::TimeDelta time); |
| 20 static StreamPosition KeyFramePrecedingTime(base::TimeDelta time); |
| 21 |
| 22 bool operator==(const StreamPosition& other); |
| 23 |
| 24 Kind kind; |
| 25 base::TimeDelta time; |
| 26 }; |
| 27 |
| 28 MEDIA_EXPORT std::string ToString(StreamPosition position); |
| 29 |
| 30 } // namespace media |
| 31 |
| 32 #endif // MEDIA_BASE_STREAM_POSITION_H_ |
| OLD | NEW |