1 // Copyright (c) 2011 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 // This file contains type definitions for the WCS IQ client. It is used only
6 // with JSCompiler to verify the type-correctness of our code.
8 /** @suppress {duplicate} */
9 var remoting
= remoting
|| {};
13 remoting
.WcsIqClient = function() {};
15 /** @param {function(Array.<string>): void} onMsg The function called when a
16 * message is received.
17 * @return {void} Nothing. */
18 remoting
.WcsIqClient
.prototype.setOnMessage = function(onMsg
) {};
20 /** @return {void} Nothing. */
21 remoting
.WcsIqClient
.prototype.connectChannel = function() {};
23 /** @param {string} stanza An IQ stanza.
24 * @return {void} Nothing. */
25 remoting
.WcsIqClient
.prototype.sendIq = function(stanza
) {};
27 /** @param {string} token An OAuth2 access token.
28 * @return {void} Nothing. */
29 remoting
.WcsIqClient
.prototype.updateAccessToken = function(token
) {};