Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.SDKObject} | 7 * @extends {WebInspector.SDKObject} |
| 8 * @param {!WebInspector.Target} target | 8 * @param {!WebInspector.Target} target |
| 9 * @implements {BrowserAgent.Dispatcher} | 9 * @implements {BrowserAgent.Dispatcher} |
| 10 */ | 10 */ |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 WebInspector.RemoteLocationConnection.prototype = { | 133 WebInspector.RemoteLocationConnection.prototype = { |
| 134 /** | 134 /** |
| 135 * @override | 135 * @override |
| 136 * @param {!Object} messageObject | 136 * @param {!Object} messageObject |
| 137 */ | 137 */ |
| 138 sendMessage: function(messageObject) | 138 sendMessage: function(messageObject) |
| 139 { | 139 { |
| 140 this._agent.sendMessage(this._targetId, JSON.stringify(messageObject)); | 140 this._agent.sendMessage(this._targetId, JSON.stringify(messageObject)); |
| 141 }, | 141 }, |
| 142 | 142 |
| 143 _close: function() | 143 forceClose: function() |
|
dgozman
2016/10/15 00:26:26
@override
| |
| 144 { | 144 { |
| 145 this.connectionClosed("node_detached"); | 145 this._agent.detach(this._targetId, ()=>{}); |
|
dgozman
2016/10/15 00:26:26
() => {}
| |
| 146 }, | 146 }, |
| 147 | 147 |
| 148 __proto__: InspectorBackendClass.Connection.prototype | 148 __proto__: InspectorBackendClass.Connection.prototype |
| 149 } | 149 } |
| OLD | NEW |