Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / media / base / timestamp_constants.h
blobdfe9b993e5262d9d88098ed190ee32b9fe8b88c7
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_TIMESTAMP_CONSTANTS_H_
6 #define MEDIA_BASE_TIMESTAMP_CONSTANTS_H_
8 #include "base/time/time.h"
9 #include "media/base/media_export.h"
11 namespace media {
13 // Indicates an invalid or missing timestamp.
14 MEDIA_EXPORT inline base::TimeDelta kNoTimestamp() {
15 return base::TimeDelta::FromMicroseconds(kint64min);
18 // Represents an infinite stream duration.
19 MEDIA_EXPORT inline base::TimeDelta kInfiniteDuration() {
20 return base::TimeDelta::Max();
23 } // namespace media
25 #endif // MEDIA_BASE_TIMESTAMP_CONSTANTS_H_