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