| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BLINK_INTERVAL_MAP_H_ | 5 #ifndef MEDIA_BLINK_INTERVAL_MAP_H_ |
| 6 #define MEDIA_BLINK_INTERVAL_MAP_H_ | 6 #define MEDIA_BLINK_INTERVAL_MAP_H_ |
| 7 | 7 |
| 8 #include <algorithm> |
| 8 #include <limits> | 9 #include <limits> |
| 9 #include <map> | 10 #include <map> |
| 10 | 11 |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 | 13 |
| 13 namespace media { | 14 namespace media { |
| 14 | 15 |
| 15 // An IntervalMap<KeyType, ValueType> maps every value of KeyType to | 16 // An IntervalMap<KeyType, ValueType> maps every value of KeyType to |
| 16 // a ValueType, and incrementing, decrementing and setting ranges of values | 17 // a ValueType, and incrementing, decrementing and setting ranges of values |
| 17 // has been optimized. The default state is to map all values in | 18 // has been optimized. The default state is to map all values in |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 map_.erase(second); | 282 map_.erase(second); |
| 282 } | 283 } |
| 283 } | 284 } |
| 284 | 285 |
| 285 MapType map_; | 286 MapType map_; |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace media | 289 } // namespace media |
| 289 | 290 |
| 290 #endif // MEDIA_BLINK_INTERVAL_MAP_H_ | 291 #endif // MEDIA_BLINK_INTERVAL_MAP_H_ |
| OLD | NEW |