// Copyright (c) 2012 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. // Note: ported from Chromium commit head: 1323b9c #ifndef RANGES_H_ #define RANGES_H_ #include #include #include #include #include #include "base/logging.h" #include "base/time/time.h" namespace media { // Ranges allows holding an ordered list of ranges of [start,end) intervals. // The canonical example use-case is holding the list of ranges of buffered // bytes or times in a