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 // Contains all the settings that may need massaging by the build script. | 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 | 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. | 7 // files making for a faster compile/run cycle when only modifying HTML/JS. |
8 | 8 |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL'; | 34 remoting.Settings.prototype.TALK_GADGET_URL = 'TALK_GADGET_URL'; |
35 | 35 |
36 /** | 36 /** |
37 * @return {string} OAuth2 redirect URI. Note that this needs to be a function | 37 * @return {string} OAuth2 redirect URI. Note that this needs to be a function |
38 * because it gets expanded at compile-time to an expression that involves | 38 * because it gets expanded at compile-time to an expression that involves |
39 * a chrome API. Since this file is loaded into the WCS sandbox, which has | 39 * a chrome API. Since this file is loaded into the WCS sandbox, which has |
40 * no access to these APIs, we can't call it at global scope. | 40 * no access to these APIs, we can't call it at global scope. |
41 */ | 41 */ |
42 remoting.Settings.prototype.OAUTH2_REDIRECT_URL = function() { | 42 remoting.Settings.prototype.OAUTH2_REDIRECT_URL = function() { |
43 return 'OAUTH2_REDIRECT_URL'; | 43 return 'OAUTH2_REDIRECT_URL'; |
44 } | 44 }; |
45 | 45 |
46 /** @type {string} Base URL for the App Remoting API. */ | 46 /** @type {string} Base URL for the App Remoting API. */ |
47 remoting.Settings.prototype.APP_REMOTING_API_BASE_URL = | 47 remoting.Settings.prototype.APP_REMOTING_API_BASE_URL = |
48 'APP_REMOTING_API_BASE_URL'; | 48 'APP_REMOTING_API_BASE_URL'; |
49 | 49 |
50 /** | 50 /** |
51 * Return this app's Application ID. | 51 * Return this app's Application ID. |
52 * | 52 * |
53 * This is a function rather than a constant because the build script may | 53 * This is a function rather than a constant because the build script may |
54 * replace this string with code to calculate the app id dynamically. | 54 * replace this string with code to calculate the app id dynamically. |
55 * | 55 * |
56 * @return {string} The Application ID. | 56 * @return {string} The Application ID. |
57 */ | 57 */ |
58 remoting.Settings.prototype.getAppRemotingApplicationId = function() { | 58 remoting.Settings.prototype.getAppRemotingApplicationId = function() { |
59 return 'APP_REMOTING_APPLICATION_ID'; | 59 return 'APP_REMOTING_APPLICATION_ID'; |
60 }; | 60 }; |
61 | 61 |
62 /** @type {string} XMPP JID for the remoting directory server bot. */ | 62 /** @type {string} XMPP JID for the remoting directory server bot. */ |
63 remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID'; | 63 remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID'; |
64 | 64 |
65 // XMPP server connection settings. | 65 // XMPP server connection settings. |
66 /** @type {string} XMPP server name and port. */ | 66 /** @type {string} XMPP server name and port. */ |
67 remoting.Settings.prototype.XMPP_SERVER = 'XMPP_SERVER'; | 67 remoting.Settings.prototype.XMPP_SERVER = 'XMPP_SERVER'; |
68 /** @type {boolean} Whether to use TLS on connections to the XMPP server. */ | 68 /** @type {boolean} Whether to use TLS on connections to the XMPP server. */ |
69 remoting.Settings.prototype.XMPP_SERVER_USE_TLS = | 69 remoting.Settings.prototype.XMPP_SERVER_USE_TLS = |
70 Boolean('XMPP_SERVER_USE_TLS'); | 70 !!'XMPP_SERVER_USE_TLS'; |
71 | 71 |
72 // Third party authentication settings. | 72 // Third party authentication settings. |
73 /** @type {string} The third party auth redirect URI. */ | 73 /** @type {string} The third party auth redirect URI. */ |
74 remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = | 74 remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = |
75 'THIRD_PARTY_AUTH_REDIRECT_URL'; | 75 'THIRD_PARTY_AUTH_REDIRECT_URL'; |
76 | 76 |
77 // 'native', 'nacl' or 'pnacl'. | 77 // 'native', 'nacl' or 'pnacl'. |
78 remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; | 78 remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; |
| 79 |
| 80 /** @const {boolean} If true, use GCD instead of Chromoting registry. */ |
| 81 remoting.Settings.prototype.USE_GCD = !!'USE_GCD'; |
OLD | NEW |