Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 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 constants for known URLs and portions thereof. |
| 6 | |
| 7 | #ifndef CHROME_COMMON_URL_CONSTANTS_H_ |
| 8 | #define CHROME_COMMON_URL_CONSTANTS_H_ |
| 9 | |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 10 | #include <string> |
| 11 | #include <vector> |
| 12 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 13 | #include "build/build_config.h" |
| 14 | #include "content/public/common/url_constants.h" |
| 15 | |
| 16 | namespace chrome { |
| 17 | |
| 18 | // TODO(msw): Resolve chrome_frame dependency on these constants. |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 19 | extern const char kAboutComponentsURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 20 | extern const char kAboutPluginsURL[]; |
| 21 | extern const char kAboutVersionURL[]; |
| 22 | |
| 23 | // chrome: URLs (including schemes). Should be kept in sync with the |
| 24 | // components below. |
| 25 | extern const char kChromeUIAboutURL[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 26 | extern const char kChromeUIAppsURL[]; |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 27 | extern const char kChromeUIAppListStartPageURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 28 | extern const char kChromeUIBookmarksURL[]; |
| 29 | extern const char kChromeUICertificateViewerURL[]; |
| 30 | extern const char kChromeUIChromeURLsURL[]; |
| 31 | extern const char kChromeUICloudPrintResourcesURL[]; |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 32 | extern const char kChromeUIComponentsURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 33 | extern const char kChromeUIConflictsURL[]; |
| 34 | extern const char kChromeUIConstrainedHTMLTestURL[]; |
| 35 | extern const char kChromeUICrashesURL[]; |
| 36 | extern const char kChromeUICreditsURL[]; |
Ben Murdoch | 9ab5563 | 2013-07-18 11:57:30 +0100 | [diff] [blame] | 37 | extern const char kChromeUIDevicesURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 38 | extern const char kChromeUIDevToolsURL[]; |
| 39 | extern const char kChromeUIDownloadsURL[]; |
| 40 | extern const char kChromeUIEditSearchEngineDialogURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 41 | extern const char kChromeUIExtensionIconURL[]; |
| 42 | extern const char kChromeUIExtensionInfoURL[]; |
| 43 | extern const char kChromeUIExtensionsFrameURL[]; |
| 44 | extern const char kChromeUIExtensionsURL[]; |
| 45 | extern const char kChromeUIFaviconURL[]; |
| 46 | extern const char kChromeUIFeedbackURL[]; |
| 47 | extern const char kChromeUIFlagsURL[]; |
| 48 | extern const char kChromeUIFlashURL[]; |
| 49 | extern const char kChromeUIHelpFrameURL[]; |
| 50 | extern const char kChromeUIHistoryURL[]; |
| 51 | extern const char kChromeUIHistoryFrameURL[]; |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 52 | extern const char kChromeUIIdentityInternalsURL[]; |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 53 | extern const char kChromeUIInlineLoginURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 54 | extern const char kChromeUIInspectURL[]; |
| 55 | extern const char kChromeUIInstantURL[]; |
| 56 | extern const char kChromeUIIPCURL[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 57 | extern const char kChromeUIManagedUserPassphrasePageURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 58 | extern const char kChromeUIMemoryRedirectURL[]; |
| 59 | extern const char kChromeUIMemoryURL[]; |
| 60 | extern const char kChromeUIMetroFlowURL[]; |
| 61 | extern const char kChromeUINaClURL[]; |
| 62 | extern const char kChromeUINetInternalsURL[]; |
| 63 | extern const char kChromeUINewProfile[]; |
| 64 | extern const char kChromeUINewTabURL[]; |
| 65 | extern const char kChromeUIOmniboxURL[]; |
| 66 | extern const char kChromeUIPerformanceMonitorURL[]; |
| 67 | extern const char kChromeUIPluginsURL[]; |
| 68 | extern const char kChromeUIPolicyURL[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 69 | extern const char kChromeUIProfileSigninConfirmationURL[]; |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 70 | extern const char kChromeUIUserManagerURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 71 | extern const char kChromeUIPrintURL[]; |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 72 | extern const char kChromeUIRestartURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 73 | extern const char kChromeUISessionFaviconURL[]; |
| 74 | extern const char kChromeUISettingsURL[]; |
| 75 | extern const char kChromeUISettingsFrameURL[]; |
| 76 | extern const char kChromeUISuggestionsInternalsURL[]; |
| 77 | extern const char kChromeUISSLClientCertificateSelectorURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 78 | extern const char kChromeUITaskManagerURL[]; |
| 79 | extern const char kChromeUITermsURL[]; |
| 80 | extern const char kChromeUIThemeURL[]; |
| 81 | extern const char kChromeUIThumbnailURL[]; |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 82 | extern const char kChromeUIThumbnailListURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 83 | extern const char kChromeUIUberURL[]; |
| 84 | extern const char kChromeUIUberFrameURL[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 85 | extern const char kChromeUIUserActionsURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 86 | extern const char kChromeUIVersionURL[]; |
| 87 | |
| 88 | #if defined(OS_ANDROID) |
| 89 | extern const char kChromeUIWelcomeURL[]; |
| 90 | #endif |
| 91 | |
| 92 | #if defined(OS_CHROMEOS) |
| 93 | extern const char kChromeUIActivationMessage[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 94 | extern const char kChromeUIBluetoothPairingURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 95 | extern const char kChromeUIChooseMobileNetworkURL[]; |
| 96 | extern const char kChromeUIDiagnosticsURL[]; |
| 97 | extern const char kChromeUIDiscardsURL[]; |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 98 | extern const char kChromeUIFirstRunURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 99 | extern const char kChromeUIIdleLogoutDialogURL[]; |
| 100 | extern const char kChromeUIImageBurnerURL[]; |
| 101 | extern const char kChromeUIKeyboardOverlayURL[]; |
| 102 | extern const char kChromeUILockScreenURL[]; |
| 103 | extern const char kChromeUIMediaplayerURL[]; |
| 104 | extern const char kChromeUIMobileSetupURL[]; |
| 105 | extern const char kChromeUIOobeURL[]; |
| 106 | extern const char kChromeUIOSCreditsURL[]; |
| 107 | extern const char kChromeUIProxySettingsURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 108 | extern const char kChromeUISimUnlockURL[]; |
| 109 | extern const char kChromeUISlideshowURL[]; |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 110 | extern const char kChromeUISlowURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 111 | extern const char kChromeUISystemInfoURL[]; |
| 112 | extern const char kChromeUITermsOemURL[]; |
| 113 | extern const char kChromeUIUserImageURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 114 | #endif |
| 115 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 116 | #if defined(FILE_MANAGER_EXTENSION) |
| 117 | extern const char kChromeUIFileManagerURL[]; |
| 118 | #endif |
| 119 | |
| 120 | #if defined(USE_AURA) |
| 121 | extern const char kChromeUIGestureConfigURL[]; |
| 122 | extern const char kChromeUIGestureConfigHost[]; |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 123 | extern const char kChromeUISalsaURL[]; |
| 124 | extern const char kChromeUISalsaHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 125 | #endif |
| 126 | |
| 127 | #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 128 | extern const char kChromeUITabModalConfirmDialogURL[]; |
| 129 | #endif |
| 130 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 131 | #if defined(ENABLE_WEBRTC) |
| 132 | extern const char kChromeUIWebRtcLogsURL[]; |
| 133 | #endif |
| 134 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 135 | // chrome components of URLs. Should be kept in sync with the full URLs above. |
| 136 | extern const char kChromeUIAboutHost[]; |
| 137 | extern const char kChromeUIAboutPageFrameHost[]; |
| 138 | extern const char kChromeUIBlankHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 139 | extern const char kChromeUIAppLauncherPageHost[]; |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 140 | extern const char kChromeUIAppListStartPageHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 141 | extern const char kChromeUIBookmarksHost[]; |
| 142 | extern const char kChromeUICacheHost[]; |
| 143 | extern const char kChromeUICertificateViewerHost[]; |
| 144 | extern const char kChromeUIChromeURLsHost[]; |
| 145 | extern const char kChromeUICloudPrintResourcesHost[]; |
| 146 | extern const char kChromeUICloudPrintSetupHost[]; |
| 147 | extern const char kChromeUIConflictsHost[]; |
| 148 | extern const char kChromeUIConstrainedHTMLTestHost[]; |
| 149 | extern const char kChromeUICrashesHost[]; |
| 150 | extern const char kChromeUICrashHost[]; |
| 151 | extern const char kChromeUICreditsHost[]; |
| 152 | extern const char kChromeUIDefaultHost[]; |
Ben Murdoch | 9ab5563 | 2013-07-18 11:57:30 +0100 | [diff] [blame] | 153 | extern const char kChromeUIDevicesHost[]; |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 154 | extern const char kChromeUIDevToolsHost[]; |
| 155 | extern const char kChromeUIDevToolsBundledPath[]; |
| 156 | extern const char kChromeUIDevToolsRemotePath[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 157 | extern const char kChromeUIDNSHost[]; |
| 158 | extern const char kChromeUIDownloadsHost[]; |
| 159 | extern const char kChromeUIDriveInternalsHost[]; |
| 160 | extern const char kChromeUIEditSearchEngineDialogHost[]; |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 161 | extern const char kChromeUIEnhancedBookmarksHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 162 | extern const char kChromeUIExtensionIconHost[]; |
| 163 | extern const char kChromeUIExtensionInfoHost[]; |
| 164 | extern const char kChromeUIExtensionsFrameHost[]; |
| 165 | extern const char kChromeUIExtensionsHost[]; |
| 166 | extern const char kChromeUIFaviconHost[]; |
| 167 | extern const char kChromeUIFeedbackHost[]; |
| 168 | extern const char kChromeUIFlagsHost[]; |
| 169 | extern const char kChromeUIFlashHost[]; |
| 170 | extern const char kChromeUIHelpFrameHost[]; |
| 171 | extern const char kChromeUIHelpHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 172 | extern const char kChromeUIHangHost[]; |
| 173 | extern const char kChromeUIHistoryHost[]; |
| 174 | extern const char kChromeUIHistoryFrameHost[]; |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 175 | extern const char kChromeUIIdentityInternalsHost[]; |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 176 | extern const char kChromeUIInlineLoginHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 177 | extern const char kChromeUIInspectHost[]; |
| 178 | extern const char kChromeUIInstantHost[]; |
| 179 | extern const char kChromeUIIPCHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 180 | extern const char kChromeUIKillHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 181 | extern const char kChromeUIManagedUserPassphrasePageHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 182 | extern const char kChromeUIMemoryHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 183 | extern const char kChromeUIMemoryInternalsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 184 | extern const char kChromeUIMemoryRedirectHost[]; |
| 185 | extern const char kChromeUIMetroFlowHost[]; |
| 186 | extern const char kChromeUINaClHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 187 | extern const char kChromeUINetExportHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 188 | extern const char kChromeUINetInternalsHost[]; |
| 189 | extern const char kChromeUINewTabHost[]; |
| 190 | extern const char kChromeUIOmniboxHost[]; |
| 191 | extern const char kChromeUIPerformanceMonitorHost[]; |
| 192 | extern const char kChromeUIPluginsHost[]; |
Torne (Richard Coles) | 3551c9c | 2013-08-23 16:39:15 +0100 | [diff] [blame] | 193 | extern const char kChromeUIComponentsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 194 | extern const char kChromeUIPolicyHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 195 | extern const char kChromeUIProfileSigninConfirmationHost[]; |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 196 | extern const char kChromeUIUserManagerHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 197 | extern const char kChromeUIPredictorsHost[]; |
| 198 | extern const char kChromeUIPrintHost[]; |
| 199 | extern const char kChromeUIProfilerHost[]; |
| 200 | extern const char kChromeUIQuotaInternalsHost[]; |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 201 | extern const char kChromeUIRestartHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 202 | extern const char kChromeUISessionFaviconHost[]; |
| 203 | extern const char kChromeUISettingsHost[]; |
| 204 | extern const char kChromeUISettingsFrameHost[]; |
| 205 | extern const char kChromeUIShorthangHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 206 | extern const char kChromeUISignInInternalsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 207 | extern const char kChromeUISuggestionsInternalsHost[]; |
| 208 | extern const char kChromeUISSLClientCertificateSelectorHost[]; |
| 209 | extern const char kChromeUIStatsHost[]; |
| 210 | extern const char kChromeUISyncHost[]; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 211 | extern const char kChromeUISyncFileSystemInternalsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 212 | extern const char kChromeUISyncInternalsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 213 | extern const char kChromeUISyncResourcesHost[]; |
| 214 | extern const char kChromeUITaskManagerHost[]; |
| 215 | extern const char kChromeUITermsHost[]; |
| 216 | extern const char kChromeUIThemeHost[]; |
| 217 | extern const char kChromeUIThumbnailHost[]; |
Torne (Richard Coles) | d0247b1 | 2013-09-19 22:36:51 +0100 | [diff] [blame] | 218 | extern const char kChromeUIThumbnailHost2[]; |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 219 | extern const char kChromeUIThumbnailListHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 220 | extern const char kChromeUITouchIconHost[]; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 221 | extern const char kChromeUITranslateInternalsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 222 | extern const char kChromeUIUberFrameHost[]; |
| 223 | extern const char kChromeUIUberHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 224 | extern const char kChromeUIUserActionsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 225 | extern const char kChromeUIVersionHost[]; |
| 226 | extern const char kChromeUIWorkersHost[]; |
| 227 | |
| 228 | extern const char kChromeUIScreenshotPath[]; |
| 229 | extern const char kChromeUIThemePath[]; |
| 230 | |
| 231 | #if defined(OS_ANDROID) |
| 232 | extern const char kChromeUIWelcomeHost[]; |
| 233 | #endif |
| 234 | |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 235 | #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 236 | extern const char kChromeUILinuxProxyConfigHost[]; |
| 237 | extern const char kChromeUISandboxHost[]; |
| 238 | #endif |
| 239 | |
| 240 | #if defined(OS_CHROMEOS) |
| 241 | extern const char kChromeUIActivationMessageHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 242 | extern const char kChromeUIAppLaunchHost[]; |
| 243 | extern const char kChromeUIBluetoothPairingHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 244 | extern const char kChromeUIChooseMobileNetworkHost[]; |
| 245 | extern const char kChromeUICryptohomeHost[]; |
| 246 | extern const char kChromeUIDiagnosticsHost[]; |
| 247 | extern const char kChromeUIDiscardsHost[]; |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 248 | extern const char kChromeUIFirstRunHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 249 | extern const char kChromeUIIdleLogoutDialogHost[]; |
| 250 | extern const char kChromeUIImageBurnerHost[]; |
| 251 | extern const char kChromeUIKeyboardOverlayHost[]; |
| 252 | extern const char kChromeUILockScreenHost[]; |
| 253 | extern const char kChromeUILoginContainerHost[]; |
| 254 | extern const char kChromeUILoginHost[]; |
| 255 | extern const char kChromeUIMediaplayerHost[]; |
| 256 | extern const char kChromeUIMobileSetupHost[]; |
| 257 | extern const char kChromeUINetworkHost[]; |
| 258 | extern const char kChromeUIOobeHost[]; |
| 259 | extern const char kChromeUIOSCreditsHost[]; |
| 260 | extern const char kChromeUIProxySettingsHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 261 | extern const char kChromeUIRotateHost[]; |
| 262 | extern const char kChromeUISimUnlockHost[]; |
| 263 | extern const char kChromeUISlideshowHost[]; |
Ben Murdoch | ba5b9a6 | 2013-08-12 14:20:17 +0100 | [diff] [blame] | 264 | extern const char kChromeUISlowHost[]; |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 265 | extern const char kChromeUISlowTraceHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 266 | extern const char kChromeUISystemInfoHost[]; |
| 267 | extern const char kChromeUIUserImageHost[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 268 | |
| 269 | extern const char kChromeUIMenu[]; |
| 270 | extern const char kChromeUINetworkMenu[]; |
| 271 | extern const char kChromeUIWrenchMenu[]; |
| 272 | |
| 273 | extern const char kEULAPathFormat[]; |
| 274 | extern const char kOemEulaURLPath[]; |
Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 275 | extern const char kOnlineEulaURLPath[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 276 | #endif |
| 277 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 278 | #if defined(FILE_MANAGER_EXTENSION) |
| 279 | extern const char kChromeUIFileManagerHost[]; |
| 280 | #endif |
| 281 | |
| 282 | #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 283 | extern const char kChromeUITabModalConfirmDialogHost[]; |
| 284 | #endif |
| 285 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 286 | #if defined(ENABLE_WEBRTC) |
| 287 | extern const char kChromeUIWebRtcLogsHost[]; |
| 288 | #endif |
| 289 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 290 | // Options sub-pages. |
| 291 | extern const char kAutofillSubPage[]; |
| 292 | extern const char kClearBrowserDataSubPage[]; |
| 293 | extern const char kContentSettingsExceptionsSubPage[]; |
| 294 | extern const char kContentSettingsSubPage[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 295 | extern const char kCreateProfileSubPage[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 296 | extern const char kExtensionsSubPage[]; |
| 297 | extern const char kHandlerSettingsSubPage[]; |
| 298 | extern const char kImportDataSubPage[]; |
| 299 | extern const char kLanguageOptionsSubPage[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 300 | extern const char kManagedUserSettingsSubPage[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 301 | extern const char kManageProfileSubPage[]; |
| 302 | extern const char kPasswordManagerSubPage[]; |
| 303 | extern const char kSearchEnginesSubPage[]; |
| 304 | extern const char kSearchSubPage[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 305 | extern const char kSearchUsersSubPage[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 306 | extern const char kSyncSetupSubPage[]; |
| 307 | #if defined(OS_CHROMEOS) |
| 308 | extern const char kInternetOptionsSubPage[]; |
| 309 | extern const char kBluetoothAddDeviceSubPage[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 310 | extern const char kChangeProfilePictureSubPage[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 311 | #endif |
| 312 | |
| 313 | // Extensions sub pages. |
| 314 | extern const char kExtensionConfigureCommandsSubPage[]; |
| 315 | |
| 316 | // URLs used to indicate that an extension resource load request |
| 317 | // was invalid. |
| 318 | extern const char kExtensionInvalidRequestURL[]; |
| 319 | extern const char kExtensionResourceInvalidRequestURL[]; |
| 320 | |
| 321 | extern const char kSyncGoogleDashboardURL[]; |
| 322 | |
| 323 | // "Learn more" URL for the auto password generation. |
| 324 | extern const char kAutoPasswordGenerationLearnMoreURL[]; |
| 325 | |
| 326 | extern const char kPasswordManagerLearnMoreURL[]; |
| 327 | |
| 328 | // General help links for Chrome, opened using various actions. |
| 329 | extern const char kChromeHelpViaKeyboardURL[]; |
| 330 | extern const char kChromeHelpViaMenuURL[]; |
| 331 | extern const char kChromeHelpViaWebUIURL[]; |
| 332 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 333 | #if defined(OS_CHROMEOS) |
| 334 | // Accessibility help link for Chrome. |
| 335 | extern const char kChromeAccessibilityHelpURL[]; |
| 336 | #endif |
| 337 | |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 338 | #if defined (ENABLE_ONE_CLICK_SIGNIN) |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 339 | // "Learn more" URL for the one click signin infobar. |
| 340 | extern const char kChromeSyncLearnMoreURL[]; |
| 341 | |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 342 | // "Learn more" URL for the "Sign in with a different account" confirmation |
| 343 | // dialog. |
| 344 | extern const char kChromeSyncMergeTroubleshootingURL[]; |
| 345 | #endif |
| 346 | |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 347 | // "Learn more" URL for the enterprise sign-in confirmation dialog. |
| 348 | extern const char kChromeEnterpriseSignInLearnMoreURL[]; |
| 349 | |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 350 | // "Learn more" URL for resetting profile preferences. |
| 351 | extern const char kResetProfileSettingsLearnMoreURL[]; |
| 352 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 353 | // Management URL for the supervised users. |
| 354 | extern const char kSupervisedUserManagementURL[]; |
| 355 | |
| 356 | // Management URL for the supervised users - version without scheme, used |
| 357 | // for display. |
| 358 | extern const char kSupervisedUserManagementDisplayURL[]; |
| 359 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 360 | // Help URL for the settings page's search feature. |
| 361 | extern const char kSettingsSearchHelpURL[]; |
| 362 | |
| 363 | // "About" URL for the translate bar's options menu. |
| 364 | extern const char kAboutGoogleTranslateURL[]; |
| 365 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 366 | // Help URL for the Omnibox setting. |
| 367 | extern const char kOmniboxLearnMoreURL[]; |
| 368 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 369 | // "What do these mean?" URL for the Page Info bubble. |
| 370 | extern const char kPageInfoHelpCenterURL[]; |
| 371 | |
| 372 | // "Learn more" URL for "Aw snap" page. |
| 373 | extern const char kCrashReasonURL[]; |
| 374 | |
| 375 | // "Learn more" URL for killed tab page. |
| 376 | extern const char kKillReasonURL[]; |
| 377 | |
| 378 | // "Learn more" URL for the Privacy section under Options. |
| 379 | extern const char kPrivacyLearnMoreURL[]; |
| 380 | |
| 381 | // "Learn more" URL for the "Do not track" setting in the privacy section. |
| 382 | extern const char kDoNotTrackLearnMoreURL[]; |
| 383 | |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame^] | 384 | #if defined(OS_CHROMEOS) |
| 385 | // "Learn more" URL for the attestation of content protection dialog / setting. |
| 386 | // This URL is currently ChromeOS only. |
| 387 | extern const char kAttestationForContentProtectionLearnMoreURL[]; |
| 388 | #endif |
| 389 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 390 | // The URL for the Chromium project used in the About dialog. |
| 391 | extern const char kChromiumProjectURL[]; |
| 392 | |
| 393 | // The URL for the "Learn more" page for the usage/crash reporting option in the |
| 394 | // first run dialog. |
| 395 | extern const char kLearnMoreReportingURL[]; |
| 396 | |
| 397 | // The URL for the "Learn more" page for the outdated plugin infobar. |
| 398 | extern const char kOutdatedPluginLearnMoreURL[]; |
| 399 | |
| 400 | // The URL for the "Learn more" page for the blocked plugin infobar. |
| 401 | extern const char kBlockedPluginLearnMoreURL[]; |
| 402 | |
| 403 | // The URL for the "About Voice Recognition" menu item. |
| 404 | extern const char kSpeechInputAboutURL[]; |
| 405 | |
| 406 | // The URL for the "Learn more" page for register protocol handler infobars. |
| 407 | extern const char kLearnMoreRegisterProtocolHandlerURL[]; |
| 408 | |
| 409 | // The URL for the "Learn more" page for sync setup on the personal stuff page. |
| 410 | extern const char kSyncLearnMoreURL[]; |
| 411 | |
| 412 | // The URL for the "Learn more" page for download scanning. |
| 413 | extern const char kDownloadScanningLearnMoreURL[]; |
| 414 | |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 415 | // The URL for the "Learn more" page for downloads flagged as potentially |
| 416 | // unwanted by the SafeBrowsing service. |
| 417 | extern const char kDownloadPotentiallyUnwantedLearnMoreURL[]; |
| 418 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 419 | // The URL for the "Learn more" page for interrupted downloads. |
| 420 | extern const char kDownloadInterruptedLearnMoreURL[]; |
| 421 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 422 | // The URL for the "Learn more" page on the sync setup dialog, when syncing |
| 423 | // everything. |
| 424 | extern const char kSyncEverythingLearnMoreURL[]; |
| 425 | |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 426 | // The URL for information on how to use the app launcher. |
| 427 | extern const char kAppLauncherHelpURL[]; |
| 428 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 429 | // The URL for the "Learn more" page on sync encryption. |
| 430 | extern const char kSyncEncryptionHelpURL[]; |
| 431 | |
| 432 | // The URL for the "Learn more" link when there is a sync error. |
| 433 | extern const char kSyncErrorsHelpURL[]; |
| 434 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 435 | // The URL for the help article explaining sideload wipeout in more details. |
| 436 | extern const char kSideloadWipeoutHelpURL[]; |
| 437 | |
| 438 | #if defined(OS_CHROMEOS) |
| 439 | // The URL for the "Learn more" link for natural scrolling on ChromeOS. |
| 440 | extern const char kNaturalScrollHelpURL[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 441 | |
| 442 | // The URL for the Learn More page about enterprise enrolled devices. |
| 443 | extern const char kLearnMoreEnterpriseURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 444 | #endif |
| 445 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 446 | extern const char kNotificationsHelpURL[]; |
| 447 | |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 448 | // Gets the hosts/domains that are shown in chrome://chrome-urls. |
| 449 | extern const char* const kChromeHostURLs[]; |
| 450 | extern const size_t kNumberOfChromeHostURLs; |
| 451 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 452 | // "Debug" pages which are dangerous and not for general consumption. |
| 453 | extern const char* const kChromeDebugURLs[]; |
| 454 | extern const int kNumberOfChromeDebugURLs; |
| 455 | |
| 456 | // Canonical schemes you can use as input to GURL.SchemeIs(). |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 457 | extern const char kExtensionResourceScheme[]; |
| 458 | |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 459 | // The chrome-native: scheme is used show pages rendered with platform specific |
| 460 | // widgets instead of using HTML. |
| 461 | extern const char kChromeNativeScheme[]; |
| 462 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 463 | // The chrome-search: scheme is served by the same backend as chrome:. However, |
| 464 | // only specific URLDataSources are enabled to serve requests via the |
| 465 | // chrome-search: scheme. See |InstantIOContext::ShouldServiceRequest| and its |
| 466 | // callers for details. Note that WebUIBindings should never be granted to |
| 467 | // chrome-search: pages. chrome-search: pages are displayable but not readable |
| 468 | // by external search providers (that are rendered by Instant renderer |
| 469 | // processes), and neither displayable nor readable by normal (non-Instant) web |
| 470 | // pages. To summarize, a non-Instant process, when trying to access |
| 471 | // 'chrome-search://something', will bump up against the following: |
| 472 | // |
| 473 | // 1. Renderer: The display-isolated check in WebKit will deny the request, |
| 474 | // 2. Browser: Assuming they got by #1, the scheme checks in |
| 475 | // URLDataSource::ShouldServiceRequest will deny the request, |
| 476 | // 3. Browser: for specific sub-classes of URLDataSource, like ThemeSource |
| 477 | // there are additional Instant-PID checks that make sure the request is |
| 478 | // coming from a blessed Instant process, and deny the request. |
| 479 | extern const char kChromeSearchScheme[]; |
| 480 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 481 | // Pages under chrome-search. |
| 482 | extern const char kChromeSearchLocalNtpHost[]; |
| 483 | extern const char kChromeSearchLocalNtpUrl[]; |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 484 | extern const char kChromeSearchOnlineNtpHost[]; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 485 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 486 | // Host and URL for most visited iframes used on the Instant Extended NTP. |
| 487 | extern const char kChromeSearchMostVisitedHost[]; |
| 488 | extern const char kChromeSearchMostVisitedUrl[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 489 | |
| 490 | #if defined(OS_CHROMEOS) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 491 | extern const char kCrosScheme[]; |
| 492 | extern const char kDriveScheme[]; |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 493 | #endif |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 494 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 495 | // "Learn more" URL for the Cloud Print section under Options. |
| 496 | extern const char kCloudPrintLearnMoreURL[]; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 497 | |
| 498 | // Parameters that get appended to force SafeSearch. |
| 499 | extern const char kSafeSearchSafeParameter[]; |
| 500 | extern const char kSafeSearchSsuiParameter[]; |
| 501 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 502 | // The URL for the "Learn more" link in the media access infobar. |
| 503 | extern const char kMediaAccessLearnMoreUrl[]; |
| 504 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 505 | } // namespace chrome |
| 506 | |
| 507 | #endif // CHROME_COMMON_URL_CONSTANTS_H_ |