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 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 kChromeUIContextualSearchPromoURL
[] =
35 "chrome://contextual-search-promo";
36 const char kChromeUICrashesURL
[] = "chrome://crashes/";
37 const char kChromeUICreditsURL
[] = "chrome://credits/";
38 const char kChromeUIDevicesURL
[] = "chrome://devices/";
39 const char kChromeUIDevToolsURL
[] =
40 "chrome-devtools://devtools/bundled/devtools.html";
41 const char kChromeUIDomainReliabilityInternalsURL
[] =
42 "chrome://domain-reliability-internals/";
43 const char kChromeUIDownloadsURL
[] = "chrome://downloads/";
44 const char kChromeUIEditSearchEngineDialogURL
[] = "chrome://editsearchengine/";
45 const char kChromeUIExtensionIconURL
[] = "chrome://extension-icon/";
46 const char kChromeUIExtensionsFrameURL
[] = "chrome://extensions-frame/";
47 const char kChromeUIExtensionsURL
[] = "chrome://extensions/";
48 const char kChromeUIFallbackIconURL
[] = "chrome://fallback-icon/";
49 const char kChromeUIFaviconURL
[] = "chrome://favicon/";
50 const char kChromeUIFeedbackURL
[] = "chrome://feedback/";
51 const char kChromeUIFlagsURL
[] = "chrome://flags/";
52 const char kChromeUIFlashURL
[] = "chrome://flash/";
53 const char kChromeUIGCMInternalsURL
[] = "chrome://gcm-internals/";
54 const char kChromeUIHelpFrameURL
[] = "chrome://help-frame/";
55 const char kChromeUIHistoryURL
[] = "chrome://history/";
56 const char kChromeUIHistoryFrameURL
[] = "chrome://history-frame/";
57 const char kChromeUIIdentityInternalsURL
[] = "chrome://identity-internals/";
58 const char kChromeUIInspectURL
[] = "chrome://inspect/";
59 const char kChromeUIInstantURL
[] = "chrome://instant/";
60 const char kChromeUIInterstitialURL
[] = "chrome://interstitials/";
61 const char kChromeUIInvalidationsURL
[] = "chrome://invalidations/";
62 const char kChromeUILargeIconURL
[] = "chrome://large-icon/";
63 const char kChromeUIMdSettingsURL
[] = "chrome://md-settings/";
64 const char kChromeUIMemoryRedirectURL
[] = "chrome://memory-redirect/";
65 const char kChromeUIMemoryURL
[] = "chrome://memory/";
66 const char kChromeUIMetroFlowURL
[] = "chrome://make-metro/";
67 const char kChromeUINaClURL
[] = "chrome://nacl/";
68 const char kChromeUINetInternalsURL
[] = "chrome://net-internals/";
69 const char kChromeUINewProfile
[] = "chrome://newprofile/";
70 const char kChromeUINewTabURL
[] = "chrome://newtab/";
71 const char kChromeUIOmniboxURL
[] = "chrome://omnibox/";
72 const char kChromeUIPluginsURL
[] = "chrome://plugins/";
73 const char kChromeUIPolicyURL
[] = "chrome://policy/";
74 const char kChromeUIProfileSigninConfirmationURL
[] =
75 "chrome://profile-signin-confirmation/";
76 const char kChromeUIUserManagerURL
[] = "chrome://user-manager/";
77 const char kChromeUIPrintURL
[] = "chrome://print/";
78 const char kChromeUIQuitURL
[] = "chrome://quit/";
79 const char kChromeUIRestartURL
[] = "chrome://restart/";
80 const char kChromeUISettingsURL
[] = "chrome://settings/";
81 const char kChromeUIContentSettingsURL
[] = "chrome://settings/content";
82 const char kChromeUISettingsFrameURL
[] = "chrome://settings-frame/";
83 const char kChromeUISSLClientCertificateSelectorURL
[] = "chrome://select-cert/";
84 const char kChromeUISuggestions
[] = "chrome://suggestions/";
85 const char kChromeUISuggestionsInternalsURL
[] =
86 "chrome://suggestions-internals/";
87 const char kChromeUISupervisedUserPassphrasePageURL
[] =
88 "chrome://managed-user-passphrase/";
89 const char kChromeUITermsURL
[] = "chrome://terms/";
90 const char kChromeUIThemeURL
[] = "chrome://theme/";
91 const char kChromeUIThumbnailURL
[] = "chrome://thumb/";
92 const char kChromeUIThumbnailListURL
[] = "chrome://thumbnails/";
93 const char kChromeUIUberURL
[] = "chrome://chrome/";
94 const char kChromeUIUberFrameURL
[] = "chrome://uber-frame/";
95 const char kChromeUIUserActionsURL
[] = "chrome://user-actions/";
96 const char kChromeUIVersionURL
[] = "chrome://version/";
97 const char kChromeUIVoiceSearchURL
[] = "chrome://voicesearch/";
99 #if defined(OS_ANDROID)
100 const char kChromeUINativeScheme
[] = "chrome-native";
101 const char kChromeUINativeNewTabURL
[] = "chrome-native://newtab/";
102 const char kChromeUINativeBookmarksURL
[] = "chrome-native://bookmarks/";
103 const char kChromeUINativeRecentTabsURL
[] = "chrome-native://recent-tabs/";
106 #if defined(OS_CHROMEOS)
107 const char kChromeUIActivationMessage
[] = "chrome://activationmessage/";
108 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
109 const char kChromeUICertificateManagerDialogURL
[] =
110 "chrome://certificate-manager/";
111 const char kChromeUIChooseMobileNetworkURL
[] =
112 "chrome://choose-mobile-network/";
113 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
114 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
115 const char kChromeUIIdleLogoutDialogURL
[] = "chrome://idle-logout/";
116 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
117 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
118 const char kChromeUILockScreenURL
[] = "chrome://lock/";
119 const char kChromeUIMediaplayerURL
[] = "chrome://mediaplayer/";
120 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
121 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
122 const char kChromeUIOobeURL
[] = "chrome://oobe/";
123 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
124 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
125 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
126 const char kChromeUISetTimeURL
[] = "chrome://set-time/";
127 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
128 const char kChromeUISlideshowURL
[] = "chrome://slideshow/";
129 const char kChromeUISlowURL
[] = "chrome://slow/";
130 const char kChromeUISystemInfoURL
[] = "chrome://system/";
131 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
132 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
135 #if defined(USE_AURA)
136 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
137 const char kChromeUIGestureConfigHost
[] = "gesture";
138 const char kChromeUISalsaURL
[] = "chrome://salsa/";
139 const char kChromeUISalsaHost
[] = "salsa";
142 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
143 const char kChromeUITabModalConfirmDialogURL
[] =
144 "chrome://tab-modal-confirm-dialog/";
147 #if !defined(OS_ANDROID) && !defined(OS_IOS)
148 const char kChromeUICopresenceURL
[] = "chrome://copresence/";
151 #if defined(ENABLE_WEBRTC)
152 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
155 #if defined(ENABLE_MEDIA_ROUTER)
156 const char kChromeUIMediaRouterURL
[] = "chrome://media-router/";
159 // Add Chrome UI hosts here, in alphabetical order.
160 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
161 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
162 const char kChromeUIAboutHost
[] = "about";
163 const char kChromeUIBlankHost
[] = "blank";
164 const char kChromeUIAppLauncherPageHost
[] = "apps";
165 const char kChromeUIAppListStartPageHost
[] = "app-list";
166 const char kChromeUIBookmarksHost
[] = "bookmarks";
167 const char kChromeUICacheHost
[] = "cache";
168 const char kChromeUICertificateViewerHost
[] = "view-cert";
169 const char kChromeUICertificateViewerDialogHost
[] = "view-cert-dialog";
170 const char kChromeUIChromeSigninHost
[] = "chrome-signin";
171 const char kChromeUIChromeURLsHost
[] = "chrome-urls";
172 const char kChromeUICloudPrintResourcesHost
[] = "cloudprintresources";
173 const char kChromeUICloudPrintSetupHost
[] = "cloudprintsetup";
174 const char kChromeUIConflictsHost
[] = "conflicts";
175 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
176 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
177 const char kChromeUICrashesHost
[] = "crashes";
178 const char kChromeUICrashHost
[] = "crash";
179 const char kChromeUICreditsHost
[] = "credits";
180 const char kChromeUIDefaultHost
[] = "version";
181 const char kChromeUIDeviceLogHost
[] = "device-log";
182 const char kChromeUIDevicesHost
[] = "devices";
183 const char kChromeUIDevToolsHost
[] = "devtools";
184 const char kChromeUIDevToolsBundledPath
[] = "bundled";
185 const char kChromeUIDevToolsRemotePath
[] = "remote";
186 const char kChromeUIDNSHost
[] = "dns";
187 const char kChromeUIDomainReliabilityInternalsHost
[] =
188 "domain-reliability-internals";
189 const char kChromeUIDownloadsHost
[] = "downloads";
190 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
191 const char kChromeUIEditSearchEngineDialogHost
[] = "editsearchengine";
192 const char kChromeUIExtensionIconHost
[] = "extension-icon";
193 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
194 const char kChromeUIExtensionsHost
[] = "extensions";
195 const char kChromeUIFallbackIconHost
[] = "fallback-icon";
196 const char kChromeUIFaviconHost
[] = "favicon";
197 const char kChromeUIFeedbackHost
[] = "feedback";
198 const char kChromeUIFlagsHost
[] = "flags";
199 const char kChromeUIFlashHost
[] = "flash";
200 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
201 const char kChromeUIHangHost
[] = "hang";
202 const char kChromeUIHelpFrameHost
[] = "help-frame";
203 const char kChromeUIHelpHost
[] = "help";
204 const char kChromeUIHistoryHost
[] = "history";
205 const char kChromeUIHistoryFrameHost
[] = "history-frame";
206 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
207 const char kChromeUIInspectHost
[] = "inspect";
208 const char kChromeUIInstantHost
[] = "instant";
209 const char kChromeUIInterstitialHost
[] = "interstitials";
210 const char kChromeUIInvalidationsHost
[] = "invalidations";
211 const char kChromeUIKillHost
[] = "kill";
212 const char kChromeUILargeIconHost
[] = "large-icon";
213 const char kChromeUILocalStateHost
[] = "local-state";
214 const char kChromeUIMdSettingsHost
[] = "md-settings";
215 const char kChromeUIMemoryHost
[] = "memory";
216 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
217 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
218 const char kChromeUIMetroFlowHost
[] = "make-metro";
219 const char kChromeUINaClHost
[] = "nacl";
220 const char kChromeUINetExportHost
[] = "net-export";
221 const char kChromeUINetInternalsHost
[] = "net-internals";
222 const char kChromeUINewTabHost
[] = "newtab";
223 const char kChromeUIOmniboxHost
[] = "omnibox";
224 const char kChromeUIPasswordManagerInternalsHost
[] =
225 "password-manager-internals";
226 const char kChromeUIPluginsHost
[] = "plugins";
227 const char kChromeUIComponentsHost
[] = "components";
228 const char kChromeUIPolicyHost
[] = "policy";
229 const char kChromeUIProfileSigninConfirmationHost
[] =
230 "profile-signin-confirmation";
231 const char kChromeUIUserManagerHost
[] = "user-manager";
232 const char kChromeUIPredictorsHost
[] = "predictors";
233 const char kChromeUIProfilerHost
[] = "profiler";
234 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
235 const char kChromeUIQuitHost
[] = "quit";
236 const char kChromeUIRestartHost
[] = "restart";
237 const char kChromeUISettingsHost
[] = "settings";
238 const char kChromeUISettingsFrameHost
[] = "settings-frame";
239 const char kChromeUIShorthangHost
[] = "shorthang";
240 const char kChromeUISignInInternalsHost
[] = "signin-internals";
241 const char kChromeUISSLClientCertificateSelectorHost
[] = "select-cert";
242 const char kChromeUISuggestionsHost
[] = "suggestions";
243 const char kChromeUISuggestionsInternalsHost
[] = "suggestions-internals";
244 const char kChromeUISupervisedUserPassphrasePageHost
[] =
245 "managed-user-passphrase";
246 const char kChromeUISyncHost
[] = "sync";
247 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
248 const char kChromeUISyncInternalsHost
[] = "sync-internals";
249 const char kChromeUISyncResourcesHost
[] = "syncresources";
250 const char kChromeUISystemInfoHost
[] = "system";
251 const char kChromeUITermsHost
[] = "terms";
252 const char kChromeUIThemeHost
[] = "theme";
253 const char kChromeUIThumbnailHost
[] = "thumb";
254 const char kChromeUIThumbnailHost2
[] = "thumb2";
255 const char kChromeUIThumbnailListHost
[] = "thumbnails";
256 const char kChromeUITouchIconHost
[] = "touch-icon";
257 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
258 const char kChromeUIUberFrameHost
[] = "uber-frame";
259 const char kChromeUIUberHost
[] = "chrome";
260 const char kChromeUIUserActionsHost
[] = "user-actions";
261 const char kChromeUIVersionHost
[] = "version";
262 const char kChromeUIVoiceSearchHost
[] = "voicesearch";
263 const char kChromeUIWebRTCDeviceProviderHost
[] =
264 "webrtc-device-provider";
265 const char kChromeUIWorkersHost
[] = "workers";
267 const char kChromeUIScreenshotPath
[] = "screenshots";
268 const char kChromeUIThemePath
[] = "theme";
270 #if defined(ENABLE_PRINT_PREVIEW)
271 const char kChromeUIPrintHost
[] = "print";
272 #endif // ENABLE_PRINT_PREVIEW
274 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
275 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
276 const char kChromeUISandboxHost
[] = "sandbox";
279 #if defined(OS_CHROMEOS)
280 const char kChromeUIActivationMessageHost
[] = "activationmessage";
281 const char kChromeUIAppLaunchHost
[] = "app-launch";
282 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
283 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
284 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
285 const char kChromeUICryptohomeHost
[] = "cryptohome";
286 const char kChromeUIDiscardsHost
[] = "discards";
287 const char kChromeUIFirstRunHost
[] = "first-run";
288 const char kChromeUIIdleLogoutDialogHost
[] = "idle-logout";
289 const char kChromeUIImageBurnerHost
[] = "imageburner";
290 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
291 const char kChromeUILockScreenHost
[] = "lock";
292 const char kChromeUILoginContainerHost
[] = "login-container";
293 const char kChromeUILoginHost
[] = "login";
294 const char kChromeUIMediaplayerHost
[] = "mediaplayer";
295 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
296 const char kChromeUINfcDebugHost
[] = "nfc-debug";
297 const char kChromeUINetworkHost
[] = "network";
298 const char kChromeUIOobeHost
[] = "oobe";
299 const char kChromeUIOobeMdHost
[] = "oobe-md";
300 const char kChromeUIOSCreditsHost
[] = "os-credits";
301 const char kChromeUIPowerHost
[] = "power";
302 const char kChromeUIProvidedFileSystemsHost
[] = "provided-file-systems";
303 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
304 const char kChromeUIRotateHost
[] = "rotate";
305 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
306 const char kChromeUISetTimeHost
[] = "set-time";
307 const char kChromeUISimUnlockHost
[] = "sim-unlock";
308 const char kChromeUISlideshowHost
[] = "slideshow";
309 const char kChromeUISlowHost
[] = "slow";
310 const char kChromeUISlowTraceHost
[] = "slow_trace";
311 const char kChromeUIUserImageHost
[] = "userimage";
313 const char kChromeUIMenu
[] = "menu";
314 const char kChromeUINetworkMenu
[] = "network-menu";
315 const char kChromeUIWrenchMenu
[] = "wrench-menu";
317 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
318 const char kOemEulaURLPath
[] = "oem";
319 const char kOnlineEulaURLPath
[] =
320 "https://www.google.com/intl/%s/chrome/eula_text.html";
322 const char kChromeOSCreditsPath
[] =
323 "/opt/google/chrome/resources/about_os_credits.html";
325 const char kChromeOSAssetHost
[] = "chromeos-asset";
326 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
329 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
330 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
333 #if !defined(OS_ANDROID) && !defined(OS_IOS)
334 const char kChromeUICopresenceHost
[] = "copresence";
337 #if defined(ENABLE_WEBRTC)
338 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
341 #if defined(ENABLE_MEDIA_ROUTER)
342 const char kChromeUIMediaRouterHost
[] = "media-router";
346 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
347 // listed by the built-in AutocompleteProvider.
348 const char kAutofillSubPage
[] = "autofill";
349 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
350 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
351 const char kContentSettingsSubPage
[] = "content";
352 const char kCreateProfileSubPage
[] = "createProfile";
353 const char kExtensionsSubPage
[] = "extensions";
354 const char kHandlerSettingsSubPage
[] = "handlers";
355 const char kImportDataSubPage
[] = "importData";
356 const char kLanguageOptionsSubPage
[] = "languages";
357 const char kManageProfileSubPage
[] = "manageProfile";
358 const char kPasswordManagerSubPage
[] = "passwords";
359 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
360 const char kSearchEnginesSubPage
[] = "searchEngines";
361 const char kSearchSubPage
[] = "search";
362 const char kSearchUsersSubPage
[] = "search#Users";
363 const char kSupervisedUserSettingsSubPage
[] = "managedUser";
364 const char kSyncSetupSubPage
[] = "syncSetup";
365 #if defined(OS_CHROMEOS)
366 const char kInternetOptionsSubPage
[] = "internet";
367 const char kBluetoothAddDeviceSubPage
[] = "bluetooth";
368 const char kChangeProfilePictureSubPage
[] = "changePicture";
371 // Extension sub pages.
372 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
374 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
375 const char kExtensionResourceInvalidRequestURL
[] =
376 "chrome-extension-resource://invalid/";
378 const char kSyncGoogleDashboardURL
[] =
379 "https://www.google.com/settings/chrome/sync/";
381 const char kPasswordManagerLearnMoreURL
[] =
382 #if defined(OS_CHROMEOS)
383 "https://support.google.com/chromeos/?p=settings_password";
385 "https://support.google.com/chrome/?p=settings_password";
388 const char kPasswordManagerAccountDashboardURL
[] =
389 "https://passwords.google.com/settings/passwords";
391 const char kExtensionControlledSettingLearnMoreURL
[] =
392 "https://support.google.com/chrome/?p=ui_settings_api_extension";
394 const char kChromeHelpViaKeyboardURL
[] =
395 #if defined(OS_CHROMEOS)
396 #if defined(OFFICIAL_BUILD)
397 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
399 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
400 #endif // defined(OFFICIAL_BUILD
402 "https://support.google.com/chrome/?p=help&ctx=keyboard";
403 #endif // defined(OS_CHROMEOS)
405 const char kChromeHelpViaMenuURL
[] =
406 #if defined(OS_CHROMEOS)
407 #if defined(OFFICIAL_BUILD)
408 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
410 "https://support.google.com/chromeos/?p=help&ctx=menu";
411 #endif // defined(OFFICIAL_BUILD
413 "https://support.google.com/chrome/?p=help&ctx=menu";
414 #endif // defined(OS_CHROMEOS)
416 const char kChromeHelpViaWebUIURL
[] =
417 #if defined(OS_CHROMEOS)
418 #if defined(OFFICIAL_BUILD)
419 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
421 "https://support.google.com/chromeos/?p=help&ctx=settings";
422 #endif // defined(OFFICIAL_BUILD
424 "https://support.google.com/chrome/?p=help&ctx=settings";
425 #endif // defined(OS_CHROMEOS)
427 #if defined(OS_CHROMEOS)
428 const char kChromeAccessibilityHelpURL
[] =
429 "https://support.google.com/chromeos/?p=accessibility_menu";
430 const char kChromeAccessibilitySettingsURL
[] =
431 "/chromevox/background/options.html";
432 #endif // defined(OS_CHROMEOS)
434 #if defined(ENABLE_ONE_CLICK_SIGNIN)
435 const char kChromeSyncLearnMoreURL
[] =
436 "http://support.google.com/chrome/bin/answer.py?answer=165139";
438 const char kChromeSyncMergeTroubleshootingURL
[] =
439 "https://support.google.com/chrome/answer/1181420#merge";
440 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
442 const char kChromeEnterpriseSignInLearnMoreURL
[] =
443 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
445 const char kResetProfileSettingsLearnMoreURL
[] =
446 "https://support.google.com/chrome/?p=ui_reset_settings";
448 const char kAutomaticSettingsResetLearnMoreURL
[] =
449 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
451 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
453 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
455 const char kSettingsSearchHelpURL
[] =
456 #if defined(OS_CHROMEOS)
457 "https://support.google.com/chromeos/?p=settings_search_help";
459 "https://support.google.com/chrome/?p=settings_search_help";
462 const char kOmniboxLearnMoreURL
[] =
463 #if defined(OS_CHROMEOS)
464 "https://support.google.com/chromeos/?p=settings_omnibox";
466 "https://support.google.com/chrome/?p=settings_omnibox";
469 const char kPageInfoHelpCenterURL
[] =
470 #if defined(OS_CHROMEOS)
471 "https://support.google.com/chromeos/?p=ui_security_indicator";
473 "https://support.google.com/chrome/?p=ui_security_indicator";
476 const char kCrashReasonURL
[] =
477 #if defined(OS_CHROMEOS)
478 "https://support.google.com/chromeos/?p=e_awsnap";
480 "https://support.google.com/chrome/?p=e_awsnap";
483 const char kKillReasonURL
[] =
484 #if defined(OS_CHROMEOS)
485 "https://support.google.com/chromeos/?p=e_deadjim";
487 "https://support.google.com/chrome/?p=e_deadjim";
490 const char kPrivacyLearnMoreURL
[] =
491 #if defined(OS_CHROMEOS)
492 "https://support.google.com/chromeos/?p=settings_privacy";
494 "https://support.google.com/chrome/?p=settings_privacy";
497 const char kDoNotTrackLearnMoreURL
[] =
498 #if defined(OS_CHROMEOS)
499 "https://support.google.com/chromeos/?p=settings_do_not_track";
501 "https://support.google.com/chrome/?p=settings_do_not_track";
504 #if defined(OS_CHROMEOS)
505 const char kAttestationForContentProtectionLearnMoreURL
[] =
506 "https://support.google.com/chromebook/?p=verified_access";
508 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
509 "https://support.google.com/chromebook/?p=enhanced_playback";
512 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
514 const char kLearnMoreReportingURL
[] =
515 "https://support.google.com/chrome/?p=ui_usagestat";
517 const char kOutdatedPluginLearnMoreURL
[] =
518 "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/chromeos/?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/chromeos/?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/chromeos/?p=simple_scrolling";
572 #if defined(OS_CHROMEOS)
573 const char kLearnMoreEnterpriseURL
[] =
574 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
577 const char kRemoveNonCWSExtensionURL
[] =
578 "https://support.google.com/chrome/answer/2811969?"
579 "p=ui_remove_non_cws_extensions&rd=1";
581 const char kNotificationsHelpURL
[] =
582 "https://support.google.com/chrome/?p=ui_notifications";
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
[] = {
591 kChromeUIChromeURLsHost
,
592 kChromeUIComponentsHost
,
593 kChromeUICrashesHost
,
594 kChromeUICreditsHost
,
595 kChromeUIDeviceLogHost
,
598 kChromeUIHistoryHost
,
599 kChromeUIInvalidationsHost
,
600 kChromeUILocalStateHost
,
602 kChromeUIMemoryInternalsHost
,
603 kChromeUINetInternalsHost
,
605 kChromeUIOmniboxHost
,
606 kChromeUIPasswordManagerInternalsHost
,
607 kChromeUIPredictorsHost
,
608 kChromeUIProfilerHost
,
609 kChromeUISignInInternalsHost
,
610 kChromeUISuggestionsHost
,
611 kChromeUISyncInternalsHost
,
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
,
634 kChromeUIGCMInternalsHost
,
636 kChromeUIInspectHost
,
637 kChromeUIPluginsHost
,
638 kChromeUIQuotaInternalsHost
,
639 kChromeUISettingsHost
,
640 kChromeUISystemInfoHost
,
643 #if defined(OS_ANDROID) || defined(OS_IOS)
644 kChromeUINetExportHost
,
646 kChromeUICopresenceHost
,
648 #if defined(OS_CHROMEOS)
649 kChromeUICertificateManagerHost
,
650 kChromeUIChooseMobileNetworkHost
,
651 kChromeUICryptohomeHost
,
652 kChromeUIDiscardsHost
,
653 kChromeUIDriveInternalsHost
,
654 kChromeUIFirstRunHost
,
655 kChromeUIImageBurnerHost
,
656 kChromeUIKeyboardOverlayHost
,
658 kChromeUINetworkHost
,
661 kChromeUIOSCreditsHost
,
663 kChromeUIProxySettingsHost
,
665 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
666 kChromeUILinuxProxyConfigHost
,
667 kChromeUISandboxHost
,
670 kChromeUIConflictsHost
,
672 #if !defined(DISABLE_NACL)
675 #if defined(ENABLE_CONFIGURATION_POLICY)
678 #if defined(ENABLE_EXTENSIONS)
679 kChromeUIExtensionsHost
,
681 #if defined(ENABLE_PRINT_PREVIEW)
684 #if defined(ENABLE_SERVICE_DISCOVERY)
685 kChromeUIDevicesHost
,
687 #if defined(ENABLE_WEBRTC)
688 kChromeUIWebRtcLogsHost
,
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";
732 "https://support.google.com/chrome/topic/1678461";
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";
744 const char kEasyUnlockLearnMoreUrl
[] =
745 "https://support.google.com/chromebook/?p=smart_lock";
747 } // namespace chrome