OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyrightdd | 8 * * Redistributions of source code must retain the above copyrightdd |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 { | 175 { |
176 this._worker.postMessage(message); | 176 this._worker.postMessage(message); |
177 }, | 177 }, |
178 | 178 |
179 __proto__: WebInspector.Object.prototype | 179 __proto__: WebInspector.Object.prototype |
180 } | 180 } |
181 | 181 |
182 | 182 |
183 /** | 183 /** |
184 * @constructor | 184 * @constructor |
| 185 * @param {!WebInspector.HeapSnapshotWorkerProxy} worker |
185 * @param {number} objectId | 186 * @param {number} objectId |
186 */ | 187 */ |
187 WebInspector.HeapSnapshotProxyObject = function(worker, objectId) | 188 WebInspector.HeapSnapshotProxyObject = function(worker, objectId) |
188 { | 189 { |
189 this._worker = worker; | 190 this._worker = worker; |
190 this._objectId = objectId; | 191 this._objectId = objectId; |
191 } | 192 } |
192 | 193 |
193 WebInspector.HeapSnapshotProxyObject.prototype = { | 194 WebInspector.HeapSnapshotProxyObject.prototype = { |
194 /** | 195 /** |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 callMethod: function(callback, methodName, var_args) | 235 callMethod: function(callback, methodName, var_args) |
235 { | 236 { |
236 return this._callWorker("callMethod", Array.prototype.slice.call(argumen
ts, 0)); | 237 return this._callWorker("callMethod", Array.prototype.slice.call(argumen
ts, 0)); |
237 } | 238 } |
238 }; | 239 }; |
239 | 240 |
240 /** | 241 /** |
241 * @constructor | 242 * @constructor |
242 * @extends {WebInspector.HeapSnapshotProxyObject} | 243 * @extends {WebInspector.HeapSnapshotProxyObject} |
243 * @implements {WebInspector.OutputStream} | 244 * @implements {WebInspector.OutputStream} |
| 245 * @param {!WebInspector.HeapSnapshotWorkerProxy} worker |
244 * @param {number} objectId | 246 * @param {number} objectId |
245 * @param {number} profileUid | 247 * @param {number} profileUid |
246 * @param {function(!WebInspector.HeapSnapshotProxy)} snapshotReceivedCallback | 248 * @param {function(!WebInspector.HeapSnapshotProxy)} snapshotReceivedCallback |
247 */ | 249 */ |
248 WebInspector.HeapSnapshotLoaderProxy = function(worker, objectId, profileUid, sn
apshotReceivedCallback) | 250 WebInspector.HeapSnapshotLoaderProxy = function(worker, objectId, profileUid, sn
apshotReceivedCallback) |
249 { | 251 { |
250 WebInspector.HeapSnapshotProxyObject.call(this, worker, objectId); | 252 WebInspector.HeapSnapshotProxyObject.call(this, worker, objectId); |
251 this._profileUid = profileUid; | 253 this._profileUid = profileUid; |
252 this._snapshotReceivedCallback = snapshotReceivedCallback; | 254 this._snapshotReceivedCallback = snapshotReceivedCallback; |
253 } | 255 } |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator | 541 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator |
540 * @param {function()} callback | 542 * @param {function()} callback |
541 */ | 543 */ |
542 sortAndRewind: function(comparator, callback) | 544 sortAndRewind: function(comparator, callback) |
543 { | 545 { |
544 this.callMethod(callback, "sortAndRewind", comparator); | 546 this.callMethod(callback, "sortAndRewind", comparator); |
545 }, | 547 }, |
546 | 548 |
547 __proto__: WebInspector.HeapSnapshotProxyObject.prototype | 549 __proto__: WebInspector.HeapSnapshotProxyObject.prototype |
548 } | 550 } |
OLD | NEW |