| Index: media/base/stream_position.h
|
| diff --git a/media/base/stream_position.h b/media/base/stream_position.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..618c563add387dcd8b4d8543cb060602739f9619
|
| --- /dev/null
|
| +++ b/media/base/stream_position.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_BASE_STREAM_POSITION_H_
|
| +#define MEDIA_BASE_STREAM_POSITION_H_
|
| +
|
| +#include "base/time/time.h"
|
| +#include "media/base/media_export.h"
|
| +
|
| +namespace media {
|
| +
|
| +struct MEDIA_EXPORT StreamPosition {
|
| + enum class Kind {
|
| + PRECISE,
|
| + KEY_FRAME_PRECEDING_TIME,
|
| + };
|
| +
|
| + static StreamPosition Precise(base::TimeDelta time);
|
| + static StreamPosition KeyFramePrecedingTime(base::TimeDelta time);
|
| +
|
| + bool operator==(const StreamPosition& other);
|
| +
|
| + Kind kind;
|
| + base::TimeDelta time;
|
| +};
|
| +
|
| +MEDIA_EXPORT std::string ToString(StreamPosition position);
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_BASE_STREAM_POSITION_H_
|
|
|