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

Side by Side Diff: remoting/webapp/js_proto/dom_proto.js

Issue 329663002: Fix MediaSource renderer to limit memory consumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « remoting/webapp/client_plugin.js ('k') | remoting/webapp/media_source_renderer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 // This file contains various hacks needed to inform JSCompiler of various 5 // This file contains various hacks needed to inform JSCompiler of various
6 // WebKit- and Chrome-specific properties and methods. It is used only with 6 // WebKit- and Chrome-specific properties and methods. It is used only with
7 // JSCompiler to verify the type-correctness of our code. 7 // JSCompiler to verify the type-correctness of our code.
8 8
9 /** @type {HTMLElement} */ 9 /** @type {HTMLElement} */
10 Document.prototype.activeElement; 10 Document.prototype.activeElement;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 /** 145 /**
146 * @constructor 146 * @constructor
147 * @extends {EventTargetStub} 147 * @extends {EventTargetStub}
148 */ 148 */
149 var SourceBuffer = function() {} 149 var SourceBuffer = function() {}
150 150
151 /** @type {boolean} */ 151 /** @type {boolean} */
152 SourceBuffer.prototype.updating; 152 SourceBuffer.prototype.updating;
153 153
154 /** @type {TimeRanges} */
155 SourceBuffer.prototype.buffered;
156
154 /** 157 /**
155 * @param {ArrayBuffer} buffer 158 * @param {ArrayBuffer} buffer
156 */ 159 */
157 SourceBuffer.prototype.appendBuffer = function(buffer) {} 160 SourceBuffer.prototype.appendBuffer = function(buffer) {}
158 161
159 /** 162 /**
163 * @param {number} start
164 * @param {number} end
165 */
166 SourceBuffer.prototype.remove = function(start, end) {}
167
168 /**
160 * @constructor 169 * @constructor
161 * @extends {EventTargetStub} 170 * @extends {EventTargetStub}
162 */ 171 */
163 var MediaSource = function() {} 172 var MediaSource = function() {}
164 173
165 /** 174 /**
166 * @param {string} format 175 * @param {string} format
167 * @return {SourceBuffer} 176 * @return {SourceBuffer}
168 */ 177 */
169 MediaSource.prototype.addSourceBuffer = function(format) {} 178 MediaSource.prototype.addSourceBuffer = function(format) {}
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 * @param {*} reason 212 * @param {*} reason
204 * @return {Promise} 213 * @return {Promise}
205 */ 214 */
206 Promise.reject = function (reason) {}; 215 Promise.reject = function (reason) {};
207 216
208 /** 217 /**
209 * @param {*} value 218 * @param {*} value
210 * @return {Promise} 219 * @return {Promise}
211 */ 220 */
212 Promise.resolve = function (value) {}; 221 Promise.resolve = function (value) {};
OLDNEW
« no previous file with comments | « remoting/webapp/client_plugin.js ('k') | remoting/webapp/media_source_renderer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698