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
3 // found in the LICENSE file.
5 /** @suppress {duplicate} */
6 var remoting = remoting || {};
13 * A struct that encapsulates the states of a remoting connection. It does not
14 * manage the lifetime of its constituents.
16 * @param {remoting.Host} host
17 * @param {remoting.CredentialsProvider} credentialsProvider
18 * @param {remoting.ClientSession} session
19 * @param {remoting.ClientPlugin} plugin
24 remoting.ConnectionInfo = function(host, credentialsProvider, session, plugin) {
28 this.credentialsProvider_ = credentialsProvider;
30 this.session_ = session;
32 this.plugin_ = plugin;
35 /** @returns {remoting.Host} */
36 remoting.ConnectionInfo.prototype.host = function() {
40 /** @returns {remoting.CredentialsProvider} */
41 remoting.ConnectionInfo.prototype.credentialsProvider = function() {
42 return this.credentialsProvider_;
45 /** @returns {remoting.ClientSession} */
46 remoting.ConnectionInfo.prototype.session = function() {
50 /** @returns {remoting.ClientPlugin} */
51 remoting.ConnectionInfo.prototype.plugin = function() {