Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: content/browser/resources/media/disjoint_range_set.js

Issue 12153002: Move chrome://media-internals to content. This allows us to hide implementation details from the pu… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698