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 kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
444 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
446 const char kSettingsSearchHelpURL
[] =
447 #if defined(OS_CHROMEOS)
448 "https://support.google.com/chromebook/?p=settings_search_help";
450 "https://support.google.com/chrome/?p=settings_search_help";
453 const char kOmniboxLearnMoreURL
[] =
454 #if defined(OS_CHROMEOS)
455 "https://support.google.com/chromebook/?p=settings_omnibox";
457 "https://support.google.com/chrome/?p=settings_omnibox";
460 const char kPageInfoHelpCenterURL
[] =
461 #if defined(OS_CHROMEOS)
462 "https://support.google.com/chromebook/?p=ui_security_indicator";
464 "https://support.google.com/chrome/?p=ui_security_indicator";
467 const char kCrashReasonURL
[] =
468 #if defined(OS_CHROMEOS)
469 "https://support.google.com/chromebook/?p=e_awsnap";
471 "https://support.google.com/chrome/?p=e_awsnap";
474 const char kCrashReasonFeedbackDisplayedURL
[] =
475 #if defined(OS_CHROMEOS)
476 "https://support.google.com/chromebook/?p=e_awsnap_rl";
478 "https://support.google.com/chrome/?p=e_awsnap_rl";
481 const char kPrivacyLearnMoreURL
[] =
482 #if defined(OS_CHROMEOS)
483 "https://support.google.com/chromebook/?p=settings_privacy";
485 "https://support.google.com/chrome/?p=settings_privacy";
488 const char kDoNotTrackLearnMoreURL
[] =
489 #if defined(OS_CHROMEOS)
490 "https://support.google.com/chromebook/?p=settings_do_not_track";
492 "https://support.google.com/chrome/?p=settings_do_not_track";
495 #if defined(OS_CHROMEOS)
496 const char kAttestationForContentProtectionLearnMoreURL
[] =
497 "https://support.google.com/chromebook/?p=verified_access";
500 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
501 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
503 #if defined(OS_CHROMEOS)
504 "https://support.google.com/chromebook/?p=enhanced_playback";
505 #elif defined(OS_ANDROID)
506 // Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
507 "https://support.google.com/chrome/?p=mobile_protected_content";
510 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
512 const char kLearnMoreReportingURL
[] =
513 "https://support.google.com/chrome/?p=ui_usagestat";
515 #if defined(ENABLE_PLUGIN_INSTALLATION)
516 const char kOutdatedPluginLearnMoreURL
[] =
517 "https://support.google.com/chrome/?p=ib_outdated_plugin";
520 const char kBlockedPluginLearnMoreURL
[] =
521 "https://support.google.com/chrome/?p=ib_blocked_plugin";
523 const char kHotwordLearnMoreURL
[] =
524 "https://support.google.com/chrome/?p=ui_hotword_search";
526 const char kManageAudioHistoryURL
[] =
527 "https://history.google.com/history/audio";
529 const char kLearnMoreRegisterProtocolHandlerURL
[] =
530 "https://support.google.com/chrome/?p=ib_protocol_handler";
532 const char kSyncLearnMoreURL
[] =
533 "https://support.google.com/chrome/?p=settings_sign_in";
535 const char kDownloadScanningLearnMoreURL
[] =
536 "https://support.google.com/chrome/?p=ib_download_blocked";
538 const char kDownloadInterruptedLearnMoreURL
[] =
539 "https://support.google.com/chrome/?p=ui_download_errors";
541 const char kSyncEverythingLearnMoreURL
[] =
542 "https://support.google.com/chrome/?p=settings_sync_all";
544 const char kCloudPrintLearnMoreURL
[] =
545 #if defined(OS_CHROMEOS)
546 "https://support.google.com/chromebook/?p=settings_cloud_print";
548 "https://support.google.com/chrome/?p=settings_cloud_print";
551 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
552 "https://www.google.com/cloudprint/learn/";
554 const char kAppLauncherHelpURL
[] =
555 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
557 const char kSyncEncryptionHelpURL
[] =
558 #if defined(OS_CHROMEOS)
559 "https://support.google.com/chromebook/?p=settings_encryption";
561 "https://support.google.com/chrome/?p=settings_encryption";
564 const char kSyncErrorsHelpURL
[] =
565 "https://support.google.com/chrome/?p=settings_sync_error";
567 #if defined(OS_CHROMEOS)
568 const char kNaturalScrollHelpURL
[] =
569 "https://support.google.com/chromebook/?p=simple_scrolling";
572 #if defined(OS_CHROMEOS)
573 const char kLearnMoreEnterpriseURL
[] =
574 "https://support.google.com/chromebook/answer/2535613";
577 const char kRemoveNonCWSExtensionURL
[] =
578 "https://support.google.com/chrome/?p=ui_remove_non_cws_extensions";
581 const char kNotificationsHelpURL
[] =
582 "https://support.google.com/chrome/?p=ui_notifications";
585 const char kNotificationWelcomeLearnMoreURL
[] =
586 "https://support.google.com/chrome/?p=ib_google_now_welcome";
588 // Add hosts here to be included in chrome://chrome-urls (about:about).
589 // These hosts will also be suggested by BuiltinProvider.
590 const char* const kChromeHostURLs
[] = {
592 kChromeUIChromeURLsHost
,
593 kChromeUIComponentsHost
,
594 kChromeUICrashesHost
,
595 kChromeUICreditsHost
,
596 kChromeUIDeviceLogHost
,
599 kChromeUIHistoryHost
,
600 kChromeUIInvalidationsHost
,
601 kChromeUILocalStateHost
,
603 kChromeUIMemoryInternalsHost
,
604 kChromeUINetInternalsHost
,
606 kChromeUIOmniboxHost
,
607 kChromeUIPasswordManagerInternalsHost
,
608 kChromeUIPredictorsHost
,
609 kChromeUIProfilerHost
,
610 kChromeUISignInInternalsHost
,
611 kChromeUISuggestionsHost
,
612 kChromeUISyncInternalsHost
,
614 kChromeUIThumbnailListHost
,
615 kChromeUITranslateInternalsHost
,
616 kChromeUIUserActionsHost
,
617 kChromeUIVersionHost
,
618 kChromeUIVoiceSearchHost
,
619 content::kChromeUIAccessibilityHost
,
620 content::kChromeUIAppCacheInternalsHost
,
621 content::kChromeUIBlobInternalsHost
,
622 content::kChromeUIGpuHost
,
623 content::kChromeUIHistogramHost
,
624 content::kChromeUIIndexedDBInternalsHost
,
625 content::kChromeUIMediaInternalsHost
,
626 content::kChromeUINetworkViewCacheHost
,
627 content::kChromeUIServiceWorkerInternalsHost
,
628 content::kChromeUITracingHost
,
629 content::kChromeUIWebRTCInternalsHost
,
630 #if !defined(OS_ANDROID)
631 kChromeUIAppLauncherPageHost
,
632 kChromeUIBookmarksHost
,
633 kChromeUIDownloadsHost
,
635 kChromeUIGCMInternalsHost
,
637 kChromeUIInspectHost
,
638 kChromeUIPluginsHost
,
639 kChromeUIQuotaInternalsHost
,
640 kChromeUISettingsHost
,
641 kChromeUISystemInfoHost
,
644 #if defined(OS_ANDROID) || defined(OS_IOS)
645 kChromeUINetExportHost
,
647 kChromeUICopresenceHost
,
649 #if defined(OS_CHROMEOS)
650 kChromeUICertificateManagerHost
,
651 kChromeUIChooseMobileNetworkHost
,
652 kChromeUICryptohomeHost
,
653 kChromeUIDriveInternalsHost
,
654 kChromeUIFirstRunHost
,
655 kChromeUIImageBurnerHost
,
656 kChromeUIKeyboardOverlayHost
,
658 kChromeUINetworkHost
,
660 kChromeUIOSCreditsHost
,
662 kChromeUIProxySettingsHost
,
664 #if defined(OS_WIN) || defined(OS_CHROMEOS)
665 kChromeUIDiscardsHost
,
667 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
668 kChromeUILinuxProxyConfigHost
,
669 kChromeUISandboxHost
,
672 kChromeUIConflictsHost
,
674 #if !defined(DISABLE_NACL)
677 #if defined(ENABLE_CONFIGURATION_POLICY)
680 #if defined(ENABLE_EXTENSIONS)
681 kChromeUIExtensionsHost
,
683 #if defined(ENABLE_PRINT_PREVIEW)
686 #if defined(ENABLE_SERVICE_DISCOVERY)
687 kChromeUIDevicesHost
,
689 #if defined(ENABLE_WEBRTC)
690 kChromeUIWebRtcLogsHost
,
693 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
695 const char* const kChromeDebugURLs
[] = {
696 content::kChromeUIBadCastCrashURL
,
697 content::kChromeUICrashURL
,
698 content::kChromeUIDumpURL
,
699 content::kChromeUIKillURL
,
700 content::kChromeUIHangURL
,
701 content::kChromeUIShorthangURL
,
702 content::kChromeUIGpuCleanURL
,
703 content::kChromeUIGpuCrashURL
,
704 content::kChromeUIGpuHangURL
,
705 content::kChromeUIPpapiFlashCrashURL
,
706 content::kChromeUIPpapiFlashHangURL
,
707 chrome::kChromeUIQuitURL
,
708 chrome::kChromeUIRestartURL
710 const int kNumberOfChromeDebugURLs
=
711 static_cast<int>(arraysize(kChromeDebugURLs
));
713 const char kChromeNativeScheme
[] = "chrome-native";
715 const char kChromeSearchScheme
[] = "chrome-search";
716 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
717 const char kChromeSearchLocalNtpUrl
[] =
718 "chrome-search://local-ntp/local-ntp.html";
719 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
721 const char kChromeSearchMostVisitedHost
[] = "most-visited";
722 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
724 // Google SafeSearch query parameters.
725 const char kSafeSearchSafeParameter
[] = "safe=active";
726 const char kSafeSearchSsuiParameter
[] = "ssui=on";
728 const char kMediaAccessLearnMoreUrl
[] =
729 "https://support.google.com/chrome/?p=ib_access_cam_mic";
731 const char kLanguageSettingsLearnMoreUrl
[] =
732 #if defined(OS_CHROMEOS)
733 "https://support.google.com/chromebook/answer/1059490";
735 "https://support.google.com/chrome/topic/1678461";
738 #if defined(OS_MACOSX)
739 const char kMac32BitDeprecationURL
[] =
740 #if !defined(ARCH_CPU_64_BITS)
741 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
747 const char kEasyUnlockLearnMoreUrl
[] =
748 "https://support.google.com/chromebook/?p=smart_lock";
750 } // namespace chrome