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.
5 // Contains constants for known URLs and portions thereof.
7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_
8 #define CHROME_COMMON_URL_CONSTANTS_H_
13 #include "build/build_config.h"
14 #include "content/public/common/url_constants.h"
18 // chrome: URLs (including schemes). Should be kept in sync with the
20 extern const char kChromeUIAboutURL
[];
21 extern const char kChromeUIAppsURL
[];
22 extern const char kChromeUIAppListStartPageURL
[];
23 extern const char kChromeUIBookmarksURL
[];
24 extern const char kChromeUICertificateViewerURL
[];
25 extern const char kChromeUICertificateViewerDialogURL
[];
26 extern const char kChromeUIChromeSigninURL
[];
27 extern const char kChromeUIChromeURLsURL
[];
28 extern const char kChromeUICloudPrintResourcesURL
[];
29 extern const char kChromeUIComponentsURL
[];
30 extern const char kChromeUIConflictsURL
[];
31 extern const char kChromeUIConstrainedHTMLTestURL
[];
32 extern const char kChromeUICrashesURL
[];
33 extern const char kChromeUICreditsURL
[];
34 extern const char kChromeUIDevicesURL
[];
35 extern const char kChromeUIDevToolsURL
[];
36 extern const char kChromeUIDomainReliabilityInternalsURL
[];
37 extern const char kChromeUIDownloadsURL
[];
38 extern const char kChromeUIExtensionIconURL
[];
39 extern const char kChromeUIExtensionsFrameURL
[];
40 extern const char kChromeUIExtensionsURL
[];
41 extern const char kChromeUIFallbackIconURL
[];
42 extern const char kChromeUIFaviconURL
[];
43 extern const char kChromeUIFlagsURL
[];
44 extern const char kChromeUIFlashURL
[];
45 extern const char kChromeUIGCMInternalsURL
[];
46 extern const char kChromeUIHelpFrameURL
[];
47 extern const char kChromeUIHistoryURL
[];
48 extern const char kChromeUIHistoryFrameURL
[];
49 extern const char kChromeUIIdentityInternalsURL
[];
50 extern const char kChromeUIInspectURL
[];
51 extern const char kChromeUIInstantURL
[];
52 extern const char kChromeUIInterstitialURL
[];
53 extern const char kChromeUIInvalidationsURL
[];
54 extern const char kChromeUILargeIconURL
[];
55 extern const char kChromeUIMemoryRedirectURL
[];
56 extern const char kChromeUIMemoryURL
[];
57 extern const char kChromeUINaClURL
[];
58 extern const char kChromeUINetInternalsURL
[];
59 extern const char kChromeUINewProfileURL
[];
60 extern const char kChromeUINewTabURL
[];
61 extern const char kChromeUIOmniboxURL
[];
62 extern const char kChromeUIPasswordManagerInternalsHost
[];
63 extern const char kChromeUIPluginsURL
[];
64 extern const char kChromeUIPolicyURL
[];
65 extern const char kChromeUIProfileSigninConfirmationURL
[];
66 extern const char kChromeUIUserManagerURL
[];
67 extern const char kChromeUIPrintURL
[];
68 extern const char kChromeUIQuitURL
[];
69 extern const char kChromeUIRestartURL
[];
70 extern const char kChromeUIMdSettingsURL
[];
71 extern const char kChromeUISettingsURL
[];
72 extern const char kChromeUIContentSettingsURL
[];
73 extern const char kChromeUISettingsFrameURL
[];
74 extern const char kChromeUISuggestionsURL
[];
75 extern const char kChromeUISuggestionsInternalsURL
[];
76 extern const char kChromeUISupervisedUserPassphrasePageURL
[];
77 extern const char kChromeUITermsURL
[];
78 extern const char kChromeUIThemeURL
[];
79 extern const char kChromeUIThumbnailURL
[];
80 extern const char kChromeUIThumbnailListURL
[];
81 extern const char kChromeUIUberURL
[];
82 extern const char kChromeUIUberFrameURL
[];
83 extern const char kChromeUIUserActionsURL
[];
84 extern const char kChromeUIVersionURL
[];
85 extern const char kChromeUIVoiceSearchURL
[];
87 #if defined(OS_ANDROID)
88 extern const char kChromeUIContextualSearchPromoURL
[];
89 extern const char kChromeUINativeScheme
[];
90 extern const char kChromeUINativeNewTabURL
[];
91 extern const char kChromeUINativeBookmarksURL
[];
92 extern const char kChromeUINativeRecentTabsURL
[];
95 #if defined(OS_CHROMEOS)
96 extern const char kChromeUIBluetoothPairingURL
[];
97 extern const char kChromeUICertificateManagerDialogURL
[];
98 extern const char kChromeUIChooseMobileNetworkURL
[];
99 extern const char kChromeUIDiscardsURL
[];
100 extern const char kChromeUIFirstRunURL
[];
101 extern const char kChromeUIImageBurnerURL
[];
102 extern const char kChromeUIKeyboardOverlayURL
[];
103 extern const char kChromeUIMobileSetupURL
[];
104 extern const char kChromeUINfcDebugURL
[];
105 extern const char kChromeUIOobeURL
[];
106 extern const char kChromeUIOSCreditsURL
[];
107 extern const char kChromeUIProxySettingsURL
[];
108 extern const char kChromeUISalsaURL
[];
109 extern const char kChromeUIScreenlockIconURL
[];
110 extern const char kChromeUISetTimeURL
[];
111 extern const char kChromeUISimUnlockURL
[];
112 extern const char kChromeUISlowURL
[];
113 extern const char kChromeUISystemInfoURL
[];
114 extern const char kChromeUITermsOemURL
[];
115 extern const char kChromeUIUserImageURL
[];
116 #endif // defined(OS_CHROMEOS)
119 extern const char kChromeUIMetroFlowURL
[];
122 #if defined(USE_AURA)
123 extern const char kChromeUIGestureConfigURL
[];
124 extern const char kChromeUIGestureConfigHost
[];
127 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
128 extern const char kChromeUITabModalConfirmDialogURL
[];
131 #if !defined(OS_ANDROID) && !defined(OS_IOS)
132 extern const char kChromeUICopresenceURL
[];
133 extern const char kChromeUICopresenceHost
[];
136 #if defined(ENABLE_WEBRTC)
137 extern const char kChromeUIWebRtcLogsURL
[];
140 #if defined(ENABLE_MEDIA_ROUTER)
141 extern const char kChromeUIMediaRouterURL
[];
144 // chrome components of URLs. Should be kept in sync with the full URLs above.
145 extern const char kChromeUIAboutHost
[];
146 extern const char kChromeUIAboutPageFrameHost
[];
147 extern const char kChromeUIBlankHost
[];
148 extern const char kChromeUIAppLauncherPageHost
[];
149 extern const char kChromeUIAppListStartPageHost
[];
150 extern const char kChromeUIBookmarksHost
[];
151 extern const char kChromeUICacheHost
[];
152 extern const char kChromeUICertificateViewerHost
[];
153 extern const char kChromeUICertificateViewerDialogHost
[];
154 extern const char kChromeUIChromeSigninHost
[];
155 extern const char kChromeUIChromeURLsHost
[];
156 extern const char kChromeUICloudPrintResourcesHost
[];
157 extern const char kChromeUICloudPrintSetupHost
[];
158 extern const char kChromeUIConflictsHost
[];
159 extern const char kChromeUIConstrainedHTMLTestHost
[];
160 extern const char kChromeUICrashesHost
[];
161 extern const char kChromeUICrashHost
[];
162 extern const char kChromeUICreditsHost
[];
163 extern const char kChromeUIDefaultHost
[];
164 extern const char kChromeUIDeviceLogHost
[];
165 extern const char kChromeUIDevicesHost
[];
166 extern const char kChromeUIDevToolsHost
[];
167 extern const char kChromeUIDevToolsBundledPath
[];
168 extern const char kChromeUIDevToolsRemotePath
[];
169 extern const char kChromeUIDNSHost
[];
170 extern const char kChromeUIDomainReliabilityInternalsHost
[];
171 extern const char kChromeUIDownloadsHost
[];
172 extern const char kChromeUIDriveInternalsHost
[];
173 extern const char kChromeUIExtensionIconHost
[];
174 extern const char kChromeUIExtensionsFrameHost
[];
175 extern const char kChromeUIExtensionsHost
[];
176 extern const char kChromeUIFallbackIconHost
[];
177 extern const char kChromeUIFaviconHost
[];
178 extern const char kChromeUIFlagsHost
[];
179 extern const char kChromeUIFlashHost
[];
180 extern const char kChromeUIGCMInternalsHost
[];
181 extern const char kChromeUIHelpFrameHost
[];
182 extern const char kChromeUIHelpHost
[];
183 extern const char kChromeUIHangHost
[];
184 extern const char kChromeUIHistoryHost
[];
185 extern const char kChromeUIHistoryFrameHost
[];
186 extern const char kChromeUIIdentityInternalsHost
[];
187 extern const char kChromeUIInspectHost
[];
188 extern const char kChromeUIInstantHost
[];
189 extern const char kChromeUIInterstitialHost
[];
190 extern const char kChromeUIInvalidationsHost
[];
191 extern const char kChromeUIKillHost
[];
192 extern const char kChromeUILargeIconHost
[];
193 extern const char kChromeUILocalStateHost
[];
194 extern const char kChromeUIMemoryHost
[];
195 extern const char kChromeUIMemoryInternalsHost
[];
196 extern const char kChromeUIMemoryRedirectHost
[];
197 extern const char kChromeUIMdSettingsHost
[];
198 extern const char kChromeUINaClHost
[];
199 extern const char kChromeUINetExportHost
[];
200 extern const char kChromeUINetInternalsHost
[];
201 extern const char kChromeUINewTabHost
[];
202 extern const char kChromeUIOmniboxHost
[];
203 extern const char kChromeUIPluginsHost
[];
204 extern const char kChromeUIComponentsHost
[];
205 extern const char kChromeUIPolicyHost
[];
206 extern const char kChromeUIProfileSigninConfirmationHost
[];
207 extern const char kChromeUIProvidedFileSystemsHost
[];
208 extern const char kChromeUIUserManagerHost
[];
209 extern const char kChromeUIPredictorsHost
[];
210 extern const char kChromeUIProfilerHost
[];
211 extern const char kChromeUIQuotaInternalsHost
[];
212 extern const char kChromeUIQuitHost
[];
213 extern const char kChromeUIRestartHost
[];
214 extern const char kChromeUISettingsHost
[];
215 extern const char kChromeUISettingsFrameHost
[];
216 extern const char kChromeUIShorthangHost
[];
217 extern const char kChromeUISignInInternalsHost
[];
218 extern const char kChromeUISuggestionsHost
[];
219 extern const char kChromeUISuggestionsInternalsHost
[];
220 extern const char kChromeUISupervisedUserPassphrasePageHost
[];
221 extern const char kChromeUISyncHost
[];
222 extern const char kChromeUISyncFileSystemInternalsHost
[];
223 extern const char kChromeUISyncInternalsHost
[];
224 extern const char kChromeUISyncResourcesHost
[];
225 extern const char kChromeUISystemInfoHost
[];
226 extern const char kChromeUITermsHost
[];
227 extern const char kChromeUIThemeHost
[];
228 extern const char kChromeUIThumbnailHost
[];
229 extern const char kChromeUIThumbnailHost2
[];
230 extern const char kChromeUIThumbnailListHost
[];
231 extern const char kChromeUITouchIconHost
[];
232 extern const char kChromeUITranslateInternalsHost
[];
233 extern const char kChromeUIUberFrameHost
[];
234 extern const char kChromeUIUberHost
[];
235 extern const char kChromeUIUserActionsHost
[];
236 extern const char kChromeUIVersionHost
[];
237 extern const char kChromeUIVoiceSearchHost
[];
238 extern const char kChromeUIWebRTCDeviceProviderHost
[];
239 extern const char kChromeUIWorkersHost
[];
241 extern const char kChromeUIThemePath
[];
243 #if defined(ENABLE_PRINT_PREVIEW)
244 extern const char kChromeUIPrintHost
[];
245 #endif // ENABLE_PRINT_PREVIEW
247 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
248 extern const char kChromeUILinuxProxyConfigHost
[];
249 extern const char kChromeUISandboxHost
[];
252 #if defined(OS_ANDROID)
253 extern const char kChromeUIContextualSearchPromoHost
[];
256 #if defined(OS_CHROMEOS)
257 extern const char kChromeUIActivationMessageHost
[];
258 extern const char kChromeUIAppLaunchHost
[];
259 extern const char kChromeUIBluetoothPairingHost
[];
260 extern const char kChromeUICertificateManagerHost
[];
261 extern const char kChromeUIChooseMobileNetworkHost
[];
262 extern const char kChromeUICryptohomeHost
[];
263 extern const char kChromeUIDiscardsHost
[];
264 extern const char kChromeUIFirstRunHost
[];
265 extern const char kChromeUIImageBurnerHost
[];
266 extern const char kChromeUIKeyboardOverlayHost
[];
267 extern const char kChromeUILoginContainerHost
[];
268 extern const char kChromeUILoginHost
[];
269 extern const char kChromeUIMobileSetupHost
[];
270 extern const char kChromeUINetworkHost
[];
271 extern const char kChromeUINfcDebugHost
[];
272 extern const char kChromeUIOobeHost
[];
273 extern const char kChromeUIOobeMdHost
[];
274 extern const char kChromeUIOSCreditsHost
[];
275 extern const char kChromeUIPowerHost
[];
276 extern const char kChromeUIProxySettingsHost
[];
277 extern const char kChromeUIRotateHost
[];
278 extern const char kChromeUISalsaHost
[];
279 extern const char kChromeUIScreenlockIconHost
[];
280 extern const char kChromeUISetTimeHost
[];
281 extern const char kChromeUISimUnlockHost
[];
282 extern const char kChromeUISlowHost
[];
283 extern const char kChromeUISlowTraceHost
[];
284 extern const char kChromeUIUserImageHost
[];
286 extern const char kEULAPathFormat
[];
287 extern const char kOemEulaURLPath
[];
288 extern const char kOnlineEulaURLPath
[];
290 extern const char kChromeOSCreditsPath
[];
292 extern const char kChromeOSAssetHost
[];
293 extern const char kChromeOSAssetPath
[];
294 #endif // defined(OS_CHROMEOS)
297 extern const char kChromeUIMetroFlowHost
[];
300 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
301 extern const char kChromeUITabModalConfirmDialogHost
[];
304 #if defined(ENABLE_WEBRTC)
305 extern const char kChromeUIWebRtcLogsHost
[];
308 #if defined(ENABLE_MEDIA_ROUTER)
309 extern const char kChromeUIMediaRouterHost
[];
312 // Options sub-pages.
313 extern const char kAutofillSubPage
[];
314 extern const char kClearBrowserDataSubPage
[];
315 extern const char kContentSettingsExceptionsSubPage
[];
316 extern const char kContentSettingsSubPage
[];
317 extern const char kCreateProfileSubPage
[];
318 extern const char kExtensionsSubPage
[];
319 extern const char kHandlerSettingsSubPage
[];
320 extern const char kImportDataSubPage
[];
321 extern const char kLanguageOptionsSubPage
[];
322 extern const char kManageProfileSubPage
[];
323 extern const char kPasswordManagerSubPage
[];
324 extern const char kResetProfileSettingsSubPage
[];
325 extern const char kSearchEnginesSubPage
[];
326 extern const char kSearchSubPage
[];
327 extern const char kSearchUsersSubPage
[];
328 extern const char kSyncSetupSubPage
[];
329 #if defined(OS_CHROMEOS)
330 extern const char kInternetOptionsSubPage
[];
331 extern const char kChangeProfilePictureSubPage
[];
334 // Extensions sub pages.
335 extern const char kExtensionConfigureCommandsSubPage
[];
337 // URLs used to indicate that an extension resource load request
339 extern const char kExtensionInvalidRequestURL
[];
340 extern const char kExtensionResourceInvalidRequestURL
[];
342 extern const char kSyncGoogleDashboardURL
[];
344 extern const char kPasswordManagerLearnMoreURL
[];
345 extern const char kPasswordManagerAccountDashboardURL
[];
347 // "Learn more" URL for the Settings API, NTP bubble and other settings bubbles
348 // showing which extension is controlling them.
349 extern const char kExtensionControlledSettingLearnMoreURL
[];
351 // General help links for Chrome, opened using various actions.
352 extern const char kChromeHelpViaKeyboardURL
[];
353 extern const char kChromeHelpViaMenuURL
[];
354 extern const char kChromeHelpViaWebUIURL
[];
356 #if defined(OS_CHROMEOS)
357 // Accessibility help link for Chrome.
358 extern const char kChromeAccessibilityHelpURL
[];
359 // Accessibility settings link for Chrome.
360 extern const char kChromeAccessibilitySettingsURL
[];
363 #if defined (ENABLE_ONE_CLICK_SIGNIN)
364 // "Learn more" URL for the one click signin infobar.
365 extern const char kChromeSyncLearnMoreURL
[];
367 // "Learn more" URL for the "Sign in with a different account" confirmation
369 extern const char kChromeSyncMergeTroubleshootingURL
[];
372 #if defined(OS_MACOSX)
373 // "Learn more" URL for the enterprise sign-in confirmation dialog.
374 extern const char kChromeEnterpriseSignInLearnMoreURL
[];
377 // "Learn more" URL for resetting profile preferences.
378 extern const char kResetProfileSettingsLearnMoreURL
[];
380 // "Learn more" URL for when profile settings are automatically reset.
381 extern const char kAutomaticSettingsResetLearnMoreURL
[];
383 // Management URL for the supervised users.
384 extern const char kSupervisedUserManagementURL
[];
386 // Management URL for the supervised users - version without scheme, used
388 extern const char kSupervisedUserManagementDisplayURL
[];
390 // Help URL for the settings page's search feature.
391 extern const char kSettingsSearchHelpURL
[];
393 // Help URL for the Omnibox setting.
394 extern const char kOmniboxLearnMoreURL
[];
396 // "What do these mean?" URL for the Page Info bubble.
397 extern const char kPageInfoHelpCenterURL
[];
399 // "Learn more" URL for "Aw snap" page.
400 extern const char kCrashReasonURL
[];
402 // "Learn more" URL for killed tab page.
403 extern const char kKillReasonURL
[];
405 // "Learn more" URL for the Privacy section under Options.
406 extern const char kPrivacyLearnMoreURL
[];
408 // "Learn more" URL for the "Do not track" setting in the privacy section.
409 extern const char kDoNotTrackLearnMoreURL
[];
411 #if defined(OS_CHROMEOS)
412 // "Learn more" URL for the attestation of content protection setting.
413 extern const char kAttestationForContentProtectionLearnMoreURL
[];
416 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
417 // "Learn more" URL for the enhanced playback notification dialog.
418 extern const char kEnhancedPlaybackNotificationLearnMoreURL
[];
421 // The URL for the Chromium project used in the About dialog.
422 extern const char kChromiumProjectURL
[];
424 // The URL for the "Learn more" page for the usage/crash reporting option in the
426 extern const char kLearnMoreReportingURL
[];
428 #if defined(ENABLE_PLUGIN_INSTALLATION)
429 // The URL for the "Learn more" page for the outdated plugin infobar.
430 extern const char kOutdatedPluginLearnMoreURL
[];
433 // The URL for the "Learn more" page for the blocked plugin infobar.
434 extern const char kBlockedPluginLearnMoreURL
[];
436 // The URL for the "Learn more" page for hotword search voice trigger.
437 extern const char kHotwordLearnMoreURL
[];
439 // The URL for managing a user's audio history.
440 extern const char kManageAudioHistoryURL
[];
442 // The URL for the "Learn more" page for register protocol handler infobars.
443 extern const char kLearnMoreRegisterProtocolHandlerURL
[];
445 // The URL for the "Learn more" page for sync setup on the personal stuff page.
446 extern const char kSyncLearnMoreURL
[];
448 // The URL for the "Learn more" page for download scanning.
449 extern const char kDownloadScanningLearnMoreURL
[];
451 // The URL for the "Learn more" page for interrupted downloads.
452 extern const char kDownloadInterruptedLearnMoreURL
[];
454 // The URL for the "Learn more" page on the sync setup dialog, when syncing
456 extern const char kSyncEverythingLearnMoreURL
[];
458 // The URL for information on how to use the app launcher.
459 extern const char kAppLauncherHelpURL
[];
461 // The URL for the "Learn more" page on sync encryption.
462 extern const char kSyncEncryptionHelpURL
[];
464 // The URL for the "Learn more" link when there is a sync error.
465 extern const char kSyncErrorsHelpURL
[];
467 #if defined(OS_CHROMEOS)
468 // The URL for the "Learn more" link for natural scrolling on ChromeOS.
469 extern const char kNaturalScrollHelpURL
[];
471 // The URL for the Learn More page about enterprise enrolled devices.
472 extern const char kLearnMoreEnterpriseURL
[];
475 // The URL for the Learn More link of the non-CWS bubble.
476 extern const char kRemoveNonCWSExtensionURL
[];
479 extern const char kNotificationsHelpURL
[];
482 // The Welcome Notification More Info URL.
483 extern const char kNotificationWelcomeLearnMoreURL
[];
485 // Gets the hosts/domains that are shown in chrome://chrome-urls.
486 extern const char* const kChromeHostURLs
[];
487 extern const size_t kNumberOfChromeHostURLs
;
489 // "Debug" pages which are dangerous and not for general consumption.
490 extern const char* const kChromeDebugURLs
[];
491 extern const int kNumberOfChromeDebugURLs
;
493 // The chrome-native: scheme is used show pages rendered with platform specific
494 // widgets instead of using HTML.
495 extern const char kChromeNativeScheme
[];
497 // The chrome-search: scheme is served by the same backend as chrome:. However,
498 // only specific URLDataSources are enabled to serve requests via the
499 // chrome-search: scheme. See |InstantIOContext::ShouldServiceRequest| and its
500 // callers for details. Note that WebUIBindings should never be granted to
501 // chrome-search: pages. chrome-search: pages are displayable but not readable
502 // by external search providers (that are rendered by Instant renderer
503 // processes), and neither displayable nor readable by normal (non-Instant) web
504 // pages. To summarize, a non-Instant process, when trying to access
505 // 'chrome-search://something', will bump up against the following:
507 // 1. Renderer: The display-isolated check in WebKit will deny the request,
508 // 2. Browser: Assuming they got by #1, the scheme checks in
509 // URLDataSource::ShouldServiceRequest will deny the request,
510 // 3. Browser: for specific sub-classes of URLDataSource, like ThemeSource
511 // there are additional Instant-PID checks that make sure the request is
512 // coming from a blessed Instant process, and deny the request.
513 extern const char kChromeSearchScheme
[];
515 // Pages under chrome-search.
516 extern const char kChromeSearchLocalNtpHost
[];
517 extern const char kChromeSearchLocalNtpUrl
[];
518 extern const char kChromeSearchRemoteNtpHost
[];
520 // Host and URL for most visited iframes used on the Instant Extended NTP.
521 extern const char kChromeSearchMostVisitedHost
[];
522 extern const char kChromeSearchMostVisitedUrl
[];
524 #if defined(OS_CHROMEOS)
525 extern const char kCrosScheme
[];
528 // "Learn more" URL for the Cloud Print section under Options.
529 extern const char kCloudPrintLearnMoreURL
[];
531 // "Learn more" URL for the Cloud Print Preview No Destinations Promotion.
532 extern const char kCloudPrintNoDestinationsLearnMoreURL
[];
534 // Parameters that get appended to force SafeSearch.
535 extern const char kSafeSearchSafeParameter
[];
536 extern const char kSafeSearchSsuiParameter
[];
538 // The URL for the "Learn more" link in the media access infobar.
539 extern const char kMediaAccessLearnMoreUrl
[];
541 // The URL for the "Learn more" link in the language settings.
542 extern const char kLanguageSettingsLearnMoreUrl
[];
544 #if defined(OS_MACOSX)
545 // The URL for the 32-bit Mac deprecation help center article
546 extern const char kMac32BitDeprecationURL
[];
549 // The URL for the "Learn more" link the the Easy Unlock settings.
550 extern const char kEasyUnlockLearnMoreUrl
[];
552 } // namespace chrome
554 #endif // CHROME_COMMON_URL_CONSTANTS_H_