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 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";
267 #if defined(OS_ANDROID)
268 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
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 kChromeUIDeviceEmulatorHost
[] = "device-emulator";
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 kChromeUIOSCreditsHost
[] = "os-credits";
289 const char kChromeUIPowerHost
[] = "power";
290 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
291 const char kChromeUIRotateHost
[] = "rotate";
292 const char kChromeUISalsaHost
[] = "salsa";
293 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
294 const char kChromeUISetTimeHost
[] = "set-time";
295 const char kChromeUISimUnlockHost
[] = "sim-unlock";
296 const char kChromeUISlowHost
[] = "slow";
297 const char kChromeUISlowTraceHost
[] = "slow_trace";
298 const char kChromeUIUserImageHost
[] = "userimage";
300 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
301 const char kOemEulaURLPath
[] = "oem";
302 const char kOnlineEulaURLPath
[] =
303 "https://www.google.com/intl/%s/chrome/eula_text.html";
305 const char kChromeOSCreditsPath
[] =
306 "/opt/google/chrome/resources/about_os_credits.html";
308 const char kChromeOSAssetHost
[] = "chromeos-asset";
309 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
310 #endif // defined(OS_CHROMEOS)
313 const char kChromeUIMetroFlowHost
[] = "make-metro";
316 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
317 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
320 #if !defined(OS_ANDROID) && !defined(OS_IOS)
321 const char kChromeUICopresenceHost
[] = "copresence";
324 #if defined(ENABLE_WEBRTC)
325 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
328 #if defined(ENABLE_MEDIA_ROUTER)
329 const char kChromeUIMediaRouterHost
[] = "media-router";
333 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
334 // listed by the built-in AutocompleteProvider.
335 const char kAutofillSubPage
[] = "autofill";
336 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
337 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
338 const char kContentSettingsSubPage
[] = "content";
339 const char kCreateProfileSubPage
[] = "createProfile";
340 const char kExtensionsSubPage
[] = "extensions";
341 const char kHandlerSettingsSubPage
[] = "handlers";
342 const char kImportDataSubPage
[] = "importData";
343 const char kLanguageOptionsSubPage
[] = "languages";
344 const char kManageProfileSubPage
[] = "manageProfile";
345 const char kPasswordManagerSubPage
[] = "passwords";
346 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
347 const char kSearchEnginesSubPage
[] = "searchEngines";
348 const char kSearchSubPage
[] = "search";
349 const char kSearchUsersSubPage
[] = "search#Users";
350 const char kSyncSetupSubPage
[] = "syncSetup";
351 #if defined(OS_CHROMEOS)
352 const char kInternetOptionsSubPage
[] = "internet";
353 const char kChangeProfilePictureSubPage
[] = "changePicture";
356 // Extension sub pages.
357 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
359 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
360 const char kExtensionResourceInvalidRequestURL
[] =
361 "chrome-extension-resource://invalid/";
363 const char kSyncGoogleDashboardURL
[] =
364 "https://www.google.com/settings/chrome/sync/";
366 const char kPasswordManagerLearnMoreURL
[] =
367 #if defined(OS_CHROMEOS)
368 "https://support.google.com/chromebook/?p=settings_password";
370 "https://support.google.com/chrome/?p=settings_password";
373 const char kUpgradeHelpCenterBaseURL
[] =
374 "http://support.google.com/installer/?product={8A69D345-D564-463c-AFF1-A69D9E530F96}&error=";
376 const char kPasswordManagerAccountDashboardURL
[] =
377 "https://passwords.google.com/settings/passwords";
379 const char kExtensionControlledSettingLearnMoreURL
[] =
380 "https://support.google.com/chrome/?p=ui_settings_api_extension";
382 const char kChromeHelpViaKeyboardURL
[] =
383 #if defined(OS_CHROMEOS)
384 #if defined(OFFICIAL_BUILD)
385 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
387 "https://support.google.com/chromebook/?p=help&ctx=keyboard";
388 #endif // defined(OFFICIAL_BUILD
390 "https://support.google.com/chrome/?p=help&ctx=keyboard";
391 #endif // defined(OS_CHROMEOS)
393 const char kChromeHelpViaMenuURL
[] =
394 #if defined(OS_CHROMEOS)
395 #if defined(OFFICIAL_BUILD)
396 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
398 "https://support.google.com/chromebook/?p=help&ctx=menu";
399 #endif // defined(OFFICIAL_BUILD
401 "https://support.google.com/chrome/?p=help&ctx=menu";
402 #endif // defined(OS_CHROMEOS)
404 const char kChromeHelpViaWebUIURL
[] =
405 #if defined(OS_CHROMEOS)
406 #if defined(OFFICIAL_BUILD)
407 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
409 "https://support.google.com/chromebook/?p=help&ctx=settings";
410 #endif // defined(OFFICIAL_BUILD
412 "https://support.google.com/chrome/?p=help&ctx=settings";
413 #endif // defined(OS_CHROMEOS)
415 #if defined(OS_CHROMEOS)
416 const char kChromeAccessibilityHelpURL
[] =
417 "https://support.google.com/chromebook/?p=accessibility_menu";
418 const char kChromeAccessibilitySettingsURL
[] =
419 "/chromevox/background/options.html";
420 #endif // defined(OS_CHROMEOS)
422 #if defined(ENABLE_ONE_CLICK_SIGNIN)
423 const char kChromeSyncLearnMoreURL
[] =
424 "https://support.google.com/chrome/answer/165139";
426 const char kChromeSyncMergeTroubleshootingURL
[] =
427 "https://support.google.com/chrome/answer/1181420#merge";
428 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
430 #if defined(OS_MACOSX)
431 const char kChromeEnterpriseSignInLearnMoreURL
[] =
432 "https://support.google.com/chromebook/answer/1331549";
435 const char kResetProfileSettingsLearnMoreURL
[] =
436 "https://support.google.com/chrome/?p=ui_reset_settings";
438 const char kAutomaticSettingsResetLearnMoreURL
[] =
439 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
441 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
443 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
445 const char kSettingsSearchHelpURL
[] =
446 #if defined(OS_CHROMEOS)
447 "https://support.google.com/chromebook/?p=settings_search_help";
449 "https://support.google.com/chrome/?p=settings_search_help";
452 const char kOmniboxLearnMoreURL
[] =
453 #if defined(OS_CHROMEOS)
454 "https://support.google.com/chromebook/?p=settings_omnibox";
456 "https://support.google.com/chrome/?p=settings_omnibox";
459 const char kPageInfoHelpCenterURL
[] =
460 #if defined(OS_CHROMEOS)
461 "https://support.google.com/chromebook/?p=ui_security_indicator";
463 "https://support.google.com/chrome/?p=ui_security_indicator";
466 const char kCrashReasonURL
[] =
467 #if defined(OS_CHROMEOS)
468 "https://support.google.com/chromebook/?p=e_awsnap";
470 "https://support.google.com/chrome/?p=e_awsnap";
473 const char kPrivacyLearnMoreURL
[] =
474 #if defined(OS_CHROMEOS)
475 "https://support.google.com/chromebook/?p=settings_privacy";
477 "https://support.google.com/chrome/?p=settings_privacy";
480 const char kDoNotTrackLearnMoreURL
[] =
481 #if defined(OS_CHROMEOS)
482 "https://support.google.com/chromebook/?p=settings_do_not_track";
484 "https://support.google.com/chrome/?p=settings_do_not_track";
487 #if defined(OS_CHROMEOS)
488 const char kAttestationForContentProtectionLearnMoreURL
[] =
489 "https://support.google.com/chromebook/?p=verified_access";
492 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
493 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
495 #if defined(OS_CHROMEOS)
496 "https://support.google.com/chromebook/?p=enhanced_playback";
497 #elif defined(OS_ANDROID)
498 // Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
499 "https://support.google.com/chrome/?p=mobile_protected_content";
502 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
504 const char kLearnMoreReportingURL
[] =
505 "https://support.google.com/chrome/?p=ui_usagestat";
507 #if defined(ENABLE_PLUGIN_INSTALLATION)
508 const char kOutdatedPluginLearnMoreURL
[] =
509 "https://support.google.com/chrome/?p=ib_outdated_plugin";
512 const char kBlockedPluginLearnMoreURL
[] =
513 "https://support.google.com/chrome/?p=ib_blocked_plugin";
515 const char kHotwordLearnMoreURL
[] =
516 "https://support.google.com/chrome/?p=ui_hotword_search";
518 const char kManageAudioHistoryURL
[] =
519 "https://history.google.com/history/audio";
521 const char kLearnMoreRegisterProtocolHandlerURL
[] =
522 "https://support.google.com/chrome/?p=ib_protocol_handler";
524 const char kSyncLearnMoreURL
[] =
525 "https://support.google.com/chrome/?p=settings_sign_in";
527 const char kDownloadScanningLearnMoreURL
[] =
528 "https://support.google.com/chrome/?p=ib_download_blocked";
530 const char kDownloadInterruptedLearnMoreURL
[] =
531 "https://support.google.com/chrome/?p=ui_download_errors";
533 const char kSyncEverythingLearnMoreURL
[] =
534 "https://support.google.com/chrome/?p=settings_sync_all";
536 const char kCloudPrintLearnMoreURL
[] =
537 #if defined(OS_CHROMEOS)
538 "https://support.google.com/chromebook/?p=settings_cloud_print";
540 "https://support.google.com/chrome/?p=settings_cloud_print";
543 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
544 "https://www.google.com/cloudprint/learn/";
546 const char kAppLauncherHelpURL
[] =
547 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
549 const char kSyncEncryptionHelpURL
[] =
550 #if defined(OS_CHROMEOS)
551 "https://support.google.com/chromebook/?p=settings_encryption";
553 "https://support.google.com/chrome/?p=settings_encryption";
556 const char kSyncErrorsHelpURL
[] =
557 "https://support.google.com/chrome/?p=settings_sync_error";
559 #if defined(OS_CHROMEOS)
560 const char kNaturalScrollHelpURL
[] =
561 "https://support.google.com/chromebook/?p=simple_scrolling";
564 #if defined(OS_CHROMEOS)
565 const char kLearnMoreEnterpriseURL
[] =
566 "https://support.google.com/chromebook/answer/2535613";
569 const char kRemoveNonCWSExtensionURL
[] =
570 "https://support.google.com/chrome/?p=ui_remove_non_cws_extensions";
573 const char kNotificationsHelpURL
[] =
574 "https://support.google.com/chrome/?p=ui_notifications";
577 const char kNotificationWelcomeLearnMoreURL
[] =
578 "https://support.google.com/chrome/?p=ib_google_now_welcome";
580 // Add hosts here to be included in chrome://chrome-urls (about:about).
581 // These hosts will also be suggested by BuiltinProvider.
582 const char* const kChromeHostURLs
[] = {
584 kChromeUIChromeURLsHost
,
585 kChromeUIComponentsHost
,
586 kChromeUICrashesHost
,
587 kChromeUICreditsHost
,
588 kChromeUIDeviceLogHost
,
591 kChromeUIHistoryHost
,
592 kChromeUIInvalidationsHost
,
593 kChromeUILocalStateHost
,
595 kChromeUIMemoryInternalsHost
,
596 kChromeUINetInternalsHost
,
598 kChromeUIOmniboxHost
,
599 kChromeUIPasswordManagerInternalsHost
,
600 kChromeUIPredictorsHost
,
601 kChromeUIProfilerHost
,
602 kChromeUISignInInternalsHost
,
603 kChromeUISuggestionsHost
,
604 kChromeUISyncInternalsHost
,
606 kChromeUIThumbnailListHost
,
607 kChromeUITranslateInternalsHost
,
608 kChromeUIUserActionsHost
,
609 kChromeUIVersionHost
,
610 kChromeUIVoiceSearchHost
,
611 content::kChromeUIAccessibilityHost
,
612 content::kChromeUIAppCacheInternalsHost
,
613 content::kChromeUIBlobInternalsHost
,
614 content::kChromeUIGpuHost
,
615 content::kChromeUIHistogramHost
,
616 content::kChromeUIIndexedDBInternalsHost
,
617 content::kChromeUIMediaInternalsHost
,
618 content::kChromeUINetworkViewCacheHost
,
619 content::kChromeUIServiceWorkerInternalsHost
,
620 content::kChromeUITracingHost
,
621 content::kChromeUIWebRTCInternalsHost
,
622 #if !defined(OS_ANDROID)
623 kChromeUIAppLauncherPageHost
,
624 kChromeUIBookmarksHost
,
625 kChromeUIDownloadsHost
,
627 kChromeUIGCMInternalsHost
,
629 kChromeUIInspectHost
,
630 kChromeUIPluginsHost
,
631 kChromeUIQuotaInternalsHost
,
632 kChromeUISettingsHost
,
633 kChromeUISystemInfoHost
,
636 #if defined(OS_ANDROID) || defined(OS_IOS)
637 kChromeUINetExportHost
,
639 kChromeUICopresenceHost
,
641 #if defined(OS_CHROMEOS)
642 kChromeUICertificateManagerHost
,
643 kChromeUIChooseMobileNetworkHost
,
644 kChromeUICryptohomeHost
,
645 kChromeUIDriveInternalsHost
,
646 kChromeUIFirstRunHost
,
647 kChromeUIImageBurnerHost
,
648 kChromeUIKeyboardOverlayHost
,
650 kChromeUINetworkHost
,
652 kChromeUIOSCreditsHost
,
654 kChromeUIProxySettingsHost
,
656 #if defined(OS_WIN) || defined(OS_CHROMEOS)
657 kChromeUIDiscardsHost
,
659 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
660 kChromeUILinuxProxyConfigHost
,
661 kChromeUISandboxHost
,
664 kChromeUIConflictsHost
,
666 #if !defined(DISABLE_NACL)
669 #if defined(ENABLE_CONFIGURATION_POLICY)
672 #if defined(ENABLE_EXTENSIONS)
673 kChromeUIExtensionsHost
,
675 #if defined(ENABLE_PRINT_PREVIEW)
678 #if defined(ENABLE_SERVICE_DISCOVERY)
679 kChromeUIDevicesHost
,
681 #if defined(ENABLE_WEBRTC)
682 kChromeUIWebRtcLogsHost
,
685 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
687 const char* const kChromeDebugURLs
[] = {
688 content::kChromeUIBadCastCrashURL
,
689 content::kChromeUICrashURL
,
690 content::kChromeUIDumpURL
,
691 content::kChromeUIKillURL
,
692 content::kChromeUIHangURL
,
693 content::kChromeUIShorthangURL
,
694 content::kChromeUIGpuCleanURL
,
695 content::kChromeUIGpuCrashURL
,
696 content::kChromeUIGpuHangURL
,
697 content::kChromeUIPpapiFlashCrashURL
,
698 content::kChromeUIPpapiFlashHangURL
,
699 chrome::kChromeUIQuitURL
,
700 chrome::kChromeUIRestartURL
702 const int kNumberOfChromeDebugURLs
=
703 static_cast<int>(arraysize(kChromeDebugURLs
));
705 const char kChromeNativeScheme
[] = "chrome-native";
707 const char kChromeSearchScheme
[] = "chrome-search";
708 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
709 const char kChromeSearchLocalNtpUrl
[] =
710 "chrome-search://local-ntp/local-ntp.html";
711 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
713 const char kChromeSearchMostVisitedHost
[] = "most-visited";
714 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
716 // Google SafeSearch query parameters.
717 const char kSafeSearchSafeParameter
[] = "safe=active";
718 const char kSafeSearchSsuiParameter
[] = "ssui=on";
720 const char kMediaAccessLearnMoreUrl
[] =
721 "https://support.google.com/chrome/?p=ib_access_cam_mic";
723 const char kLanguageSettingsLearnMoreUrl
[] =
724 #if defined(OS_CHROMEOS)
725 "https://support.google.com/chromebook/answer/1059490";
727 "https://support.google.com/chrome/topic/1678461";
730 #if defined(OS_MACOSX)
731 const char kMac32BitDeprecationURL
[] =
732 #if !defined(ARCH_CPU_64_BITS)
733 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
739 const char kEasyUnlockLearnMoreUrl
[] =
740 "https://support.google.com/chromebook/?p=smart_lock";
742 } // namespace chrome