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 /** | 6 /** |
7 * @fileoverview | 7 * @fileoverview |
8 * A class that loads a WCS IQ client and constructs remoting.wcs as a | 8 * A class that loads a WCS IQ client and constructs remoting.wcs as a |
9 * wrapper for it. | 9 * wrapper for it. |
10 */ | 10 */ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 }; | 49 }; |
50 remoting.oauth2.callWithToken(start, onError); | 50 remoting.oauth2.callWithToken(start, onError); |
51 }; | 51 }; |
52 | 52 |
53 /** | 53 /** |
54 * The URL of the GTalk gadget. | 54 * The URL of the GTalk gadget. |
55 * @type {string} | 55 * @type {string} |
56 * @private | 56 * @private |
57 */ | 57 */ |
58 remoting.WcsLoader.prototype.TALK_GADGET_URL_ = | 58 remoting.WcsLoader.prototype.TALK_GADGET_URL_ = |
59 'https://chromoting.talkgadget.google.com/talkgadget/'; | 59 'https://chromoting-client.talkgadget.google.com/talkgadget/'; |
60 | 60 |
61 /** | 61 /** |
62 * The id of the script node. | 62 * The id of the script node. |
63 * @type {string} | 63 * @type {string} |
64 * @private | 64 * @private |
65 */ | 65 */ |
66 remoting.WcsLoader.prototype.SCRIPT_NODE_ID_ = 'wcs-script-node'; | 66 remoting.WcsLoader.prototype.SCRIPT_NODE_ID_ = 'wcs-script-node'; |
67 | 67 |
68 /** | 68 /** |
69 * The attribute name indicating that the WCS has finished loading. | 69 * The attribute name indicating that the WCS has finished loading. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 * an OAuth2 access token when WCS has been loaded. | 129 * an OAuth2 access token when WCS has been loaded. |
130 * @return {void} Nothing. | 130 * @return {void} Nothing. |
131 * @private | 131 * @private |
132 */ | 132 */ |
133 remoting.WcsLoader.prototype.constructWcs_ = function(token, onReady) { | 133 remoting.WcsLoader.prototype.constructWcs_ = function(token, onReady) { |
134 remoting.wcs = new remoting.Wcs( | 134 remoting.wcs = new remoting.Wcs( |
135 remoting.wcsLoader.wcsIqClient, | 135 remoting.wcsLoader.wcsIqClient, |
136 token, | 136 token, |
137 function() { onReady(token); }); | 137 function() { onReady(token); }); |
138 }; | 138 }; |
OLD | NEW |