OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('media', function() { | 5 cr.define('media', function() { |
6 | 6 |
7 /** | 7 /** |
8 * This class represents a collection of non-intersecting ranges. Ranges | 8 * This class represents a collection of non-intersecting ranges. Ranges |
9 * specified by (start, end) can be added and removed at will. It is used to | 9 * specified by (start, end) can be added and removed at will. It is used to |
10 * record which sections of a media file have been cached, e.g. the first and | 10 * record which sections of a media file have been cached, e.g. the first and |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 for (var start in this.ranges_) | 136 for (var start in this.ranges_) |
137 max = Math.max(max, this.ranges_[start]); | 137 max = Math.max(max, this.ranges_[start]); |
138 return max; | 138 return max; |
139 }, | 139 }, |
140 }; | 140 }; |
141 | 141 |
142 return { | 142 return { |
143 DisjointRangeSet: DisjointRangeSet | 143 DisjointRangeSet: DisjointRangeSet |
144 }; | 144 }; |
145 }); | 145 }); |
OLD | NEW |