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.
4
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.
8
9'use strict';
10
11/** @suppress {duplicate} */
12var remoting = remoting || {};
13
14/** @type {remoting.Settings} */
15remoting.settings = null;
16/** @constructor */
17remoting.Settings = function() {};
18
19// The settings on this file are automatically substituted by build-webapp.py.
20// Do not override them manually, except for running local tests.
21
22/** @type {string} API client ID.*/
23remoting.Settings.prototype.OAUTH2_CLIENT_ID = 'API_CLIENT_ID';
24/** @type {string} API client secret.*/
25remoting.Settings.prototype.OAUTH2_CLIENT_SECRET = 'API_CLIENT_SECRET';
26
27/** @type {string} Base URL for OAuth2 authentication. */
28remoting.Settings.prototype.OAUTH2_BASE_URL = 'OAUTH2_BASE_URL';
29/** @type {string} Base URL for the OAuth2 API. */
30remoting.Settings.prototype.OAUTH2_API_BASE_URL = 'OAUTH2_API_BASE_URL';
31/** @type {string} Base URL for the Remoting Directory REST API. */
32remoting.Settings.prototype.DIRECTORY_API_BASE_URL = 'DIRECTORY_API_BASE_URL';
33/** @type {string} URL for the talk gadget web service. */
34remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL';
35/** @type {string} OAuth2 redirect URI. */
36remoting.Settings.prototype.OAUTH2_REDIRECT_URL = 'OAUTH2_REDIRECT_URL';
37
38/** @type {string} XMPP JID for the remoting directory server bot. */
39remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID';
40
41// XMPP server connection settings.
42/** @type {string} XMPP server host name (or IP address) and port. */
43remoting.Settings.prototype.XMPP_SERVER_ADDRESS = 'XMPP_SERVER_ADDRESS';
44/** @type {boolean} Whether to use TLS on connections to the XMPP server. */
45remoting.Settings.prototype.XMPP_SERVER_USE_TLS =
46    Boolean('XMPP_SERVER_USE_TLS');
47
48// Third party authentication settings.
49/** @type {string} The third party auth redirect URI. */
50remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI =
51    'THIRD_PARTY_AUTH_REDIRECT_URL';
52
53// 'native', 'nacl' or 'pnacl'.
54remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE';
55