Path: blob/trunk/third_party/closure/goog/labs/net/webchannel/connectionstate.js
1865 views
// Copyright 2013 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview This class manages the network connectivity state.16*17* @visibility {:internal}18*/192021goog.provide('goog.labs.net.webChannel.ConnectionState');22232425/**26* The connectivity state of the channel.27*28* @constructor29* @struct30*/31goog.labs.net.webChannel.ConnectionState = function() {32/**33* Handshake result.34* @type {Array<string>}35*/36this.handshakeResult = null;3738/**39* The result of checking if there is a buffering proxy in the network.40* True means the connection is buffered, False means unbuffered,41* null means that the result is not available.42* @type {?boolean}43*/44this.bufferingProxyResult = null;45};464748