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
3 // found in the LICENSE file.
5 // Contains all the settings that may need massaging by the build script.
6 // Keeping all that centralized here allows us to use symlinks for the other
7 // files making for a faster compile/run cycle when only modifying HTML/JS.
11 /** @suppress {duplicate} */
12 var remoting
= remoting
|| {};
14 /** @type {remoting.Settings} */
15 remoting
.settings
= null;
17 remoting
.Settings = function() {};
19 // The settings on this file are automatically substituted by build-webapp.py.
20 // Do not override them manually, except for running local tests.
22 /** @type {string} API client ID.*/
23 remoting
.Settings
.prototype.OAUTH2_CLIENT_ID
= 'API_CLIENT_ID';
24 /** @type {string} API client secret.*/
25 remoting
.Settings
.prototype.OAUTH2_CLIENT_SECRET
= 'API_CLIENT_SECRET';
26 /** @type {string} Google API Key.*/
27 remoting
.Settings
.prototype.GOOGLE_API_KEY
= 'API_KEY';
29 /** @type {string} Base URL for OAuth2 authentication. */
30 remoting
.Settings
.prototype.OAUTH2_BASE_URL
= 'OAUTH2_BASE_URL';
31 /** @type {string} Base URL for the OAuth2 API. */
32 remoting
.Settings
.prototype.OAUTH2_API_BASE_URL
= 'OAUTH2_API_BASE_URL';
33 /** @type {string} Base URL for the Remoting Directory REST API. */
34 remoting
.Settings
.prototype.DIRECTORY_API_BASE_URL
= 'DIRECTORY_API_BASE_URL';
35 /** @type {string} URL for the talk gadget web service. */
36 remoting
.Settings
.prototype.TALK_GADGET_URL
= 'TALK_GADGET_URL';
37 /** @type {string} Base URL for the telemetry REST API. */
38 remoting
.Settings
.prototype.TELEMETRY_API_BASE_URL
= 'TELEMETRY_API_BASE_URL';
41 * @return {string} OAuth2 redirect URI. Note that this needs to be a function
42 * because it gets expanded at compile-time to an expression that involves
43 * a chrome API. Since this file is loaded into the WCS sandbox, which has
44 * no access to these APIs, we can't call it at global scope.
46 remoting
.Settings
.prototype.OAUTH2_REDIRECT_URL = function() {
47 return 'OAUTH2_REDIRECT_URL';
50 /** @type {string} Base URL for the App Remoting API. */
51 remoting
.Settings
.prototype.APP_REMOTING_API_BASE_URL
=
52 'APP_REMOTING_API_BASE_URL';
54 /** @type {string} XMPP JID for the remoting directory server bot. */
55 remoting
.Settings
.prototype.DIRECTORY_BOT_JID
= 'DIRECTORY_BOT_JID';
57 // XMPP server connection settings.
58 /** @type {string} XMPP server name and port. */
59 remoting
.Settings
.prototype.XMPP_SERVER
= 'XMPP_SERVER';
60 /** @type {boolean} Whether to use TLS on connections to the XMPP server. */
61 remoting
.Settings
.prototype.XMPP_SERVER_USE_TLS
=
62 !!'XMPP_SERVER_USE_TLS';
64 // Third party authentication settings.
65 /** @type {string} The third party auth redirect URI. */
66 remoting
.Settings
.prototype.THIRD_PARTY_AUTH_REDIRECT_URI
=
67 'THIRD_PARTY_AUTH_REDIRECT_URL';
69 /** @const {boolean} If true, use GCD instead of Chromoting registry. */
70 remoting
.Settings
.prototype.USE_GCD
= !!'USE_GCD';