15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Contains all the settings that may need massaging by the build script. 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Keeping all that centralized here allows us to use symlinks for the other 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// files making for a faster compile/run cycle when only modifying HTML/JS. 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)'use strict'; 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/** @suppress {duplicate} */ 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)var remoting = remoting || {}; 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {remoting.Settings} */ 152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.settings = null; 162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @constructor */ 172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings = function() {}; 182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// The settings on this file are automatically substituted by build-webapp.py. 202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Do not override them manually, except for running local tests. 212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} API client ID.*/ 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.OAUTH2_CLIENT_ID = 'API_CLIENT_ID'; 242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} API client secret.*/ 252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.OAUTH2_CLIENT_SECRET = 'API_CLIENT_SECRET'; 262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} Base URL for OAuth2 authentication. */ 282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.OAUTH2_BASE_URL = 'OAUTH2_BASE_URL'; 292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} Base URL for the OAuth2 API. */ 302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.OAUTH2_API_BASE_URL = 'OAUTH2_API_BASE_URL'; 312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} Base URL for the Remoting Directory REST API. */ 322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.DIRECTORY_API_BASE_URL = 'DIRECTORY_API_BASE_URL'; 332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} URL for the talk gadget web service. */ 342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL'; 352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} OAuth2 redirect URI. */ 362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.OAUTH2_REDIRECT_URL = 'OAUTH2_REDIRECT_URL'; 372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 382a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} XMPP JID for the remoting directory server bot. */ 392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID'; 402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// XMPP server connection settings. 422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {string} XMPP server host name (or IP address) and port. */ 432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.XMPP_SERVER_ADDRESS = 'XMPP_SERVER_ADDRESS'; 442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)/** @type {boolean} Whether to use TLS on connections to the XMPP server. */ 452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)remoting.Settings.prototype.XMPP_SERVER_USE_TLS = 462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) Boolean('XMPP_SERVER_USE_TLS'); 47c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 48c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Third party authentication settings. 49c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)/** @type {string} The third party auth redirect URI. */ 50c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = 51c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 'THIRD_PARTY_AUTH_REDIRECT_URL'; 525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 53cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)// 'native', 'nacl' or 'pnacl'. 54cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; 55