| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 5 |
| 6 /** | 6 /** |
| 7 * @constructor | 7 * @constructor |
| 8 * @param {!WebInspector.Target} mainTarget | 8 * @param {!WebInspector.Target} mainTarget |
| 9 * @param {!WebInspector.TargetManager} targetManager | 9 * @param {!WebInspector.TargetManager} targetManager |
| 10 */ | 10 */ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 { | 24 { |
| 25 var data = /** @type {{workerId: number, url: string}} */ (event.data); | 25 var data = /** @type {{workerId: number, url: string}} */ (event.data); |
| 26 new WebInspector.WorkerConnection(this._mainTarget, data.workerId, onCon
nectionReady.bind(this)); | 26 new WebInspector.WorkerConnection(this._mainTarget, data.workerId, onCon
nectionReady.bind(this)); |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * @this {WebInspector.WorkerTargetManager} | 29 * @this {WebInspector.WorkerTargetManager} |
| 30 * @param {!InspectorBackendClass.Connection} connection | 30 * @param {!InspectorBackendClass.Connection} connection |
| 31 */ | 31 */ |
| 32 function onConnectionReady(connection) | 32 function onConnectionReady(connection) |
| 33 { | 33 { |
| 34 this._targetManager.createTarget(connection) | 34 this._targetManager.createTarget(event.data.url, connection) |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 } | 38 } |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * @constructor | 41 * @constructor |
| 42 * @extends {InspectorBackendClass.Connection} | 42 * @extends {InspectorBackendClass.Connection} |
| 43 * @param {!WebInspector.Target} target | 43 * @param {!WebInspector.Target} target |
| 44 * @param {number} workerId | 44 * @param {number} workerId |
| (...skipping 23 matching lines...) Expand all Loading... |
| 68 /** | 68 /** |
| 69 * @param {!Object} messageObject | 69 * @param {!Object} messageObject |
| 70 */ | 70 */ |
| 71 sendMessage: function(messageObject) | 71 sendMessage: function(messageObject) |
| 72 { | 72 { |
| 73 this._workerAgent.sendMessageToWorker(this._workerId, messageObject); | 73 this._workerAgent.sendMessageToWorker(this._workerId, messageObject); |
| 74 }, | 74 }, |
| 75 | 75 |
| 76 __proto__: InspectorBackendClass.Connection.prototype | 76 __proto__: InspectorBackendClass.Connection.prototype |
| 77 } | 77 } |
| OLD | NEW |