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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 * no access to these APIs, we can't call it at global scope. | 42 * no access to these APIs, we can't call it at global scope. |
43 */ | 43 */ |
44 remoting.Settings.prototype.OAUTH2_REDIRECT_URL = function() { | 44 remoting.Settings.prototype.OAUTH2_REDIRECT_URL = function() { |
45 return 'OAUTH2_REDIRECT_URL'; | 45 return 'OAUTH2_REDIRECT_URL'; |
46 }; | 46 }; |
47 | 47 |
48 /** @type {string} Base URL for the App Remoting API. */ | 48 /** @type {string} Base URL for the App Remoting API. */ |
49 remoting.Settings.prototype.APP_REMOTING_API_BASE_URL = | 49 remoting.Settings.prototype.APP_REMOTING_API_BASE_URL = |
50 'APP_REMOTING_API_BASE_URL'; | 50 'APP_REMOTING_API_BASE_URL'; |
51 | 51 |
52 /** | |
53 * Return this app's Application ID. | |
54 * | |
55 * This is a function rather than a constant because the build script may | |
56 * replace this string with code to calculate the app id dynamically. | |
57 * | |
58 * @return {string} The Application ID. | |
59 */ | |
60 remoting.Settings.prototype.getAppRemotingApplicationId = function() { | |
61 return 'APP_REMOTING_APPLICATION_ID'; | |
62 }; | |
63 | |
64 /** @type {string} XMPP JID for the remoting directory server bot. */ | 52 /** @type {string} XMPP JID for the remoting directory server bot. */ |
65 remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID'; | 53 remoting.Settings.prototype.DIRECTORY_BOT_JID = 'DIRECTORY_BOT_JID'; |
66 | 54 |
67 // XMPP server connection settings. | 55 // XMPP server connection settings. |
68 /** @type {string} XMPP server name and port. */ | 56 /** @type {string} XMPP server name and port. */ |
69 remoting.Settings.prototype.XMPP_SERVER = 'XMPP_SERVER'; | 57 remoting.Settings.prototype.XMPP_SERVER = 'XMPP_SERVER'; |
70 /** @type {boolean} Whether to use TLS on connections to the XMPP server. */ | 58 /** @type {boolean} Whether to use TLS on connections to the XMPP server. */ |
71 remoting.Settings.prototype.XMPP_SERVER_USE_TLS = | 59 remoting.Settings.prototype.XMPP_SERVER_USE_TLS = |
72 !!'XMPP_SERVER_USE_TLS'; | 60 !!'XMPP_SERVER_USE_TLS'; |
73 | 61 |
74 // Third party authentication settings. | 62 // Third party authentication settings. |
75 /** @type {string} The third party auth redirect URI. */ | 63 /** @type {string} The third party auth redirect URI. */ |
76 remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = | 64 remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = |
77 'THIRD_PARTY_AUTH_REDIRECT_URL'; | 65 'THIRD_PARTY_AUTH_REDIRECT_URL'; |
78 | 66 |
79 // 'native', 'nacl' or 'pnacl'. | 67 // 'native', 'nacl' or 'pnacl'. |
80 remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; | 68 remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; |
81 | 69 |
82 /** @const {boolean} If true, use GCD instead of Chromoting registry. */ | 70 /** @const {boolean} If true, use GCD instead of Chromoting registry. */ |
83 remoting.Settings.prototype.USE_GCD = !!'USE_GCD'; | 71 remoting.Settings.prototype.USE_GCD = !!'USE_GCD'; |
OLD | NEW |