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.
6 /** @suppress {duplicate} */
7 var remoting = remoting || {};
16 remoting.Logger = function() {};
19 * @param {number} totalTime The value of time taken to complete authorization.
20 * @return {void} Nothing.
22 remoting.Logger.prototype.setAuthTotalTime = function(totalTime) {};
25 * @param {string} hostVersion Version of the host for current session.
26 * @return {void} Nothing.
28 remoting.Logger.prototype.setHostVersion = function(hostVersion) {};
31 * Set the connection type (direct, stun relay).
33 * @param {string} connectionType
35 remoting.Logger.prototype.setConnectionType = function(connectionType) {};
38 * @param {remoting.ChromotingEvent.Mode} mode
40 remoting.Logger.prototype.setLogEntryMode = function(mode) {};
44 * @param {remoting.SignalStrategy.Type} strategyType
45 * @param {remoting.FallbackSignalStrategy.Progress} progress
47 remoting.Logger.prototype.logSignalStrategyProgress =
48 function(strategyType, progress) {};
51 * Logs a client session state change.
53 * @param {remoting.ClientSession.State} state
54 * @param {!remoting.Error} connectionError
56 remoting.Logger.prototype.logClientSessionStateChange =
57 function(state, connectionError) {};
60 * Logs connection statistics.
61 * @param {Object<number>} stats The connection statistics
63 remoting.Logger.prototype.logStatistics = function(stats) {};
67 * @return {string} The current session id. This is random GUID, refreshed
70 remoting.Logger.prototype.getSessionId = function() {};
72 // The maximum age of a session ID, in milliseconds.
73 remoting.Logger.MAX_SESSION_ID_AGE = 24 * 60 * 60 * 1000;
75 // The time over which to accumulate connection statistics before logging them
76 // to the server, in milliseconds.
77 remoting.Logger.CONNECTION_STATS_ACCUMULATE_TIME = 60 * 1000;