Fix broken path in extensions/common/PRESUBMIT.py
[chromium-blink-merge.git] / chrome / common / url_constants.cc
blob72c4d6637dfba253fb49a4468e3eeab5ec1bf7d6
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 #include "chrome/common/url_constants.h"
7 #include <algorithm>
9 #include "base/basictypes.h"
10 #include "content/public/common/url_constants.h"
11 #include "url/url_util.h"
13 namespace chrome {
15 #if defined(OS_CHROMEOS)
16 const char kCrosScheme[] = "cros";
17 #endif
19 // Add Chrome UI URLs as necessary, in alphabetical order.
20 // Be sure to add the corresponding kChromeUI*Host constant below.
21 // This is a WebUI page that lists other WebUI pages.
22 const char kChromeUIAboutURL[] = "chrome://about/";
23 const char kChromeUIAppsURL[] = "chrome://apps/";
24 const char kChromeUIAppListStartPageURL[] = "chrome://app-list/";
25 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
26 const char kChromeUICertificateViewerURL[] = "chrome://view-cert/";
27 const char kChromeUICertificateViewerDialogURL[] = "chrome://view-cert-dialog/";
28 const char kChromeUIChromeSigninURL[] = "chrome://chrome-signin/";
29 const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/";
30 const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/";
31 const char kChromeUIComponentsURL[] = "chrome://components/";
32 const char kChromeUIConflictsURL[] = "chrome://conflicts/";
33 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/";
34 const char kChromeUICrashesURL[] = "chrome://crashes/";
35 const char kChromeUICreditsURL[] = "chrome://credits/";
36 const char kChromeUIDevicesURL[] = "chrome://devices/";
37 const char kChromeUIDevToolsURL[] =
38 "chrome-devtools://devtools/bundled/devtools.html";
39 const char kChromeUIDomainReliabilityInternalsURL[] =
40 "chrome://domain-reliability-internals/";
41 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
42 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/";
43 const char kChromeUIExtensionsFrameURL[] = "chrome://extensions-frame/";
44 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
45 const char kChromeUIFallbackIconURL[] = "chrome://fallback-icon/";
46 const char kChromeUIFaviconURL[] = "chrome://favicon/";
47 const char kChromeUIFlagsURL[] = "chrome://flags/";
48 const char kChromeUIFlashURL[] = "chrome://flash/";
49 const char kChromeUIGCMInternalsURL[] = "chrome://gcm-internals/";
50 const char kChromeUIHelpFrameURL[] = "chrome://help-frame/";
51 const char kChromeUIHistoryURL[] = "chrome://history/";
52 const char kChromeUIHistoryFrameURL[] = "chrome://history-frame/";
53 const char kChromeUIIdentityInternalsURL[] = "chrome://identity-internals/";
54 const char kChromeUIInspectURL[] = "chrome://inspect/";
55 const char kChromeUIInstantURL[] = "chrome://instant/";
56 const char kChromeUIInterstitialURL[] = "chrome://interstitials/";
57 const char kChromeUIInvalidationsURL[] = "chrome://invalidations/";
58 const char kChromeUILargeIconURL[] = "chrome://large-icon/";
59 const char kChromeUIMdSettingsURL[] = "chrome://md-settings/";
60 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/";
61 const char kChromeUIMemoryURL[] = "chrome://memory/";
62 const char kChromeUINaClURL[] = "chrome://nacl/";
63 const char kChromeUINetInternalsURL[] = "chrome://net-internals/";
64 const char kChromeUINewProfileURL[] = "chrome://newprofile/";
65 const char kChromeUINewTabURL[] = "chrome://newtab/";
66 const char kChromeUIOmniboxURL[] = "chrome://omnibox/";
67 const char kChromeUIPluginsURL[] = "chrome://plugins/";
68 const char kChromeUIPolicyURL[] = "chrome://policy/";
69 const char kChromeUIProfileSigninConfirmationURL[] =
70 "chrome://profile-signin-confirmation/";
71 const char kChromeUIUserManagerURL[] = "chrome://user-manager/";
72 const char kChromeUIPrintURL[] = "chrome://print/";
73 const char kChromeUIQuitURL[] = "chrome://quit/";
74 const char kChromeUIRestartURL[] = "chrome://restart/";
75 const char kChromeUISettingsURL[] = "chrome://settings/";
76 const char kChromeUIContentSettingsURL[] = "chrome://settings/content";
77 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/";
78 const char kChromeUISuggestionsURL[] = "chrome://suggestions/";
79 const char kChromeUISuggestionsInternalsURL[] =
80 "chrome://suggestions-internals/";
81 const char kChromeUISupervisedUserPassphrasePageURL[] =
82 "chrome://managed-user-passphrase/";
83 const char kChromeUITermsURL[] = "chrome://terms/";
84 const char kChromeUIThemeURL[] = "chrome://theme/";
85 const char kChromeUIThumbnailURL[] = "chrome://thumb/";
86 const char kChromeUIThumbnailListURL[] = "chrome://thumbnails/";
87 const char kChromeUIUberURL[] = "chrome://chrome/";
88 const char kChromeUIUberFrameURL[] = "chrome://uber-frame/";
89 const char kChromeUIUserActionsURL[] = "chrome://user-actions/";
90 const char kChromeUIVersionURL[] = "chrome://version/";
91 const char kChromeUIVoiceSearchURL[] = "chrome://voicesearch/";
93 #if defined(OS_ANDROID)
94 const char kChromeUIContextualSearchPromoURL[] =
95 "chrome://contextual-search-promo";
96 const char kChromeUINativeScheme[] = "chrome-native";
97 const char kChromeUINativeNewTabURL[] = "chrome-native://newtab/";
98 const char kChromeUINativeBookmarksURL[] = "chrome-native://bookmarks/";
99 const char kChromeUINativeRecentTabsURL[] = "chrome-native://recent-tabs/";
100 #endif
102 #if defined(OS_CHROMEOS)
103 const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/";
104 const char kChromeUICertificateManagerDialogURL[] =
105 "chrome://certificate-manager/";
106 const char kChromeUIChooseMobileNetworkURL[] =
107 "chrome://choose-mobile-network/";
108 const char kChromeUIDiscardsURL[] = "chrome://discards/";
109 const char kChromeUIFirstRunURL[] = "chrome://first-run/";
110 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
111 const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/";
112 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
113 const char kChromeUINfcDebugURL[] = "chrome://nfc-debug/";
114 const char kChromeUIOobeURL[] = "chrome://oobe/";
115 const char kChromeUIOSCreditsURL[] = "chrome://os-credits/";
116 const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/";
117 const char kChromeUISalsaURL[] = "chrome://salsa/";
118 const char kChromeUIScreenlockIconURL[] = "chrome://screenlock-icon/";
119 const char kChromeUISetTimeURL[] = "chrome://set-time/";
120 const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/";
121 const char kChromeUISlowURL[] = "chrome://slow/";
122 const char kChromeUISystemInfoURL[] = "chrome://system/";
123 const char kChromeUITermsOemURL[] = "chrome://terms/oem";
124 const char kChromeUIUserImageURL[] = "chrome://userimage/";
125 #endif // defined(OS_CHROMEOS)
127 #if defined(OS_WIN)
128 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/";
129 #endif
131 #if defined(USE_AURA)
132 const char kChromeUIGestureConfigURL[] = "chrome://gesture/";
133 const char kChromeUIGestureConfigHost[] = "gesture";
134 #endif
136 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
137 const char kChromeUITabModalConfirmDialogURL[] =
138 "chrome://tab-modal-confirm-dialog/";
139 #endif
141 #if !defined(OS_ANDROID) && !defined(OS_IOS)
142 const char kChromeUICopresenceURL[] = "chrome://copresence/";
143 #endif
145 #if defined(ENABLE_WEBRTC)
146 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/";
147 #endif
149 #if defined(ENABLE_MEDIA_ROUTER)
150 const char kChromeUIMediaRouterURL[] = "chrome://media-router/";
151 #endif
153 // Add Chrome UI hosts here, in alphabetical order.
154 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
155 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
156 const char kChromeUIAboutHost[] = "about";
157 const char kChromeUIBlankHost[] = "blank";
158 const char kChromeUIAppLauncherPageHost[] = "apps";
159 const char kChromeUIAppListStartPageHost[] = "app-list";
160 const char kChromeUIBookmarksHost[] = "bookmarks";
161 const char kChromeUICacheHost[] = "cache";
162 const char kChromeUICertificateViewerHost[] = "view-cert";
163 const char kChromeUICertificateViewerDialogHost[] = "view-cert-dialog";
164 const char kChromeUIChromeSigninHost[] = "chrome-signin";
165 const char kChromeUIChromeURLsHost[] = "chrome-urls";
166 const char kChromeUICloudPrintResourcesHost[] = "cloudprintresources";
167 const char kChromeUICloudPrintSetupHost[] = "cloudprintsetup";
168 const char kChromeUIConflictsHost[] = "conflicts";
169 const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test";
170 const char kChromeUICrashesHost[] = "crashes";
171 const char kChromeUICrashHost[] = "crash";
172 const char kChromeUICreditsHost[] = "credits";
173 const char kChromeUIDefaultHost[] = "version";
174 const char kChromeUIDeviceLogHost[] = "device-log";
175 const char kChromeUIDevicesHost[] = "devices";
176 const char kChromeUIDevToolsHost[] = "devtools";
177 const char kChromeUIDevToolsBundledPath[] = "bundled";
178 const char kChromeUIDevToolsRemotePath[] = "remote";
179 const char kChromeUIDNSHost[] = "dns";
180 const char kChromeUIDomainReliabilityInternalsHost[] =
181 "domain-reliability-internals";
182 const char kChromeUIDownloadsHost[] = "downloads";
183 const char kChromeUIDriveInternalsHost[] = "drive-internals";
184 const char kChromeUIExtensionIconHost[] = "extension-icon";
185 const char kChromeUIExtensionsFrameHost[] = "extensions-frame";
186 const char kChromeUIExtensionsHost[] = "extensions";
187 const char kChromeUIFallbackIconHost[] = "fallback-icon";
188 const char kChromeUIFaviconHost[] = "favicon";
189 const char kChromeUIFlagsHost[] = "flags";
190 const char kChromeUIFlashHost[] = "flash";
191 const char kChromeUIGCMInternalsHost[] = "gcm-internals";
192 const char kChromeUIHangHost[] = "hang";
193 const char kChromeUIHelpFrameHost[] = "help-frame";
194 const char kChromeUIHelpHost[] = "help";
195 const char kChromeUIHistoryHost[] = "history";
196 const char kChromeUIHistoryFrameHost[] = "history-frame";
197 const char kChromeUIIdentityInternalsHost[] = "identity-internals";
198 const char kChromeUIInspectHost[] = "inspect";
199 const char kChromeUIInstantHost[] = "instant";
200 const char kChromeUIInterstitialHost[] = "interstitials";
201 const char kChromeUIInvalidationsHost[] = "invalidations";
202 const char kChromeUIKillHost[] = "kill";
203 const char kChromeUILargeIconHost[] = "large-icon";
204 const char kChromeUILocalStateHost[] = "local-state";
205 const char kChromeUIMdSettingsHost[] = "md-settings";
206 const char kChromeUIMemoryHost[] = "memory";
207 const char kChromeUIMemoryInternalsHost[] = "memory-internals";
208 const char kChromeUIMemoryRedirectHost[] = "memory-redirect";
209 const char kChromeUINaClHost[] = "nacl";
210 const char kChromeUINetExportHost[] = "net-export";
211 const char kChromeUINetInternalsHost[] = "net-internals";
212 const char kChromeUINewTabHost[] = "newtab";
213 const char kChromeUIOmniboxHost[] = "omnibox";
214 const char kChromeUIPasswordManagerInternalsHost[] =
215 "password-manager-internals";
216 const char kChromeUIPluginsHost[] = "plugins";
217 const char kChromeUIComponentsHost[] = "components";
218 const char kChromeUIPolicyHost[] = "policy";
219 const char kChromeUIProfileSigninConfirmationHost[] =
220 "profile-signin-confirmation";
221 const char kChromeUIUserManagerHost[] = "user-manager";
222 const char kChromeUIPredictorsHost[] = "predictors";
223 const char kChromeUIProfilerHost[] = "profiler";
224 const char kChromeUIQuotaInternalsHost[] = "quota-internals";
225 const char kChromeUIQuitHost[] = "quit";
226 const char kChromeUIRestartHost[] = "restart";
227 const char kChromeUISettingsHost[] = "settings";
228 const char kChromeUISettingsFrameHost[] = "settings-frame";
229 const char kChromeUIShorthangHost[] = "shorthang";
230 const char kChromeUISignInInternalsHost[] = "signin-internals";
231 const char kChromeUISuggestionsHost[] = "suggestions";
232 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals";
233 const char kChromeUISupervisedUserPassphrasePageHost[] =
234 "managed-user-passphrase";
235 const char kChromeUISyncHost[] = "sync";
236 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals";
237 const char kChromeUISyncInternalsHost[] = "sync-internals";
238 const char kChromeUISyncResourcesHost[] = "syncresources";
239 const char kChromeUISystemInfoHost[] = "system";
240 const char kChromeUITermsHost[] = "terms";
241 const char kChromeUIThemeHost[] = "theme";
242 const char kChromeUIThumbnailHost[] = "thumb";
243 const char kChromeUIThumbnailHost2[] = "thumb2";
244 const char kChromeUIThumbnailListHost[] = "thumbnails";
245 const char kChromeUITouchIconHost[] = "touch-icon";
246 const char kChromeUITranslateInternalsHost[] = "translate-internals";
247 const char kChromeUIUberFrameHost[] = "uber-frame";
248 const char kChromeUIUberHost[] = "chrome";
249 const char kChromeUIUserActionsHost[] = "user-actions";
250 const char kChromeUIVersionHost[] = "version";
251 const char kChromeUIVoiceSearchHost[] = "voicesearch";
252 const char kChromeUIWebRTCDeviceProviderHost[] =
253 "webrtc-device-provider";
254 const char kChromeUIWorkersHost[] = "workers";
256 const char kChromeUIThemePath[] = "theme";
258 #if defined(ENABLE_PRINT_PREVIEW)
259 const char kChromeUIPrintHost[] = "print";
260 #endif // ENABLE_PRINT_PREVIEW
262 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
263 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config";
264 const char kChromeUISandboxHost[] = "sandbox";
265 #endif
267 #if defined(OS_ANDROID)
268 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo";
269 #endif
271 #if defined(OS_CHROMEOS)
272 const char kChromeUIActivationMessageHost[] = "activationmessage";
273 const char kChromeUIAppLaunchHost[] = "app-launch";
274 const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing";
275 const char kChromeUICertificateManagerHost[] = "certificate-manager";
276 const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network";
277 const char kChromeUICryptohomeHost[] = "cryptohome";
278 const char kChromeUIDiscardsHost[] = "discards";
279 const char kChromeUIFirstRunHost[] = "first-run";
280 const char kChromeUIImageBurnerHost[] = "imageburner";
281 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay";
282 const char kChromeUILoginContainerHost[] = "login-container";
283 const char kChromeUILoginHost[] = "login";
284 const char kChromeUIMobileSetupHost[] = "mobilesetup";
285 const char kChromeUINfcDebugHost[] = "nfc-debug";
286 const char kChromeUINetworkHost[] = "network";
287 const char kChromeUIOobeHost[] = "oobe";
288 const char kChromeUIOobeMdHost[] = "oobe-md";
289 const char kChromeUIOSCreditsHost[] = "os-credits";
290 const char kChromeUIPowerHost[] = "power";
291 const char kChromeUIProvidedFileSystemsHost[] = "provided-file-systems";
292 const char kChromeUIProxySettingsHost[] = "proxy-settings";
293 const char kChromeUIRotateHost[] = "rotate";
294 const char kChromeUISalsaHost[] = "salsa";
295 const char kChromeUIScreenlockIconHost[] = "screenlock-icon";
296 const char kChromeUISetTimeHost[] = "set-time";
297 const char kChromeUISimUnlockHost[] = "sim-unlock";
298 const char kChromeUISlowHost[] = "slow";
299 const char kChromeUISlowTraceHost[] = "slow_trace";
300 const char kChromeUIUserImageHost[] = "userimage";
302 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
303 const char kOemEulaURLPath[] = "oem";
304 const char kOnlineEulaURLPath[] =
305 "https://www.google.com/intl/%s/chrome/eula_text.html";
307 const char kChromeOSCreditsPath[] =
308 "/opt/google/chrome/resources/about_os_credits.html";
310 const char kChromeOSAssetHost[] = "chromeos-asset";
311 const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/";
312 #endif // defined(OS_CHROMEOS)
314 #if defined(OS_WIN)
315 const char kChromeUIMetroFlowHost[] = "make-metro";
316 #endif
318 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
319 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
320 #endif
322 #if !defined(OS_ANDROID) && !defined(OS_IOS)
323 const char kChromeUICopresenceHost[] = "copresence";
324 #endif
326 #if defined(ENABLE_WEBRTC)
327 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs";
328 #endif
330 #if defined(ENABLE_MEDIA_ROUTER)
331 const char kChromeUIMediaRouterHost[] = "media-router";
332 #endif
334 // Option sub pages.
335 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
336 // listed by the built-in AutocompleteProvider.
337 const char kAutofillSubPage[] = "autofill";
338 const char kClearBrowserDataSubPage[] = "clearBrowserData";
339 const char kContentSettingsExceptionsSubPage[] = "contentExceptions";
340 const char kContentSettingsSubPage[] = "content";
341 const char kCreateProfileSubPage[] = "createProfile";
342 const char kExtensionsSubPage[] = "extensions";
343 const char kHandlerSettingsSubPage[] = "handlers";
344 const char kImportDataSubPage[] = "importData";
345 const char kLanguageOptionsSubPage[] = "languages";
346 const char kManageProfileSubPage[] = "manageProfile";
347 const char kPasswordManagerSubPage[] = "passwords";
348 const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
349 const char kSearchEnginesSubPage[] = "searchEngines";
350 const char kSearchSubPage[] = "search";
351 const char kSearchUsersSubPage[] = "search#Users";
352 const char kSyncSetupSubPage[] = "syncSetup";
353 #if defined(OS_CHROMEOS)
354 const char kInternetOptionsSubPage[] = "internet";
355 const char kChangeProfilePictureSubPage[] = "changePicture";
356 #endif
358 // Extension sub pages.
359 const char kExtensionConfigureCommandsSubPage[] = "configureCommands";
361 const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
362 const char kExtensionResourceInvalidRequestURL[] =
363 "chrome-extension-resource://invalid/";
365 const char kSyncGoogleDashboardURL[] =
366 "https://www.google.com/settings/chrome/sync/";
368 const char kPasswordManagerLearnMoreURL[] =
369 #if defined(OS_CHROMEOS)
370 "https://support.google.com/chromeos/?p=settings_password";
371 #else
372 "https://support.google.com/chrome/?p=settings_password";
373 #endif
375 const char kPasswordManagerAccountDashboardURL[] =
376 "https://passwords.google.com/settings/passwords";
378 const char kExtensionControlledSettingLearnMoreURL[] =
379 "https://support.google.com/chrome/?p=ui_settings_api_extension";
381 const char kChromeHelpViaKeyboardURL[] =
382 #if defined(OS_CHROMEOS)
383 #if defined(OFFICIAL_BUILD)
384 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
385 #else
386 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
387 #endif // defined(OFFICIAL_BUILD
388 #else
389 "https://support.google.com/chrome/?p=help&ctx=keyboard";
390 #endif // defined(OS_CHROMEOS)
392 const char kChromeHelpViaMenuURL[] =
393 #if defined(OS_CHROMEOS)
394 #if defined(OFFICIAL_BUILD)
395 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
396 #else
397 "https://support.google.com/chromeos/?p=help&ctx=menu";
398 #endif // defined(OFFICIAL_BUILD
399 #else
400 "https://support.google.com/chrome/?p=help&ctx=menu";
401 #endif // defined(OS_CHROMEOS)
403 const char kChromeHelpViaWebUIURL[] =
404 #if defined(OS_CHROMEOS)
405 #if defined(OFFICIAL_BUILD)
406 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
407 #else
408 "https://support.google.com/chromeos/?p=help&ctx=settings";
409 #endif // defined(OFFICIAL_BUILD
410 #else
411 "https://support.google.com/chrome/?p=help&ctx=settings";
412 #endif // defined(OS_CHROMEOS)
414 #if defined(OS_CHROMEOS)
415 const char kChromeAccessibilityHelpURL[] =
416 "https://support.google.com/chromeos/?p=accessibility_menu";
417 const char kChromeAccessibilitySettingsURL[] =
418 "/chromevox/background/options.html";
419 #endif // defined(OS_CHROMEOS)
421 #if defined(ENABLE_ONE_CLICK_SIGNIN)
422 const char kChromeSyncLearnMoreURL[] =
423 "http://support.google.com/chrome/bin/answer.py?answer=165139";
425 const char kChromeSyncMergeTroubleshootingURL[] =
426 "https://support.google.com/chrome/answer/1181420#merge";
427 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
429 #if defined(OS_MACOSX)
430 const char kChromeEnterpriseSignInLearnMoreURL[] =
431 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
432 #endif
434 const char kResetProfileSettingsLearnMoreURL[] =
435 "https://support.google.com/chrome/?p=ui_reset_settings";
437 const char kAutomaticSettingsResetLearnMoreURL[] =
438 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
440 const char kSupervisedUserManagementURL[] = "https://www.chrome.com/manage";
442 const char kSupervisedUserManagementDisplayURL[] = "www.chrome.com/manage";
444 const char kSettingsSearchHelpURL[] =
445 #if defined(OS_CHROMEOS)
446 "https://support.google.com/chromeos/?p=settings_search_help";
447 #else
448 "https://support.google.com/chrome/?p=settings_search_help";
449 #endif
451 const char kOmniboxLearnMoreURL[] =
452 #if defined(OS_CHROMEOS)
453 "https://support.google.com/chromeos/?p=settings_omnibox";
454 #else
455 "https://support.google.com/chrome/?p=settings_omnibox";
456 #endif
458 const char kPageInfoHelpCenterURL[] =
459 #if defined(OS_CHROMEOS)
460 "https://support.google.com/chromeos/?p=ui_security_indicator";
461 #else
462 "https://support.google.com/chrome/?p=ui_security_indicator";
463 #endif
465 const char kCrashReasonURL[] =
466 #if defined(OS_CHROMEOS)
467 "https://support.google.com/chromeos/?p=e_awsnap";
468 #else
469 "https://support.google.com/chrome/?p=e_awsnap";
470 #endif
472 const char kKillReasonURL[] =
473 #if defined(OS_CHROMEOS)
474 "https://support.google.com/chromeos/?p=e_deadjim";
475 #else
476 "https://support.google.com/chrome/?p=e_deadjim";
477 #endif
479 const char kPrivacyLearnMoreURL[] =
480 #if defined(OS_CHROMEOS)
481 "https://support.google.com/chromeos/?p=settings_privacy";
482 #else
483 "https://support.google.com/chrome/?p=settings_privacy";
484 #endif
486 const char kDoNotTrackLearnMoreURL[] =
487 #if defined(OS_CHROMEOS)
488 "https://support.google.com/chromeos/?p=settings_do_not_track";
489 #else
490 "https://support.google.com/chrome/?p=settings_do_not_track";
491 #endif
493 #if defined(OS_CHROMEOS)
494 const char kAttestationForContentProtectionLearnMoreURL[] =
495 "https://support.google.com/chromebook/?p=verified_access";
496 #endif
498 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
499 const char kEnhancedPlaybackNotificationLearnMoreURL[] =
500 #endif
501 #if defined(OS_CHROMEOS)
502 "https://support.google.com/chromebook/?p=enhanced_playback";
503 #elif defined(OS_ANDROID)
504 // Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
505 "https://support.google.com/chrome/?p=mobile_protected_content";
506 #endif
508 const char kChromiumProjectURL[] = "http://www.chromium.org/";
510 const char kLearnMoreReportingURL[] =
511 "https://support.google.com/chrome/?p=ui_usagestat";
513 #if defined(ENABLE_PLUGIN_INSTALLATION)
514 const char kOutdatedPluginLearnMoreURL[] =
515 "https://support.google.com/chrome/?p=ib_outdated_plugin";
516 #endif
518 const char kBlockedPluginLearnMoreURL[] =
519 "https://support.google.com/chrome/?p=ib_blocked_plugin";
521 const char kHotwordLearnMoreURL[] =
522 "https://support.google.com/chrome/?p=ui_hotword_search";
524 const char kManageAudioHistoryURL[] =
525 "https://history.google.com/history/audio";
527 const char kLearnMoreRegisterProtocolHandlerURL[] =
528 "https://support.google.com/chrome/?p=ib_protocol_handler";
530 const char kSyncLearnMoreURL[] =
531 "https://support.google.com/chrome/?p=settings_sign_in";
533 const char kDownloadScanningLearnMoreURL[] =
534 "https://support.google.com/chrome/?p=ib_download_blocked";
536 const char kDownloadInterruptedLearnMoreURL[] =
537 "https://support.google.com/chrome/?p=ui_download_errors";
539 const char kSyncEverythingLearnMoreURL[] =
540 "https://support.google.com/chrome/?p=settings_sync_all";
542 const char kCloudPrintLearnMoreURL[] =
543 #if defined(OS_CHROMEOS)
544 "https://support.google.com/chromeos/?p=settings_cloud_print";
545 #else
546 "https://support.google.com/chrome/?p=settings_cloud_print";
547 #endif
549 const char kCloudPrintNoDestinationsLearnMoreURL[] =
550 "https://www.google.com/cloudprint/learn/";
552 const char kAppLauncherHelpURL[] =
553 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
555 const char kSyncEncryptionHelpURL[] =
556 #if defined(OS_CHROMEOS)
557 "https://support.google.com/chromeos/?p=settings_encryption";
558 #else
559 "https://support.google.com/chrome/?p=settings_encryption";
560 #endif
562 const char kSyncErrorsHelpURL[] =
563 "https://support.google.com/chrome/?p=settings_sync_error";
565 #if defined(OS_CHROMEOS)
566 const char kNaturalScrollHelpURL[] =
567 "https://support.google.com/chromeos/?p=simple_scrolling";
568 #endif
570 #if defined(OS_CHROMEOS)
571 const char kLearnMoreEnterpriseURL[] =
572 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
573 #endif
575 const char kRemoveNonCWSExtensionURL[] =
576 "https://support.google.com/chrome/answer/2811969?"
577 "p=ui_remove_non_cws_extensions&rd=1";
579 #if defined(OS_WIN)
580 const char kNotificationsHelpURL[] =
581 "https://support.google.com/chrome/?p=ui_notifications";
582 #endif
584 const char kNotificationWelcomeLearnMoreURL[] =
585 "https://support.google.com/chrome/?p=ib_google_now_welcome";
587 // Add hosts here to be included in chrome://chrome-urls (about:about).
588 // These hosts will also be suggested by BuiltinProvider.
589 const char* const kChromeHostURLs[] = {
590 kChromeUICacheHost,
591 kChromeUIChromeURLsHost,
592 kChromeUIComponentsHost,
593 kChromeUICrashesHost,
594 kChromeUICreditsHost,
595 kChromeUIDeviceLogHost,
596 kChromeUIDNSHost,
597 kChromeUIFlagsHost,
598 kChromeUIHistoryHost,
599 kChromeUIInvalidationsHost,
600 kChromeUILocalStateHost,
601 kChromeUIMemoryHost,
602 kChromeUIMemoryInternalsHost,
603 kChromeUINetInternalsHost,
604 kChromeUINewTabHost,
605 kChromeUIOmniboxHost,
606 kChromeUIPasswordManagerInternalsHost,
607 kChromeUIPredictorsHost,
608 kChromeUIProfilerHost,
609 kChromeUISignInInternalsHost,
610 kChromeUISuggestionsHost,
611 kChromeUISyncInternalsHost,
612 kChromeUITermsHost,
613 kChromeUIThumbnailListHost,
614 kChromeUITranslateInternalsHost,
615 kChromeUIUserActionsHost,
616 kChromeUIVersionHost,
617 kChromeUIVoiceSearchHost,
618 content::kChromeUIAccessibilityHost,
619 content::kChromeUIAppCacheInternalsHost,
620 content::kChromeUIBlobInternalsHost,
621 content::kChromeUIGpuHost,
622 content::kChromeUIHistogramHost,
623 content::kChromeUIIndexedDBInternalsHost,
624 content::kChromeUIMediaInternalsHost,
625 content::kChromeUINetworkViewCacheHost,
626 content::kChromeUIServiceWorkerInternalsHost,
627 content::kChromeUITracingHost,
628 content::kChromeUIWebRTCInternalsHost,
629 #if !defined(OS_ANDROID)
630 kChromeUIAppLauncherPageHost,
631 kChromeUIBookmarksHost,
632 kChromeUIDownloadsHost,
633 kChromeUIFlashHost,
634 kChromeUIGCMInternalsHost,
635 kChromeUIHelpHost,
636 kChromeUIInspectHost,
637 kChromeUIPluginsHost,
638 kChromeUIQuotaInternalsHost,
639 kChromeUISettingsHost,
640 kChromeUISystemInfoHost,
641 kChromeUIUberHost,
642 #endif
643 #if defined(OS_ANDROID) || defined(OS_IOS)
644 kChromeUINetExportHost,
645 #else // non-mobile
646 kChromeUICopresenceHost,
647 #endif
648 #if defined(OS_CHROMEOS)
649 kChromeUICertificateManagerHost,
650 kChromeUIChooseMobileNetworkHost,
651 kChromeUICryptohomeHost,
652 kChromeUIDiscardsHost,
653 kChromeUIDriveInternalsHost,
654 kChromeUIFirstRunHost,
655 kChromeUIImageBurnerHost,
656 kChromeUIKeyboardOverlayHost,
657 kChromeUILoginHost,
658 kChromeUINetworkHost,
659 kChromeUIOobeHost,
660 kChromeUIOobeMdHost,
661 kChromeUIOSCreditsHost,
662 kChromeUIPowerHost,
663 kChromeUIProxySettingsHost,
664 #endif
665 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
666 kChromeUILinuxProxyConfigHost,
667 kChromeUISandboxHost,
668 #endif
669 #if defined(OS_WIN)
670 kChromeUIConflictsHost,
671 #endif
672 #if !defined(DISABLE_NACL)
673 kChromeUINaClHost,
674 #endif
675 #if defined(ENABLE_CONFIGURATION_POLICY)
676 kChromeUIPolicyHost,
677 #endif
678 #if defined(ENABLE_EXTENSIONS)
679 kChromeUIExtensionsHost,
680 #endif
681 #if defined(ENABLE_PRINT_PREVIEW)
682 kChromeUIPrintHost,
683 #endif
684 #if defined(ENABLE_SERVICE_DISCOVERY)
685 kChromeUIDevicesHost,
686 #endif
687 #if defined(ENABLE_WEBRTC)
688 kChromeUIWebRtcLogsHost,
689 #endif
691 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);
693 const char* const kChromeDebugURLs[] = {
694 content::kChromeUICrashURL,
695 content::kChromeUIDumpURL,
696 content::kChromeUIKillURL,
697 content::kChromeUIHangURL,
698 content::kChromeUIShorthangURL,
699 content::kChromeUIGpuCleanURL,
700 content::kChromeUIGpuCrashURL,
701 content::kChromeUIGpuHangURL,
702 content::kChromeUIPpapiFlashCrashURL,
703 content::kChromeUIPpapiFlashHangURL,
704 chrome::kChromeUIQuitURL,
705 chrome::kChromeUIRestartURL
707 const int kNumberOfChromeDebugURLs =
708 static_cast<int>(arraysize(kChromeDebugURLs));
710 const char kChromeNativeScheme[] = "chrome-native";
712 const char kChromeSearchScheme[] = "chrome-search";
713 const char kChromeSearchLocalNtpHost[] = "local-ntp";
714 const char kChromeSearchLocalNtpUrl[] =
715 "chrome-search://local-ntp/local-ntp.html";
716 const char kChromeSearchRemoteNtpHost[] = "remote-ntp";
718 const char kChromeSearchMostVisitedHost[] = "most-visited";
719 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/";
721 // Google SafeSearch query parameters.
722 const char kSafeSearchSafeParameter[] = "safe=active";
723 const char kSafeSearchSsuiParameter[] = "ssui=on";
725 const char kMediaAccessLearnMoreUrl[] =
726 "https://support.google.com/chrome/?p=ib_access_cam_mic";
728 const char kLanguageSettingsLearnMoreUrl[] =
729 #if defined(OS_CHROMEOS)
730 "https://support.google.com/chromebook/answer/1059490";
731 #else
732 "https://support.google.com/chrome/topic/1678461";
733 #endif
735 #if defined(OS_MACOSX)
736 const char kMac32BitDeprecationURL[] =
737 #if !defined(ARCH_CPU_64_BITS)
738 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
739 #else
741 #endif
742 #endif
744 const char kEasyUnlockLearnMoreUrl[] =
745 "https://support.google.com/chromebook/?p=smart_lock";
747 } // namespace chrome