OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 * @fileoverview | 6 * @fileoverview |
7 * Interface abstracting the protocol extension functionality. | 7 * Interface abstracting the protocol extension functionality. |
8 * Instances of this class can be registered with the SessionConnector | 8 * Instances of this class can be registered with the ProtocolExtensionManager |
9 * to enhance the communication protocol between the host and client. | 9 * to enhance the communication protocol between the host and client. |
10 * Note that corresponding support on the host side is required. | 10 * Note that corresponding support on the host side is required. |
11 */ | 11 */ |
12 | 12 |
13 'use strict'; | 13 'use strict'; |
14 | 14 |
15 /** @suppress {duplicate} */ | 15 /** @suppress {duplicate} */ |
16 var remoting = remoting || {}; | 16 var remoting = remoting || {}; |
17 | 17 |
18 /** | 18 /** |
(...skipping 20 matching lines...) Expand all Loading... |
39 | 39 |
40 /** | 40 /** |
41 * Called when an extension message of a matching type is received. | 41 * Called when an extension message of a matching type is received. |
42 * | 42 * |
43 * @param {string} type The message type. | 43 * @param {string} type The message type. |
44 * @param {Object} message The parsed extension message data. | 44 * @param {Object} message The parsed extension message data. |
45 * @return {boolean} True if the extension message was handled. | 45 * @return {boolean} True if the extension message was handled. |
46 */ | 46 */ |
47 remoting.ProtocolExtension.prototype.onExtensionMessage = | 47 remoting.ProtocolExtension.prototype.onExtensionMessage = |
48 function(type, message) {}; | 48 function(type, message) {}; |
OLD | NEW |