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