Remove INJECT_EVENTS permissions from test APKs.
[chromium-blink-merge.git] / chrome / common / url_constants.h
blob196cabd9dc4adc9fc70cf32b1a87c46c1074bf23
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 kChromeUICertificateViewerDialogURL[];
26 extern const char kChromeUIChromeSigninURL[];
27 extern const char kChromeUIChromeURLsURL[];
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 kChromeUIDomainReliabilityInternalsURL[];
36 extern const char kChromeUIDownloadsURL[];
37 extern const char kChromeUIExtensionIconURL[];
38 extern const char kChromeUIExtensionsFrameURL[];
39 extern const char kChromeUIExtensionsURL[];
40 extern const char kChromeUIFallbackIconURL[];
41 extern const char kChromeUIFaviconURL[];
42 extern const char kChromeUIFlagsURL[];
43 extern const char kChromeUIFlashURL[];
44 extern const char kChromeUIGCMInternalsURL[];
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 kChromeUIInterstitialURL[];
52 extern const char kChromeUIInvalidationsURL[];
53 extern const char kChromeUILargeIconURL[];
54 extern const char kChromeUIMemoryRedirectURL[];
55 extern const char kChromeUIMemoryURL[];
56 extern const char kChromeUINaClURL[];
57 extern const char kChromeUINetInternalsURL[];
58 extern const char kChromeUINewProfileURL[];
59 extern const char kChromeUINewTabURL[];
60 extern const char kChromeUIOmniboxURL[];
61 extern const char kChromeUIPasswordManagerInternalsHost[];
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 kChromeUIMdSettingsURL[];
70 extern const char kChromeUISettingsURL[];
71 extern const char kChromeUIContentSettingsURL[];
72 extern const char kChromeUISettingsFrameURL[];
73 extern const char kChromeUISuggestionsURL[];
74 extern const char kChromeUISupervisedUserPassphrasePageURL[];
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[];
83 extern const char kChromeUIVoiceSearchURL[];
85 #if defined(OS_ANDROID)
86 extern const char kChromeUIContextualSearchPromoURL[];
87 extern const char kChromeUINativeScheme[];
88 extern const char kChromeUINativeNewTabURL[];
89 extern const char kChromeUINativeBookmarksURL[];
90 extern const char kChromeUINativeRecentTabsURL[];
91 #endif
93 #if defined(OS_CHROMEOS)
94 extern const char kChromeUIBluetoothPairingURL[];
95 extern const char kChromeUICertificateManagerDialogURL[];
96 extern const char kChromeUIChooseMobileNetworkURL[];
97 extern const char kChromeUIDeviceEmulatorURL[];
98 extern const char kChromeUIDiscardsURL[];
99 extern const char kChromeUIFirstRunURL[];
100 extern const char kChromeUIImageBurnerURL[];
101 extern const char kChromeUIKeyboardOverlayURL[];
102 extern const char kChromeUIMobileSetupURL[];
103 extern const char kChromeUINfcDebugURL[];
104 extern const char kChromeUIOobeURL[];
105 extern const char kChromeUIOSCreditsURL[];
106 extern const char kChromeUIProxySettingsURL[];
107 extern const char kChromeUISalsaURL[];
108 extern const char kChromeUIScreenlockIconURL[];
109 extern const char kChromeUISetTimeURL[];
110 extern const char kChromeUISimUnlockURL[];
111 extern const char kChromeUISlowURL[];
112 extern const char kChromeUISystemInfoURL[];
113 extern const char kChromeUITermsOemURL[];
114 extern const char kChromeUIUserImageURL[];
115 #endif // defined(OS_CHROMEOS)
117 #if defined(OS_WIN)
118 extern const char kChromeUIMetroFlowURL[];
119 #endif
121 #if defined(USE_AURA)
122 extern const char kChromeUIGestureConfigURL[];
123 extern const char kChromeUIGestureConfigHost[];
124 #endif
126 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
127 extern const char kChromeUITabModalConfirmDialogURL[];
128 #endif
130 #if !defined(OS_ANDROID) && !defined(OS_IOS)
131 extern const char kChromeUICopresenceURL[];
132 extern const char kChromeUICopresenceHost[];
133 #endif
135 #if defined(ENABLE_WEBRTC)
136 extern const char kChromeUIWebRtcLogsURL[];
137 #endif
139 #if defined(ENABLE_MEDIA_ROUTER)
140 extern const char kChromeUIMediaRouterURL[];
141 #endif
143 // chrome components of URLs. Should be kept in sync with the full URLs above.
144 extern const char kChromeUIAboutHost[];
145 extern const char kChromeUIAboutPageFrameHost[];
146 extern const char kChromeUIBlankHost[];
147 extern const char kChromeUIAppLauncherPageHost[];
148 extern const char kChromeUIAppListStartPageHost[];
149 extern const char kChromeUIBookmarksHost[];
150 extern const char kChromeUICacheHost[];
151 extern const char kChromeUICertificateViewerHost[];
152 extern const char kChromeUICertificateViewerDialogHost[];
153 extern const char kChromeUIChromeSigninHost[];
154 extern const char kChromeUIChromeURLsHost[];
155 extern const char kChromeUIConflictsHost[];
156 extern const char kChromeUIConstrainedHTMLTestHost[];
157 extern const char kChromeUICrashesHost[];
158 extern const char kChromeUICrashHost[];
159 extern const char kChromeUICreditsHost[];
160 extern const char kChromeUIDefaultHost[];
161 extern const char kChromeUIDeviceLogHost[];
162 extern const char kChromeUIDevicesHost[];
163 extern const char kChromeUIDevToolsHost[];
164 extern const char kChromeUIDevToolsBundledPath[];
165 extern const char kChromeUIDevToolsRemotePath[];
166 extern const char kChromeUIDNSHost[];
167 extern const char kChromeUIDomainReliabilityInternalsHost[];
168 extern const char kChromeUIDownloadsHost[];
169 extern const char kChromeUIDriveInternalsHost[];
170 extern const char kChromeUIExtensionIconHost[];
171 extern const char kChromeUIExtensionsFrameHost[];
172 extern const char kChromeUIExtensionsHost[];
173 extern const char kChromeUIFallbackIconHost[];
174 extern const char kChromeUIFaviconHost[];
175 extern const char kChromeUIFlagsHost[];
176 extern const char kChromeUIFlashHost[];
177 extern const char kChromeUIGCMInternalsHost[];
178 extern const char kChromeUIHelpFrameHost[];
179 extern const char kChromeUIHelpHost[];
180 extern const char kChromeUIHangHost[];
181 extern const char kChromeUIHistoryHost[];
182 extern const char kChromeUIHistoryFrameHost[];
183 extern const char kChromeUIIdentityInternalsHost[];
184 extern const char kChromeUIInspectHost[];
185 extern const char kChromeUIInstantHost[];
186 extern const char kChromeUIInterstitialHost[];
187 extern const char kChromeUIInvalidationsHost[];
188 extern const char kChromeUIKillHost[];
189 extern const char kChromeUILargeIconHost[];
190 extern const char kChromeUILocalStateHost[];
191 extern const char kChromeUIMemoryHost[];
192 extern const char kChromeUIMemoryInternalsHost[];
193 extern const char kChromeUIMemoryRedirectHost[];
194 extern const char kChromeUIMdSettingsHost[];
195 extern const char kChromeUINaClHost[];
196 extern const char kChromeUINetExportHost[];
197 extern const char kChromeUINetInternalsHost[];
198 extern const char kChromeUINewTabHost[];
199 extern const char kChromeUIOmniboxHost[];
200 extern const char kChromeUIPluginsHost[];
201 extern const char kChromeUIComponentsHost[];
202 extern const char kChromeUIPolicyHost[];
203 extern const char kChromeUIProfileSigninConfirmationHost[];
204 extern const char kChromeUIUserManagerHost[];
205 extern const char kChromeUIPredictorsHost[];
206 extern const char kChromeUIProfilerHost[];
207 extern const char kChromeUIQuotaInternalsHost[];
208 extern const char kChromeUIQuitHost[];
209 extern const char kChromeUIRestartHost[];
210 extern const char kChromeUISettingsHost[];
211 extern const char kChromeUISettingsFrameHost[];
212 extern const char kChromeUIShorthangHost[];
213 extern const char kChromeUISignInInternalsHost[];
214 extern const char kChromeUISuggestionsHost[];
215 extern const char kChromeUISupervisedUserPassphrasePageHost[];
216 extern const char kChromeUISyncHost[];
217 extern const char kChromeUISyncFileSystemInternalsHost[];
218 extern const char kChromeUISyncInternalsHost[];
219 extern const char kChromeUISyncResourcesHost[];
220 extern const char kChromeUISystemInfoHost[];
221 extern const char kChromeUITermsHost[];
222 extern const char kChromeUIThemeHost[];
223 extern const char kChromeUIThumbnailHost[];
224 extern const char kChromeUIThumbnailHost2[];
225 extern const char kChromeUIThumbnailListHost[];
226 extern const char kChromeUITouchIconHost[];
227 extern const char kChromeUITranslateInternalsHost[];
228 extern const char kChromeUIUberFrameHost[];
229 extern const char kChromeUIUberHost[];
230 extern const char kChromeUIUserActionsHost[];
231 extern const char kChromeUIVersionHost[];
232 extern const char kChromeUIVoiceSearchHost[];
233 extern const char kChromeUIWebRTCDeviceProviderHost[];
234 extern const char kChromeUIWorkersHost[];
236 extern const char kChromeUIThemePath[];
238 #if defined(ENABLE_PRINT_PREVIEW)
239 extern const char kChromeUIPrintHost[];
240 #endif // ENABLE_PRINT_PREVIEW
242 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
243 extern const char kChromeUILinuxProxyConfigHost[];
244 extern const char kChromeUISandboxHost[];
245 #endif
247 #if defined(OS_ANDROID)
248 extern const char kChromeUIContextualSearchPromoHost[];
249 #endif
251 #if defined(OS_CHROMEOS)
252 extern const char kChromeUIActivationMessageHost[];
253 extern const char kChromeUIAppLaunchHost[];
254 extern const char kChromeUIBluetoothPairingHost[];
255 extern const char kChromeUICertificateManagerHost[];
256 extern const char kChromeUIChooseMobileNetworkHost[];
257 extern const char kChromeUICryptohomeHost[];
258 extern const char kChromeUIDeviceEmulatorHost[];
259 extern const char kChromeUIDiscardsHost[];
260 extern const char kChromeUIFirstRunHost[];
261 extern const char kChromeUIImageBurnerHost[];
262 extern const char kChromeUIKeyboardOverlayHost[];
263 extern const char kChromeUILoginContainerHost[];
264 extern const char kChromeUILoginHost[];
265 extern const char kChromeUIMobileSetupHost[];
266 extern const char kChromeUINetworkHost[];
267 extern const char kChromeUINfcDebugHost[];
268 extern const char kChromeUIOobeHost[];
269 extern const char kChromeUIOSCreditsHost[];
270 extern const char kChromeUIPowerHost[];
271 extern const char kChromeUIProxySettingsHost[];
272 extern const char kChromeUIRotateHost[];
273 extern const char kChromeUISalsaHost[];
274 extern const char kChromeUIScreenlockIconHost[];
275 extern const char kChromeUISetTimeHost[];
276 extern const char kChromeUISimUnlockHost[];
277 extern const char kChromeUISlowHost[];
278 extern const char kChromeUISlowTraceHost[];
279 extern const char kChromeUIUserImageHost[];
281 extern const char kEULAPathFormat[];
282 extern const char kOemEulaURLPath[];
283 extern const char kOnlineEulaURLPath[];
285 extern const char kChromeOSCreditsPath[];
287 extern const char kChromeOSAssetHost[];
288 extern const char kChromeOSAssetPath[];
289 #endif // defined(OS_CHROMEOS)
291 #if defined(OS_WIN)
292 extern const char kChromeUIMetroFlowHost[];
293 #endif
295 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
296 extern const char kChromeUITabModalConfirmDialogHost[];
297 #endif
299 #if defined(ENABLE_WEBRTC)
300 extern const char kChromeUIWebRtcLogsHost[];
301 #endif
303 #if defined(ENABLE_MEDIA_ROUTER)
304 extern const char kChromeUIMediaRouterHost[];
305 #endif
307 // Options sub-pages.
308 extern const char kAutofillSubPage[];
309 extern const char kClearBrowserDataSubPage[];
310 extern const char kContentSettingsExceptionsSubPage[];
311 extern const char kContentSettingsSubPage[];
312 extern const char kCreateProfileSubPage[];
313 extern const char kExtensionsSubPage[];
314 extern const char kHandlerSettingsSubPage[];
315 extern const char kImportDataSubPage[];
316 extern const char kLanguageOptionsSubPage[];
317 extern const char kManageProfileSubPage[];
318 extern const char kPasswordManagerSubPage[];
319 extern const char kResetProfileSettingsSubPage[];
320 extern const char kSearchEnginesSubPage[];
321 extern const char kSearchSubPage[];
322 extern const char kSearchUsersSubPage[];
323 extern const char kSyncSetupSubPage[];
324 #if defined(OS_CHROMEOS)
325 extern const char kInternetOptionsSubPage[];
326 extern const char kChangeProfilePictureSubPage[];
327 #endif
329 // Extensions sub pages.
330 extern const char kExtensionConfigureCommandsSubPage[];
332 // URLs used to indicate that an extension resource load request
333 // was invalid.
334 extern const char kExtensionInvalidRequestURL[];
335 extern const char kExtensionResourceInvalidRequestURL[];
337 extern const char kSyncGoogleDashboardURL[];
339 extern const char kPasswordManagerLearnMoreURL[];
340 extern const char kUpgradeHelpCenterBaseURL[];
341 extern const char kPasswordManagerAccountDashboardURL[];
343 // "Learn more" URL for the Settings API, NTP bubble and other settings bubbles
344 // showing which extension is controlling them.
345 extern const char kExtensionControlledSettingLearnMoreURL[];
347 // General help links for Chrome, opened using various actions.
348 extern const char kChromeHelpViaKeyboardURL[];
349 extern const char kChromeHelpViaMenuURL[];
350 extern const char kChromeHelpViaWebUIURL[];
352 #if defined(OS_CHROMEOS)
353 // Accessibility help link for Chrome.
354 extern const char kChromeAccessibilityHelpURL[];
355 // Accessibility settings link for Chrome.
356 extern const char kChromeAccessibilitySettingsURL[];
357 #endif
359 #if defined (ENABLE_ONE_CLICK_SIGNIN)
360 // "Learn more" URL for the one click signin infobar.
361 extern const char kChromeSyncLearnMoreURL[];
363 // "Learn more" URL for the "Sign in with a different account" confirmation
364 // dialog.
365 extern const char kChromeSyncMergeTroubleshootingURL[];
366 #endif
368 #if defined(OS_MACOSX)
369 // "Learn more" URL for the enterprise sign-in confirmation dialog.
370 extern const char kChromeEnterpriseSignInLearnMoreURL[];
371 #endif
373 // "Learn more" URL for resetting profile preferences.
374 extern const char kResetProfileSettingsLearnMoreURL[];
376 // "Learn more" URL for when profile settings are automatically reset.
377 extern const char kAutomaticSettingsResetLearnMoreURL[];
379 // Management URL for the supervised users.
380 extern const char kSupervisedUserManagementURL[];
382 // Management URL for the supervised users - version without scheme, used
383 // for display.
384 extern const char kSupervisedUserManagementDisplayURL[];
386 // Help URL for the settings page's search feature.
387 extern const char kSettingsSearchHelpURL[];
389 // Help URL for the Omnibox setting.
390 extern const char kOmniboxLearnMoreURL[];
392 // "What do these mean?" URL for the Page Info bubble.
393 extern const char kPageInfoHelpCenterURL[];
395 // "Learn more" URL for "Aw snap" page.
396 extern const char kCrashReasonURL[];
398 // "Learn more" URL for killed tab page.
399 extern const char kKillReasonURL[];
401 // "Learn more" URL for the Privacy section under Options.
402 extern const char kPrivacyLearnMoreURL[];
404 // "Learn more" URL for the "Do not track" setting in the privacy section.
405 extern const char kDoNotTrackLearnMoreURL[];
407 #if defined(OS_CHROMEOS)
408 // "Learn more" URL for the attestation of content protection setting.
409 extern const char kAttestationForContentProtectionLearnMoreURL[];
410 #endif
412 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
413 // "Learn more" URL for the enhanced playback notification dialog.
414 extern const char kEnhancedPlaybackNotificationLearnMoreURL[];
415 #endif
417 // The URL for the Chromium project used in the About dialog.
418 extern const char kChromiumProjectURL[];
420 // The URL for the "Learn more" page for the usage/crash reporting option in the
421 // first run dialog.
422 extern const char kLearnMoreReportingURL[];
424 #if defined(ENABLE_PLUGIN_INSTALLATION)
425 // The URL for the "Learn more" page for the outdated plugin infobar.
426 extern const char kOutdatedPluginLearnMoreURL[];
427 #endif
429 // The URL for the "Learn more" page for the blocked plugin infobar.
430 extern const char kBlockedPluginLearnMoreURL[];
432 // The URL for the "Learn more" page for hotword search voice trigger.
433 extern const char kHotwordLearnMoreURL[];
435 // The URL for managing a user's audio history.
436 extern const char kManageAudioHistoryURL[];
438 // The URL for the "Learn more" page for register protocol handler infobars.
439 extern const char kLearnMoreRegisterProtocolHandlerURL[];
441 // The URL for the "Learn more" page for sync setup on the personal stuff page.
442 extern const char kSyncLearnMoreURL[];
444 // The URL for the "Learn more" page for download scanning.
445 extern const char kDownloadScanningLearnMoreURL[];
447 // The URL for the "Learn more" page for interrupted downloads.
448 extern const char kDownloadInterruptedLearnMoreURL[];
450 // The URL for the "Learn more" page on the sync setup dialog, when syncing
451 // everything.
452 extern const char kSyncEverythingLearnMoreURL[];
454 // The URL for information on how to use the app launcher.
455 extern const char kAppLauncherHelpURL[];
457 // The URL for the "Learn more" page on sync encryption.
458 extern const char kSyncEncryptionHelpURL[];
460 // The URL for the "Learn more" link when there is a sync error.
461 extern const char kSyncErrorsHelpURL[];
463 #if defined(OS_CHROMEOS)
464 // The URL for the "Learn more" link for natural scrolling on ChromeOS.
465 extern const char kNaturalScrollHelpURL[];
467 // The URL for the Learn More page about enterprise enrolled devices.
468 extern const char kLearnMoreEnterpriseURL[];
469 #endif
471 // The URL for the Learn More link of the non-CWS bubble.
472 extern const char kRemoveNonCWSExtensionURL[];
474 #if defined(OS_WIN)
475 extern const char kNotificationsHelpURL[];
476 #endif
478 // The Welcome Notification More Info URL.
479 extern const char kNotificationWelcomeLearnMoreURL[];
481 // Gets the hosts/domains that are shown in chrome://chrome-urls.
482 extern const char* const kChromeHostURLs[];
483 extern const size_t kNumberOfChromeHostURLs;
485 // "Debug" pages which are dangerous and not for general consumption.
486 extern const char* const kChromeDebugURLs[];
487 extern const int kNumberOfChromeDebugURLs;
489 // The chrome-native: scheme is used show pages rendered with platform specific
490 // widgets instead of using HTML.
491 extern const char kChromeNativeScheme[];
493 // The chrome-search: scheme is served by the same backend as chrome:. However,
494 // only specific URLDataSources are enabled to serve requests via the
495 // chrome-search: scheme. See |InstantIOContext::ShouldServiceRequest| and its
496 // callers for details. Note that WebUIBindings should never be granted to
497 // chrome-search: pages. chrome-search: pages are displayable but not readable
498 // by external search providers (that are rendered by Instant renderer
499 // processes), and neither displayable nor readable by normal (non-Instant) web
500 // pages. To summarize, a non-Instant process, when trying to access
501 // 'chrome-search://something', will bump up against the following:
503 // 1. Renderer: The display-isolated check in WebKit will deny the request,
504 // 2. Browser: Assuming they got by #1, the scheme checks in
505 // URLDataSource::ShouldServiceRequest will deny the request,
506 // 3. Browser: for specific sub-classes of URLDataSource, like ThemeSource
507 // there are additional Instant-PID checks that make sure the request is
508 // coming from a blessed Instant process, and deny the request.
509 extern const char kChromeSearchScheme[];
511 // Pages under chrome-search.
512 extern const char kChromeSearchLocalNtpHost[];
513 extern const char kChromeSearchLocalNtpUrl[];
514 extern const char kChromeSearchRemoteNtpHost[];
516 // Host and URL for most visited iframes used on the Instant Extended NTP.
517 extern const char kChromeSearchMostVisitedHost[];
518 extern const char kChromeSearchMostVisitedUrl[];
520 #if defined(OS_CHROMEOS)
521 extern const char kCrosScheme[];
522 #endif
524 // "Learn more" URL for the Cloud Print section under Options.
525 extern const char kCloudPrintLearnMoreURL[];
527 // "Learn more" URL for the Cloud Print Preview No Destinations Promotion.
528 extern const char kCloudPrintNoDestinationsLearnMoreURL[];
530 // Parameters that get appended to force SafeSearch.
531 extern const char kSafeSearchSafeParameter[];
532 extern const char kSafeSearchSsuiParameter[];
534 // The URL for the "Learn more" link in the media access infobar.
535 extern const char kMediaAccessLearnMoreUrl[];
537 // The URL for the "Learn more" link in the language settings.
538 extern const char kLanguageSettingsLearnMoreUrl[];
540 #if defined(OS_MACOSX)
541 // The URL for the 32-bit Mac deprecation help center article
542 extern const char kMac32BitDeprecationURL[];
543 #endif
545 // The URL for the "Learn more" link the the Easy Unlock settings.
546 extern const char kEasyUnlockLearnMoreUrl[];
548 } // namespace chrome
550 #endif // CHROME_COMMON_URL_CONSTANTS_H_