| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * Class handling creation and teardown of a remoting client session. | 7 * Class handling creation and teardown of a remoting client session. |
| 8 * | 8 * |
| 9 * The ClientSession class controls lifetime of the client plugin | 9 * The ClientSession class controls lifetime of the client plugin |
| 10 * object and provides the plugin with the functionality it needs to | 10 * object and provides the plugin with the functionality it needs to |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 * @enum {string} | 237 * @enum {string} |
| 238 */ | 238 */ |
| 239 remoting.ClientSession.Capability = { | 239 remoting.ClientSession.Capability = { |
| 240 // When enabled this capability causes the client to send its screen | 240 // When enabled this capability causes the client to send its screen |
| 241 // resolution to the host once connection has been established. See | 241 // resolution to the host once connection has been established. See |
| 242 // this.plugin_.notifyClientResolution(). | 242 // this.plugin_.notifyClientResolution(). |
| 243 SEND_INITIAL_RESOLUTION: 'sendInitialResolution', | 243 SEND_INITIAL_RESOLUTION: 'sendInitialResolution', |
| 244 | 244 |
| 245 // Let the host know that we're interested in knowing whether or not it | 245 // Let the host know that we're interested in knowing whether or not it |
| 246 // rate limits desktop-resize requests. | 246 // rate limits desktop-resize requests. |
| 247 // TODO(kelvinp): This has been supported since M-29. Currently we only have |
| 248 // <1000 users on M-29 or below. Remove this and the capability on the host. |
| 247 RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests', | 249 RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests', |
| 248 | 250 |
| 249 // Indicates that host/client supports Google Drive integration, and that the | 251 // Indicates that host/client supports Google Drive integration, and that the |
| 250 // client should send to the host the OAuth tokens to be used by Google Drive | 252 // client should send to the host the OAuth tokens to be used by Google Drive |
| 251 // on the host. | 253 // on the host. |
| 252 GOOGLE_DRIVE: "googleDrive", | 254 GOOGLE_DRIVE: "googleDrive", |
| 253 | 255 |
| 254 // Indicates that the client supports the video frame-recording extension. | 256 // Indicates that the client supports the video frame-recording extension. |
| 255 VIDEO_RECORDER: 'videoRecorder', | 257 VIDEO_RECORDER: 'videoRecorder', |
| 256 | 258 |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 * @param {Object} message The parsed extension message data. | 842 * @param {Object} message The parsed extension message data. |
| 841 * @return {boolean} True if the message was recognized, false otherwise. | 843 * @return {boolean} True if the message was recognized, false otherwise. |
| 842 */ | 844 */ |
| 843 remoting.ClientSession.prototype.handleExtensionMessage = | 845 remoting.ClientSession.prototype.handleExtensionMessage = |
| 844 function(type, message) { | 846 function(type, message) { |
| 845 if (this.uiHandler_.handleExtensionMessage(type, message)) { | 847 if (this.uiHandler_.handleExtensionMessage(type, message)) { |
| 846 return true; | 848 return true; |
| 847 } | 849 } |
| 848 return false; | 850 return false; |
| 849 }; | 851 }; |
| OLD | NEW |