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"
9 #include "base/basictypes.h"
10 #include "content/public/common/url_constants.h"
11 #include "url/url_util.h"
15 #if defined(OS_CHROMEOS)
16 const char kCrosScheme
[] = "cros";
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 kChromeUIComponentsURL
[] = "chrome://components/";
31 const char kChromeUIConflictsURL
[] = "chrome://conflicts/";
32 const char kChromeUIConstrainedHTMLTestURL
[] = "chrome://constrained-test/";
33 const char kChromeUICrashesURL
[] = "chrome://crashes/";
34 const char kChromeUICreditsURL
[] = "chrome://credits/";
35 const char kChromeUIDevicesURL
[] = "chrome://devices/";
36 const char kChromeUIDevToolsURL
[] =
37 "chrome-devtools://devtools/bundled/inspector.html";
38 const char kChromeUIDomainReliabilityInternalsURL
[] =
39 "chrome://domain-reliability-internals/";
40 const char kChromeUIDownloadsURL
[] = "chrome://downloads/";
41 const char kChromeUIExtensionIconURL
[] = "chrome://extension-icon/";
42 const char kChromeUIExtensionsFrameURL
[] = "chrome://extensions-frame/";
43 const char kChromeUIExtensionsURL
[] = "chrome://extensions/";
44 const char kChromeUIFallbackIconURL
[] = "chrome://fallback-icon/";
45 const char kChromeUIFaviconURL
[] = "chrome://favicon/";
46 const char kChromeUIFlagsURL
[] = "chrome://flags/";
47 const char kChromeUIFlashURL
[] = "chrome://flash/";
48 const char kChromeUIGCMInternalsURL
[] = "chrome://gcm-internals/";
49 const char kChromeUIHelpFrameURL
[] = "chrome://help-frame/";
50 const char kChromeUIHistoryURL
[] = "chrome://history/";
51 const char kChromeUIHistoryFrameURL
[] = "chrome://history-frame/";
52 const char kChromeUIIdentityInternalsURL
[] = "chrome://identity-internals/";
53 const char kChromeUIInspectURL
[] = "chrome://inspect/";
54 const char kChromeUIInstantURL
[] = "chrome://instant/";
55 const char kChromeUIInterstitialURL
[] = "chrome://interstitials/";
56 const char kChromeUIInvalidationsURL
[] = "chrome://invalidations/";
57 const char kChromeUILargeIconURL
[] = "chrome://large-icon/";
58 const char kChromeUIMdSettingsURL
[] = "chrome://md-settings/";
59 const char kChromeUIMemoryRedirectURL
[] = "chrome://memory-redirect/";
60 const char kChromeUIMemoryURL
[] = "chrome://memory/";
61 const char kChromeUINaClURL
[] = "chrome://nacl/";
62 const char kChromeUINetInternalsURL
[] = "chrome://net-internals/";
63 const char kChromeUINewProfileURL
[] = "chrome://newprofile/";
64 const char kChromeUINewTabURL
[] = "chrome://newtab/";
65 const char kChromeUIOmniboxURL
[] = "chrome://omnibox/";
66 const char kChromeUIPluginsURL
[] = "chrome://plugins/";
67 const char kChromeUIPolicyURL
[] = "chrome://policy/";
68 const char kChromeUIProfileSigninConfirmationURL
[] =
69 "chrome://profile-signin-confirmation/";
70 const char kChromeUIUserManagerURL
[] = "chrome://user-manager/";
71 const char kChromeUIPrintURL
[] = "chrome://print/";
72 const char kChromeUIQuitURL
[] = "chrome://quit/";
73 const char kChromeUIRestartURL
[] = "chrome://restart/";
74 const char kChromeUISettingsURL
[] = "chrome://settings/";
75 const char kChromeUIContentSettingsURL
[] = "chrome://settings/content";
76 const char kChromeUISettingsFrameURL
[] = "chrome://settings-frame/";
77 const char kChromeUISuggestionsURL
[] = "chrome://suggestions/";
78 const char kChromeUISupervisedUserPassphrasePageURL
[] =
79 "chrome://managed-user-passphrase/";
80 const char kChromeUITermsURL
[] = "chrome://terms/";
81 const char kChromeUIThemeURL
[] = "chrome://theme/";
82 const char kChromeUIThumbnailURL
[] = "chrome://thumb/";
83 const char kChromeUIThumbnailListURL
[] = "chrome://thumbnails/";
84 const char kChromeUIUberURL
[] = "chrome://chrome/";
85 const char kChromeUIUberFrameURL
[] = "chrome://uber-frame/";
86 const char kChromeUIUserActionsURL
[] = "chrome://user-actions/";
87 const char kChromeUIVersionURL
[] = "chrome://version/";
88 const char kChromeUIVoiceSearchURL
[] = "chrome://voicesearch/";
90 #if defined(OS_ANDROID)
91 const char kChromeUIContextualSearchPromoURL
[] =
92 "chrome://contextual-search-promo";
93 const char kChromeUINativeScheme
[] = "chrome-native";
94 const char kChromeUINativeNewTabURL
[] = "chrome-native://newtab/";
95 const char kChromeUINativeBookmarksURL
[] = "chrome-native://bookmarks/";
96 const char kChromeUINativeRecentTabsURL
[] = "chrome-native://recent-tabs/";
99 #if defined(OS_CHROMEOS)
100 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
101 const char kChromeUICertificateManagerDialogURL
[] =
102 "chrome://certificate-manager/";
103 const char kChromeUIChooseMobileNetworkURL
[] =
104 "chrome://choose-mobile-network/";
105 const char kChromeUIDeviceEmulatorURL
[] = "chrome://device-emulator/";
106 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
107 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
108 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
109 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
110 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
111 const char kChromeUIOobeURL
[] = "chrome://oobe/";
112 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
113 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
114 const char kChromeUISalsaURL
[] = "chrome://salsa/";
115 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
116 const char kChromeUISetTimeURL
[] = "chrome://set-time/";
117 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
118 const char kChromeUISlowURL
[] = "chrome://slow/";
119 const char kChromeUISystemInfoURL
[] = "chrome://system/";
120 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
121 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
122 #endif // defined(OS_CHROMEOS)
125 const char kChromeUIMetroFlowURL
[] = "chrome://make-metro/";
128 #if defined(USE_AURA)
129 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
130 const char kChromeUIGestureConfigHost
[] = "gesture";
133 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
134 const char kChromeUITabModalConfirmDialogURL
[] =
135 "chrome://tab-modal-confirm-dialog/";
138 #if !defined(OS_ANDROID) && !defined(OS_IOS)
139 const char kChromeUICopresenceURL
[] = "chrome://copresence/";
142 #if defined(ENABLE_WEBRTC)
143 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
146 #if defined(ENABLE_MEDIA_ROUTER)
147 const char kChromeUIMediaRouterURL
[] = "chrome://media-router/";
150 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
151 const char kChromeUIDiscardsHost
[] = "discards";
152 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
155 // Add Chrome UI hosts here, in alphabetical order.
156 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
157 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
158 const char kChromeUIAboutHost
[] = "about";
159 const char kChromeUIBlankHost
[] = "blank";
160 const char kChromeUIAppLauncherPageHost
[] = "apps";
161 const char kChromeUIAppListStartPageHost
[] = "app-list";
162 const char kChromeUIBookmarksHost
[] = "bookmarks";
163 const char kChromeUICacheHost
[] = "cache";
164 const char kChromeUICertificateViewerHost
[] = "view-cert";
165 const char kChromeUICertificateViewerDialogHost
[] = "view-cert-dialog";
166 const char kChromeUIChromeSigninHost
[] = "chrome-signin";
167 const char kChromeUIChromeURLsHost
[] = "chrome-urls";
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 kChromeUIHangUIHost
[] = "uithreadhang";
194 const char kChromeUIHelpFrameHost
[] = "help-frame";
195 const char kChromeUIHelpHost
[] = "help";
196 const char kChromeUIHistoryHost
[] = "history";
197 const char kChromeUIHistoryFrameHost
[] = "history-frame";
198 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
199 const char kChromeUIInspectHost
[] = "inspect";
200 const char kChromeUIInstantHost
[] = "instant";
201 const char kChromeUIInterstitialHost
[] = "interstitials";
202 const char kChromeUIInvalidationsHost
[] = "invalidations";
203 const char kChromeUIKillHost
[] = "kill";
204 const char kChromeUILargeIconHost
[] = "large-icon";
205 const char kChromeUILocalStateHost
[] = "local-state";
206 const char kChromeUIMdSettingsHost
[] = "md-settings";
207 const char kChromeUIMemoryHost
[] = "memory";
208 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
209 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
210 const char kChromeUINaClHost
[] = "nacl";
211 const char kChromeUINetExportHost
[] = "net-export";
212 const char kChromeUINetInternalsHost
[] = "net-internals";
213 const char kChromeUINewTabHost
[] = "newtab";
214 const char kChromeUIOmniboxHost
[] = "omnibox";
215 const char kChromeUIPasswordManagerInternalsHost
[] =
216 "password-manager-internals";
217 const char kChromeUIPluginsHost
[] = "plugins";
218 const char kChromeUIComponentsHost
[] = "components";
219 const char kChromeUIPolicyHost
[] = "policy";
220 const char kChromeUIProfileSigninConfirmationHost
[] =
221 "profile-signin-confirmation";
222 const char kChromeUIUserManagerHost
[] = "user-manager";
223 const char kChromeUIPredictorsHost
[] = "predictors";
224 const char kChromeUIProfilerHost
[] = "profiler";
225 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
226 const char kChromeUIQuitHost
[] = "quit";
227 const char kChromeUIRestartHost
[] = "restart";
228 const char kChromeUISettingsHost
[] = "settings";
229 const char kChromeUISettingsFrameHost
[] = "settings-frame";
230 const char kChromeUIShorthangHost
[] = "shorthang";
231 const char kChromeUISignInInternalsHost
[] = "signin-internals";
232 const char kChromeUISuggestionsHost
[] = "suggestions";
233 const char kChromeUISupervisedUserInternalsHost
[] = "supervised-user-internals";
234 const char kChromeUISupervisedUserPassphrasePageHost
[] =
235 "managed-user-passphrase";
236 const char kChromeUISyncHost
[] = "sync";
237 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
238 const char kChromeUISyncInternalsHost
[] = "sync-internals";
239 const char kChromeUISyncResourcesHost
[] = "syncresources";
240 const char kChromeUISystemInfoHost
[] = "system";
241 const char kChromeUITermsHost
[] = "terms";
242 const char kChromeUIThemeHost
[] = "theme";
243 const char kChromeUIThumbnailHost
[] = "thumb";
244 const char kChromeUIThumbnailHost2
[] = "thumb2";
245 const char kChromeUIThumbnailListHost
[] = "thumbnails";
246 const char kChromeUITouchIconHost
[] = "touch-icon";
247 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
248 const char kChromeUIUberFrameHost
[] = "uber-frame";
249 const char kChromeUIUberHost
[] = "chrome";
250 const char kChromeUIUserActionsHost
[] = "user-actions";
251 const char kChromeUIVersionHost
[] = "version";
252 const char kChromeUIVoiceSearchHost
[] = "voicesearch";
253 const char kChromeUIWebRTCDeviceProviderHost
[] =
254 "webrtc-device-provider";
255 const char kChromeUIWorkersHost
[] = "workers";
257 const char kChromeUIThemePath
[] = "theme";
259 #if defined(ENABLE_PRINT_PREVIEW)
260 const char kChromeUIPrintHost
[] = "print";
261 #endif // ENABLE_PRINT_PREVIEW
263 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
264 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
265 const char kChromeUISandboxHost
[] = "sandbox";
268 #if defined(OS_ANDROID)
269 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
272 #if defined(OS_CHROMEOS)
273 const char kChromeUIActivationMessageHost
[] = "activationmessage";
274 const char kChromeUIAppLaunchHost
[] = "app-launch";
275 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
276 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
277 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
278 const char kChromeUICryptohomeHost
[] = "cryptohome";
279 const char kChromeUIDeviceEmulatorHost
[] = "device-emulator";
280 const char kChromeUIFirstRunHost
[] = "first-run";
281 const char kChromeUIImageBurnerHost
[] = "imageburner";
282 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
283 const char kChromeUILoginContainerHost
[] = "login-container";
284 const char kChromeUILoginHost
[] = "login";
285 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
286 const char kChromeUINfcDebugHost
[] = "nfc-debug";
287 const char kChromeUINetworkHost
[] = "network";
288 const char kChromeUIOobeHost
[] = "oobe";
289 const char kChromeUIOSCreditsHost
[] = "os-credits";
290 const char kChromeUIPowerHost
[] = "power";
291 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
292 const char kChromeUIRotateHost
[] = "rotate";
293 const char kChromeUISalsaHost
[] = "salsa";
294 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
295 const char kChromeUISetTimeHost
[] = "set-time";
296 const char kChromeUISimUnlockHost
[] = "sim-unlock";
297 const char kChromeUISlowHost
[] = "slow";
298 const char kChromeUISlowTraceHost
[] = "slow_trace";
299 const char kChromeUIUserImageHost
[] = "userimage";
301 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
302 const char kOemEulaURLPath
[] = "oem";
303 const char kOnlineEulaURLPath
[] =
304 "https://www.google.com/intl/%s/chrome/eula_text.html";
306 const char kChromeOSCreditsPath
[] =
307 "/opt/google/chrome/resources/about_os_credits.html";
309 const char kChromeOSAssetHost
[] = "chromeos-asset";
310 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
311 #endif // defined(OS_CHROMEOS)
314 const char kChromeUIMetroFlowHost
[] = "make-metro";
317 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
318 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
321 #if !defined(OS_ANDROID) && !defined(OS_IOS)
322 const char kChromeUICopresenceHost
[] = "copresence";
325 #if defined(ENABLE_WEBRTC)
326 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
329 #if defined(ENABLE_MEDIA_ROUTER)
330 const char kChromeUIMediaRouterHost
[] = "media-router";
334 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
335 // listed by the built-in AutocompleteProvider.
336 const char kAutofillSubPage
[] = "autofill";
337 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
338 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
339 const char kContentSettingsSubPage
[] = "content";
340 const char kCreateProfileSubPage
[] = "createProfile";
341 const char kExtensionsSubPage
[] = "extensions";
342 const char kHandlerSettingsSubPage
[] = "handlers";
343 const char kImportDataSubPage
[] = "importData";
344 const char kLanguageOptionsSubPage
[] = "languages";
345 const char kManageProfileSubPage
[] = "manageProfile";
346 const char kPasswordManagerSubPage
[] = "passwords";
347 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
348 const char kSearchEnginesSubPage
[] = "searchEngines";
349 const char kSearchSubPage
[] = "search";
350 const char kSearchUsersSubPage
[] = "search#Users";
351 const char kSyncSetupSubPage
[] = "syncSetup";
352 #if defined(OS_CHROMEOS)
353 const char kInternetOptionsSubPage
[] = "internet";
354 const char kChangeProfilePictureSubPage
[] = "changePicture";
357 // Extension sub pages.
358 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
360 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
361 const char kExtensionResourceInvalidRequestURL
[] =
362 "chrome-extension-resource://invalid/";
364 const char kSyncGoogleDashboardURL
[] =
365 "https://www.google.com/settings/chrome/sync/";
367 const char kPasswordManagerLearnMoreURL
[] =
368 #if defined(OS_CHROMEOS)
369 "https://support.google.com/chromebook/?p=settings_password";
371 "https://support.google.com/chrome/?p=settings_password";
374 const char kUpgradeHelpCenterBaseURL
[] =
375 "http://support.google.com/installer/?product={8A69D345-D564-463c-AFF1-A69D9E530F96}&error=";
377 const char kPasswordManagerAccountDashboardURL
[] =
378 "https://passwords.google.com/settings/passwords";
380 const char kExtensionControlledSettingLearnMoreURL
[] =
381 "https://support.google.com/chrome/?p=ui_settings_api_extension";
383 const char kChromeHelpViaKeyboardURL
[] =
384 #if defined(OS_CHROMEOS)
385 #if defined(OFFICIAL_BUILD)
386 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
388 "https://support.google.com/chromebook/?p=help&ctx=keyboard";
389 #endif // defined(OFFICIAL_BUILD
391 "https://support.google.com/chrome/?p=help&ctx=keyboard";
392 #endif // defined(OS_CHROMEOS)
394 const char kChromeHelpViaMenuURL
[] =
395 #if defined(OS_CHROMEOS)
396 #if defined(OFFICIAL_BUILD)
397 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
399 "https://support.google.com/chromebook/?p=help&ctx=menu";
400 #endif // defined(OFFICIAL_BUILD
402 "https://support.google.com/chrome/?p=help&ctx=menu";
403 #endif // defined(OS_CHROMEOS)
405 const char kChromeHelpViaWebUIURL
[] =
406 #if defined(OS_CHROMEOS)
407 #if defined(OFFICIAL_BUILD)
408 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
410 "https://support.google.com/chromebook/?p=help&ctx=settings";
411 #endif // defined(OFFICIAL_BUILD
413 "https://support.google.com/chrome/?p=help&ctx=settings";
414 #endif // defined(OS_CHROMEOS)
416 #if defined(OS_CHROMEOS)
417 const char kChromeAccessibilityHelpURL
[] =
418 "https://support.google.com/chromebook/?p=accessibility_menu";
419 const char kChromeAccessibilitySettingsURL
[] =
420 "/chromevox/background/options.html";
421 #endif // defined(OS_CHROMEOS)
423 #if defined(ENABLE_ONE_CLICK_SIGNIN)
424 const char kChromeSyncLearnMoreURL
[] =
425 "https://support.google.com/chrome/answer/165139";
427 const char kChromeSyncMergeTroubleshootingURL
[] =
428 "https://support.google.com/chrome/answer/1181420#merge";
429 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
431 #if defined(OS_MACOSX)
432 const char kChromeEnterpriseSignInLearnMoreURL
[] =
433 "https://support.google.com/chromebook/answer/1331549";
436 const char kResetProfileSettingsLearnMoreURL
[] =
437 "https://support.google.com/chrome/?p=ui_reset_settings";
439 const char kAutomaticSettingsResetLearnMoreURL
[] =
440 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
442 const char kLegacySupervisedUserManagementURL
[] =
443 "https://www.chrome.com/manage";
444 const char kLegacySupervisedUserManagementDisplayURL
[] =
445 "www.chrome.com/manage";
447 const char kSettingsSearchHelpURL
[] =
448 #if defined(OS_CHROMEOS)
449 "https://support.google.com/chromebook/?p=settings_search_help";
451 "https://support.google.com/chrome/?p=settings_search_help";
454 const char kOmniboxLearnMoreURL
[] =
455 #if defined(OS_CHROMEOS)
456 "https://support.google.com/chromebook/?p=settings_omnibox";
458 "https://support.google.com/chrome/?p=settings_omnibox";
461 const char kPageInfoHelpCenterURL
[] =
462 #if defined(OS_CHROMEOS)
463 "https://support.google.com/chromebook/?p=ui_security_indicator";
465 "https://support.google.com/chrome/?p=ui_security_indicator";
468 const char kCrashReasonURL
[] =
469 #if defined(OS_CHROMEOS)
470 "https://support.google.com/chromebook/?p=e_awsnap";
472 "https://support.google.com/chrome/?p=e_awsnap";
475 const char kCrashReasonFeedbackDisplayedURL
[] =
476 #if defined(OS_CHROMEOS)
477 "https://support.google.com/chromebook/?p=e_awsnap_rl";
479 "https://support.google.com/chrome/?p=e_awsnap_rl";
482 const char kPrivacyLearnMoreURL
[] =
483 #if defined(OS_CHROMEOS)
484 "https://support.google.com/chromebook/?p=settings_privacy";
486 "https://support.google.com/chrome/?p=settings_privacy";
489 const char kDoNotTrackLearnMoreURL
[] =
490 #if defined(OS_CHROMEOS)
491 "https://support.google.com/chromebook/?p=settings_do_not_track";
493 "https://support.google.com/chrome/?p=settings_do_not_track";
496 #if defined(OS_CHROMEOS)
497 const char kAttestationForContentProtectionLearnMoreURL
[] =
498 "https://support.google.com/chromebook/?p=verified_access";
501 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
502 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
504 #if defined(OS_CHROMEOS)
505 "https://support.google.com/chromebook/?p=enhanced_playback";
506 #elif defined(OS_ANDROID)
507 // Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
508 "https://support.google.com/chrome/?p=mobile_protected_content";
511 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
513 const char kLearnMoreReportingURL
[] =
514 "https://support.google.com/chrome/?p=ui_usagestat";
516 #if defined(ENABLE_PLUGIN_INSTALLATION)
517 const char kOutdatedPluginLearnMoreURL
[] =
518 "https://support.google.com/chrome/?p=ib_outdated_plugin";
521 const char kBlockedPluginLearnMoreURL
[] =
522 "https://support.google.com/chrome/?p=ib_blocked_plugin";
524 const char kHotwordLearnMoreURL
[] =
525 "https://support.google.com/chrome/?p=ui_hotword_search";
527 const char kManageAudioHistoryURL
[] =
528 "https://history.google.com/history/audio";
530 const char kLearnMoreRegisterProtocolHandlerURL
[] =
531 "https://support.google.com/chrome/?p=ib_protocol_handler";
533 const char kSyncLearnMoreURL
[] =
534 "https://support.google.com/chrome/?p=settings_sign_in";
536 const char kDownloadScanningLearnMoreURL
[] =
537 "https://support.google.com/chrome/?p=ib_download_blocked";
539 const char kDownloadInterruptedLearnMoreURL
[] =
540 "https://support.google.com/chrome/?p=ui_download_errors";
542 const char kSyncEverythingLearnMoreURL
[] =
543 "https://support.google.com/chrome/?p=settings_sync_all";
545 const char kCloudPrintLearnMoreURL
[] =
546 #if defined(OS_CHROMEOS)
547 "https://support.google.com/chromebook/?p=settings_cloud_print";
549 "https://support.google.com/chrome/?p=settings_cloud_print";
552 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
553 "https://www.google.com/cloudprint/learn/";
555 const char kAppLauncherHelpURL
[] =
556 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
558 const char kSyncEncryptionHelpURL
[] =
559 #if defined(OS_CHROMEOS)
560 "https://support.google.com/chromebook/?p=settings_encryption";
562 "https://support.google.com/chrome/?p=settings_encryption";
565 const char kSyncErrorsHelpURL
[] =
566 "https://support.google.com/chrome/?p=settings_sync_error";
568 #if defined(OS_CHROMEOS)
569 const char kNaturalScrollHelpURL
[] =
570 "https://support.google.com/chromebook/?p=simple_scrolling";
573 #if defined(OS_CHROMEOS)
574 const char kLearnMoreEnterpriseURL
[] =
575 "https://support.google.com/chromebook/answer/2535613";
578 const char kRemoveNonCWSExtensionURL
[] =
579 "https://support.google.com/chrome/?p=ui_remove_non_cws_extensions";
582 const char kNotificationsHelpURL
[] =
583 "https://support.google.com/chrome/?p=ui_notifications";
586 const char kNotificationWelcomeLearnMoreURL
[] =
587 "https://support.google.com/chrome/?p=ib_google_now_welcome";
589 // Add hosts here to be included in chrome://chrome-urls (about:about).
590 // These hosts will also be suggested by BuiltinProvider.
591 const char* const kChromeHostURLs
[] = {
593 kChromeUIChromeURLsHost
,
594 kChromeUIComponentsHost
,
595 kChromeUICrashesHost
,
596 kChromeUICreditsHost
,
597 kChromeUIDeviceLogHost
,
600 kChromeUIHistoryHost
,
601 kChromeUIInvalidationsHost
,
602 kChromeUILocalStateHost
,
604 kChromeUIMemoryInternalsHost
,
605 kChromeUINetInternalsHost
,
607 kChromeUIOmniboxHost
,
608 kChromeUIPasswordManagerInternalsHost
,
609 kChromeUIPredictorsHost
,
610 kChromeUIProfilerHost
,
611 kChromeUISignInInternalsHost
,
612 kChromeUISuggestionsHost
,
613 kChromeUISyncInternalsHost
,
615 kChromeUIThumbnailListHost
,
616 kChromeUITranslateInternalsHost
,
617 kChromeUIUserActionsHost
,
618 kChromeUIVersionHost
,
619 kChromeUIVoiceSearchHost
,
620 content::kChromeUIAccessibilityHost
,
621 content::kChromeUIAppCacheInternalsHost
,
622 content::kChromeUIBlobInternalsHost
,
623 content::kChromeUIGpuHost
,
624 content::kChromeUIHistogramHost
,
625 content::kChromeUIIndexedDBInternalsHost
,
626 content::kChromeUIMediaInternalsHost
,
627 content::kChromeUINetworkViewCacheHost
,
628 content::kChromeUIServiceWorkerInternalsHost
,
629 content::kChromeUITracingHost
,
630 content::kChromeUIWebRTCInternalsHost
,
631 #if !defined(OS_ANDROID)
632 #if !defined(OS_CHROMEOS)
633 kChromeUIAppLauncherPageHost
,
635 kChromeUIBookmarksHost
,
636 kChromeUIDownloadsHost
,
638 kChromeUIGCMInternalsHost
,
640 kChromeUIInspectHost
,
641 kChromeUIPluginsHost
,
642 kChromeUIQuotaInternalsHost
,
643 kChromeUISettingsHost
,
644 kChromeUISystemInfoHost
,
647 #if defined(OS_ANDROID) || defined(OS_IOS)
648 kChromeUINetExportHost
,
650 kChromeUICopresenceHost
,
652 #if defined(OS_CHROMEOS)
653 kChromeUICertificateManagerHost
,
654 kChromeUIChooseMobileNetworkHost
,
655 kChromeUICryptohomeHost
,
656 kChromeUIDriveInternalsHost
,
657 kChromeUIFirstRunHost
,
658 kChromeUIImageBurnerHost
,
659 kChromeUIKeyboardOverlayHost
,
661 kChromeUINetworkHost
,
663 kChromeUIOSCreditsHost
,
665 kChromeUIProxySettingsHost
,
667 #if defined(OS_WIN) || defined(OS_CHROMEOS)
668 kChromeUIDiscardsHost
,
670 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
671 kChromeUILinuxProxyConfigHost
,
672 kChromeUISandboxHost
,
675 kChromeUIConflictsHost
,
677 #if !defined(DISABLE_NACL)
680 #if defined(ENABLE_CONFIGURATION_POLICY)
683 #if defined(ENABLE_EXTENSIONS)
684 kChromeUIExtensionsHost
,
686 #if defined(ENABLE_PRINT_PREVIEW)
689 #if defined(ENABLE_SERVICE_DISCOVERY)
690 kChromeUIDevicesHost
,
692 #if defined(ENABLE_WEBRTC)
693 kChromeUIWebRtcLogsHost
,
696 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
698 const char* const kChromeDebugURLs
[] = {
699 content::kChromeUIBadCastCrashURL
,
700 content::kChromeUICrashURL
,
701 content::kChromeUIDumpURL
,
702 content::kChromeUIKillURL
,
703 content::kChromeUIHangURL
,
704 content::kChromeUIShorthangURL
,
705 content::kChromeUIGpuCleanURL
,
706 content::kChromeUIGpuCrashURL
,
707 content::kChromeUIGpuHangURL
,
708 content::kChromeUIPpapiFlashCrashURL
,
709 content::kChromeUIPpapiFlashHangURL
,
710 chrome::kChromeUIQuitURL
,
711 chrome::kChromeUIRestartURL
713 const int kNumberOfChromeDebugURLs
=
714 static_cast<int>(arraysize(kChromeDebugURLs
));
716 const char kChromeNativeScheme
[] = "chrome-native";
718 const char kChromeSearchScheme
[] = "chrome-search";
719 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
720 const char kChromeSearchLocalNtpUrl
[] =
721 "chrome-search://local-ntp/local-ntp.html";
722 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
724 const char kChromeSearchMostVisitedHost
[] = "most-visited";
725 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
727 // Google SafeSearch query parameters.
728 const char kSafeSearchSafeParameter
[] = "safe=active";
729 const char kSafeSearchSsuiParameter
[] = "ssui=on";
731 const char kMediaAccessLearnMoreUrl
[] =
732 "https://support.google.com/chrome/?p=ib_access_cam_mic";
734 const char kLanguageSettingsLearnMoreUrl
[] =
735 #if defined(OS_CHROMEOS)
736 "https://support.google.com/chromebook/answer/1059490";
738 "https://support.google.com/chrome/topic/1678461";
741 #if defined(OS_MACOSX)
742 const char kMac32BitDeprecationURL
[] =
743 #if !defined(ARCH_CPU_64_BITS)
744 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
750 const char kEasyUnlockLearnMoreUrl
[] =
751 "https://support.google.com/chromebook/?p=smart_lock";
753 } // namespace chrome