OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 {InspectorBackendClass.Connection} | 7 * @extends {InspectorBackendClass.Connection} |
8 */ | 8 */ |
9 WebInspector.MainConnection = function() | 9 WebInspector.MainConnection = function() |
10 { | 10 { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 /** | 133 /** |
134 * @param {!Object} messageObject | 134 * @param {!Object} messageObject |
135 */ | 135 */ |
136 _respondWithError: function(messageObject) | 136 _respondWithError: function(messageObject) |
137 { | 137 { |
138 var error = { message: "This is a stub connection, can't dispatch messag
e.", code: InspectorBackendClass.DevToolsStubErrorCode, data: messageObject }; | 138 var error = { message: "This is a stub connection, can't dispatch messag
e.", code: InspectorBackendClass.DevToolsStubErrorCode, data: messageObject }; |
139 this.dispatch({ id: messageObject.id, error: error }); | 139 this.dispatch({ id: messageObject.id, error: error }); |
140 }, | 140 }, |
141 | 141 |
142 __proto__: InspectorBackendClass.Connection.prototype | 142 __proto__: InspectorBackendClass.Connection.prototype |
143 } | 143 } |
OLD | NEW |