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 // 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 kChromeUICloudPrintResourcesHost
[] = "cloudprintresources";
169 const char kChromeUICloudPrintSetupHost
[] = "cloudprintsetup";
170 const char kChromeUIConflictsHost
[] = "conflicts";
171 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
172 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
173 const char kChromeUICrashesHost
[] = "crashes";
174 const char kChromeUICrashHost
[] = "crash";
175 const char kChromeUICreditsHost
[] = "credits";
176 const char kChromeUIDefaultHost
[] = "version";
177 const char kChromeUIDeviceLogHost
[] = "device-log";
178 const char kChromeUIDevicesHost
[] = "devices";
179 const char kChromeUIDevToolsHost
[] = "devtools";
180 const char kChromeUIDevToolsBundledPath
[] = "bundled";
181 const char kChromeUIDevToolsRemotePath
[] = "remote";
182 const char kChromeUIDNSHost
[] = "dns";
183 const char kChromeUIDomainReliabilityInternalsHost
[] =
184 "domain-reliability-internals";
185 const char kChromeUIDownloadsHost
[] = "downloads";
186 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
187 const char kChromeUIEditSearchEngineDialogHost
[] = "editsearchengine";
188 const char kChromeUIExtensionIconHost
[] = "extension-icon";
189 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
190 const char kChromeUIExtensionsHost
[] = "extensions";
191 const char kChromeUIFallbackIconHost
[] = "fallback-icon";
192 const char kChromeUIFaviconHost
[] = "favicon";
193 const char kChromeUIFeedbackHost
[] = "feedback";
194 const char kChromeUIFlagsHost
[] = "flags";
195 const char kChromeUIFlashHost
[] = "flash";
196 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
197 const char kChromeUIHangHost
[] = "hang";
198 const char kChromeUIHelpFrameHost
[] = "help-frame";
199 const char kChromeUIHelpHost
[] = "help";
200 const char kChromeUIHistoryHost
[] = "history";
201 const char kChromeUIHistoryFrameHost
[] = "history-frame";
202 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
203 const char kChromeUIInspectHost
[] = "inspect";
204 const char kChromeUIInstantHost
[] = "instant";
205 const char kChromeUIInterstitialHost
[] = "interstitials";
206 const char kChromeUIInvalidationsHost
[] = "invalidations";
207 const char kChromeUIKillHost
[] = "kill";
208 const char kChromeUILargeIconHost
[] = "large-icon";
209 const char kChromeUILocalStateHost
[] = "local-state";
210 const char kChromeUIMdSettingsHost
[] = "md-settings";
211 const char kChromeUIMemoryHost
[] = "memory";
212 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
213 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
214 const char kChromeUIMetroFlowHost
[] = "make-metro";
215 const char kChromeUINaClHost
[] = "nacl";
216 const char kChromeUINetExportHost
[] = "net-export";
217 const char kChromeUINetInternalsHost
[] = "net-internals";
218 const char kChromeUINewTabHost
[] = "newtab";
219 const char kChromeUIOmniboxHost
[] = "omnibox";
220 const char kChromeUIPasswordManagerInternalsHost
[] =
221 "password-manager-internals";
222 const char kChromeUIPluginsHost
[] = "plugins";
223 const char kChromeUIComponentsHost
[] = "components";
224 const char kChromeUIPolicyHost
[] = "policy";
225 const char kChromeUIProfileSigninConfirmationHost
[] =
226 "profile-signin-confirmation";
227 const char kChromeUIUserManagerHost
[] = "user-manager";
228 const char kChromeUIPredictorsHost
[] = "predictors";
229 const char kChromeUIProfilerHost
[] = "profiler";
230 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
231 const char kChromeUIQuitHost
[] = "quit";
232 const char kChromeUIRestartHost
[] = "restart";
233 const char kChromeUISettingsHost
[] = "settings";
234 const char kChromeUISettingsFrameHost
[] = "settings-frame";
235 const char kChromeUIShorthangHost
[] = "shorthang";
236 const char kChromeUISignInInternalsHost
[] = "signin-internals";
237 const char kChromeUISSLClientCertificateSelectorHost
[] = "select-cert";
238 const char kChromeUISuggestionsHost
[] = "suggestions";
239 const char kChromeUISuggestionsInternalsHost
[] = "suggestions-internals";
240 const char kChromeUISupervisedUserPassphrasePageHost
[] =
241 "managed-user-passphrase";
242 const char kChromeUISyncHost
[] = "sync";
243 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
244 const char kChromeUISyncInternalsHost
[] = "sync-internals";
245 const char kChromeUISyncResourcesHost
[] = "syncresources";
246 const char kChromeUISystemInfoHost
[] = "system";
247 const char kChromeUITermsHost
[] = "terms";
248 const char kChromeUIThemeHost
[] = "theme";
249 const char kChromeUIThumbnailHost
[] = "thumb";
250 const char kChromeUIThumbnailHost2
[] = "thumb2";
251 const char kChromeUIThumbnailListHost
[] = "thumbnails";
252 const char kChromeUITouchIconHost
[] = "touch-icon";
253 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
254 const char kChromeUIUberFrameHost
[] = "uber-frame";
255 const char kChromeUIUberHost
[] = "chrome";
256 const char kChromeUIUserActionsHost
[] = "user-actions";
257 const char kChromeUIVersionHost
[] = "version";
258 const char kChromeUIVoiceSearchHost
[] = "voicesearch";
259 const char kChromeUIWebRTCDeviceProviderHost
[] =
260 "webrtc-device-provider";
261 const char kChromeUIWorkersHost
[] = "workers";
263 const char kChromeUIScreenshotPath
[] = "screenshots";
264 const char kChromeUIThemePath
[] = "theme";
266 #if defined(ENABLE_PRINT_PREVIEW)
267 const char kChromeUIPrintHost
[] = "print";
268 #endif // ENABLE_PRINT_PREVIEW
270 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
271 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
272 const char kChromeUISandboxHost
[] = "sandbox";
275 #if defined(OS_CHROMEOS)
276 const char kChromeUIActivationMessageHost
[] = "activationmessage";
277 const char kChromeUIAppLaunchHost
[] = "app-launch";
278 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
279 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
280 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
281 const char kChromeUICryptohomeHost
[] = "cryptohome";
282 const char kChromeUIDiscardsHost
[] = "discards";
283 const char kChromeUIFirstRunHost
[] = "first-run";
284 const char kChromeUIIdleLogoutDialogHost
[] = "idle-logout";
285 const char kChromeUIImageBurnerHost
[] = "imageburner";
286 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
287 const char kChromeUILockScreenHost
[] = "lock";
288 const char kChromeUILoginContainerHost
[] = "login-container";
289 const char kChromeUILoginHost
[] = "login";
290 const char kChromeUIMediaplayerHost
[] = "mediaplayer";
291 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
292 const char kChromeUINfcDebugHost
[] = "nfc-debug";
293 const char kChromeUINetworkHost
[] = "network";
294 const char kChromeUIOobeHost
[] = "oobe";
295 const char kChromeUIOobeMdHost
[] = "oobe-md";
296 const char kChromeUIOSCreditsHost
[] = "os-credits";
297 const char kChromeUIPowerHost
[] = "power";
298 const char kChromeUIProvidedFileSystemsHost
[] = "provided-file-systems";
299 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
300 const char kChromeUIRotateHost
[] = "rotate";
301 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
302 const char kChromeUISetTimeHost
[] = "set-time";
303 const char kChromeUISimUnlockHost
[] = "sim-unlock";
304 const char kChromeUISlideshowHost
[] = "slideshow";
305 const char kChromeUISlowHost
[] = "slow";
306 const char kChromeUISlowTraceHost
[] = "slow_trace";
307 const char kChromeUIUserImageHost
[] = "userimage";
309 const char kChromeUIMenu
[] = "menu";
310 const char kChromeUINetworkMenu
[] = "network-menu";
311 const char kChromeUIWrenchMenu
[] = "wrench-menu";
313 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
314 const char kOemEulaURLPath
[] = "oem";
315 const char kOnlineEulaURLPath
[] =
316 "https://www.google.com/intl/%s/chrome/eula_text.html";
318 const char kChromeOSCreditsPath
[] =
319 "/opt/google/chrome/resources/about_os_credits.html";
321 const char kChromeOSAssetHost
[] = "chromeos-asset";
322 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
325 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
326 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
329 #if !defined(OS_ANDROID) && !defined(OS_IOS)
330 const char kChromeUICopresenceHost
[] = "copresence";
333 #if defined(ENABLE_WEBRTC)
334 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
338 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
339 // listed by the built-in AutocompleteProvider.
340 const char kAutofillSubPage
[] = "autofill";
341 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
342 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
343 const char kContentSettingsSubPage
[] = "content";
344 const char kCreateProfileSubPage
[] = "createProfile";
345 const char kExtensionsSubPage
[] = "extensions";
346 const char kHandlerSettingsSubPage
[] = "handlers";
347 const char kImportDataSubPage
[] = "importData";
348 const char kLanguageOptionsSubPage
[] = "languages";
349 const char kManageProfileSubPage
[] = "manageProfile";
350 const char kPasswordManagerSubPage
[] = "passwords";
351 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
352 const char kSearchEnginesSubPage
[] = "searchEngines";
353 const char kSearchSubPage
[] = "search";
354 const char kSearchUsersSubPage
[] = "search#Users";
355 const char kSupervisedUserSettingsSubPage
[] = "managedUser";
356 const char kSyncSetupSubPage
[] = "syncSetup";
357 #if defined(OS_CHROMEOS)
358 const char kInternetOptionsSubPage
[] = "internet";
359 const char kBluetoothAddDeviceSubPage
[] = "bluetooth";
360 const char kChangeProfilePictureSubPage
[] = "changePicture";
363 // Extension sub pages.
364 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
366 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
367 const char kExtensionResourceInvalidRequestURL
[] =
368 "chrome-extension-resource://invalid/";
370 const char kSyncGoogleDashboardURL
[] =
371 "https://www.google.com/settings/chrome/sync/";
373 const char kPasswordManagerLearnMoreURL
[] =
374 #if defined(OS_CHROMEOS)
375 "https://support.google.com/chromeos/?p=settings_password";
377 "https://support.google.com/chrome/?p=settings_password";
380 const char kPasswordManagerAccountDashboardURL
[] =
381 "https://passwords.google.com/settings/passwords";
383 const char kExtensionControlledSettingLearnMoreURL
[] =
384 "https://support.google.com/chrome/?p=ui_settings_api_extension";
386 const char kChromeHelpViaKeyboardURL
[] =
387 #if defined(OS_CHROMEOS)
388 #if defined(OFFICIAL_BUILD)
389 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
391 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
392 #endif // defined(OFFICIAL_BUILD
394 "https://support.google.com/chrome/?p=help&ctx=keyboard";
395 #endif // defined(OS_CHROMEOS)
397 const char kChromeHelpViaMenuURL
[] =
398 #if defined(OS_CHROMEOS)
399 #if defined(OFFICIAL_BUILD)
400 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
402 "https://support.google.com/chromeos/?p=help&ctx=menu";
403 #endif // defined(OFFICIAL_BUILD
405 "https://support.google.com/chrome/?p=help&ctx=menu";
406 #endif // defined(OS_CHROMEOS)
408 const char kChromeHelpViaWebUIURL
[] =
409 #if defined(OS_CHROMEOS)
410 #if defined(OFFICIAL_BUILD)
411 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
413 "https://support.google.com/chromeos/?p=help&ctx=settings";
414 #endif // defined(OFFICIAL_BUILD
416 "https://support.google.com/chrome/?p=help&ctx=settings";
417 #endif // defined(OS_CHROMEOS)
419 #if defined(OS_CHROMEOS)
420 const char kChromeAccessibilityHelpURL
[] =
421 "https://support.google.com/chromeos/?p=accessibility_menu";
422 const char kChromeAccessibilitySettingsURL
[] =
423 "/chromevox/background/options.html";
424 #endif // defined(OS_CHROMEOS)
426 #if defined(ENABLE_ONE_CLICK_SIGNIN)
427 const char kChromeSyncLearnMoreURL
[] =
428 "http://support.google.com/chrome/bin/answer.py?answer=165139";
430 const char kChromeSyncMergeTroubleshootingURL
[] =
431 "https://support.google.com/chrome/answer/1181420#merge";
432 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
434 const char kChromeEnterpriseSignInLearnMoreURL
[] =
435 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
437 const char kResetProfileSettingsLearnMoreURL
[] =
438 "https://support.google.com/chrome/?p=ui_reset_settings";
440 const char kAutomaticSettingsResetLearnMoreURL
[] =
441 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
443 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
445 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
447 const char kSettingsSearchHelpURL
[] =
448 #if defined(OS_CHROMEOS)
449 "https://support.google.com/chromeos/?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/chromeos/?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/chromeos/?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/chromeos/?p=e_awsnap";
472 "https://support.google.com/chrome/?p=e_awsnap";
475 const char kKillReasonURL
[] =
476 #if defined(OS_CHROMEOS)
477 "https://support.google.com/chromeos/?p=e_deadjim";
479 "https://support.google.com/chrome/?p=e_deadjim";
482 const char kPrivacyLearnMoreURL
[] =
483 #if defined(OS_CHROMEOS)
484 "https://support.google.com/chromeos/?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/chromeos/?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";
500 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
501 "https://support.google.com/chromebook/?p=enhanced_playback";
504 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
506 const char kLearnMoreReportingURL
[] =
507 "https://support.google.com/chrome/?p=ui_usagestat";
509 const char kOutdatedPluginLearnMoreURL
[] =
510 "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/chromeos/?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/chromeos/?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/chromeos/?p=simple_scrolling";
564 #if defined(OS_CHROMEOS)
565 const char kLearnMoreEnterpriseURL
[] =
566 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
569 const char kRemoveNonCWSExtensionURL
[] =
570 "https://support.google.com/chrome/answer/2811969?"
571 "p=ui_remove_non_cws_extensions&rd=1";
573 const char kNotificationsHelpURL
[] =
574 "https://support.google.com/chrome/?p=ui_notifications";
576 const char kNotificationWelcomeLearnMoreURL
[] =
577 "https://support.google.com/chrome/?p=ib_google_now_welcome";
579 // Add hosts here to be included in chrome://chrome-urls (about:about).
580 // These hosts will also be suggested by BuiltinProvider.
581 const char* const kChromeHostURLs
[] = {
583 kChromeUIChromeURLsHost
,
584 kChromeUIComponentsHost
,
585 kChromeUICrashesHost
,
586 kChromeUICreditsHost
,
587 kChromeUIDeviceLogHost
,
590 kChromeUIHistoryHost
,
591 kChromeUIInvalidationsHost
,
592 kChromeUILocalStateHost
,
594 kChromeUIMemoryInternalsHost
,
595 kChromeUINetInternalsHost
,
597 kChromeUIOmniboxHost
,
598 kChromeUIPasswordManagerInternalsHost
,
599 kChromeUIPredictorsHost
,
600 kChromeUIProfilerHost
,
601 kChromeUISignInInternalsHost
,
602 kChromeUISuggestionsHost
,
603 kChromeUISyncInternalsHost
,
605 kChromeUIThumbnailListHost
,
606 kChromeUITranslateInternalsHost
,
607 kChromeUIUserActionsHost
,
608 kChromeUIVersionHost
,
609 kChromeUIVoiceSearchHost
,
610 content::kChromeUIAccessibilityHost
,
611 content::kChromeUIAppCacheInternalsHost
,
612 content::kChromeUIBlobInternalsHost
,
613 content::kChromeUIGpuHost
,
614 content::kChromeUIHistogramHost
,
615 content::kChromeUIIndexedDBInternalsHost
,
616 content::kChromeUIMediaInternalsHost
,
617 content::kChromeUINetworkViewCacheHost
,
618 content::kChromeUIServiceWorkerInternalsHost
,
619 content::kChromeUITracingHost
,
620 content::kChromeUIWebRTCInternalsHost
,
621 #if !defined(OS_ANDROID)
622 kChromeUIAppLauncherPageHost
,
623 kChromeUIBookmarksHost
,
624 kChromeUIDownloadsHost
,
626 kChromeUIGCMInternalsHost
,
628 kChromeUIInspectHost
,
629 kChromeUIPluginsHost
,
630 kChromeUIQuotaInternalsHost
,
631 kChromeUISettingsHost
,
632 kChromeUISystemInfoHost
,
635 #if defined(OS_ANDROID) || defined(OS_IOS)
636 kChromeUINetExportHost
,
638 kChromeUICopresenceHost
,
640 #if defined(OS_CHROMEOS)
641 kChromeUICertificateManagerHost
,
642 kChromeUIChooseMobileNetworkHost
,
643 kChromeUICryptohomeHost
,
644 kChromeUIDiscardsHost
,
645 kChromeUIDriveInternalsHost
,
646 kChromeUIFirstRunHost
,
647 kChromeUIImageBurnerHost
,
648 kChromeUIKeyboardOverlayHost
,
650 kChromeUINetworkHost
,
653 kChromeUIOSCreditsHost
,
655 kChromeUIProxySettingsHost
,
657 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
658 kChromeUILinuxProxyConfigHost
,
659 kChromeUISandboxHost
,
662 kChromeUIConflictsHost
,
664 #if !defined(DISABLE_NACL)
667 #if defined(ENABLE_CONFIGURATION_POLICY)
670 #if defined(ENABLE_EXTENSIONS)
671 kChromeUIExtensionsHost
,
673 #if defined(ENABLE_PRINT_PREVIEW)
676 #if defined(ENABLE_SERVICE_DISCOVERY)
677 kChromeUIDevicesHost
,
679 #if defined(ENABLE_WEBRTC)
680 kChromeUIWebRtcLogsHost
,
683 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
685 const char* const kChromeDebugURLs
[] = {
686 content::kChromeUICrashURL
,
687 content::kChromeUIDumpURL
,
688 content::kChromeUIKillURL
,
689 content::kChromeUIHangURL
,
690 content::kChromeUIShorthangURL
,
691 content::kChromeUIGpuCleanURL
,
692 content::kChromeUIGpuCrashURL
,
693 content::kChromeUIGpuHangURL
,
694 content::kChromeUIPpapiFlashCrashURL
,
695 content::kChromeUIPpapiFlashHangURL
,
696 chrome::kChromeUIQuitURL
,
697 chrome::kChromeUIRestartURL
699 const int kNumberOfChromeDebugURLs
=
700 static_cast<int>(arraysize(kChromeDebugURLs
));
702 const char kChromeNativeScheme
[] = "chrome-native";
704 const char kChromeSearchScheme
[] = "chrome-search";
705 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
706 const char kChromeSearchLocalNtpUrl
[] =
707 "chrome-search://local-ntp/local-ntp.html";
708 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
710 const char kChromeSearchMostVisitedHost
[] = "most-visited";
711 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
713 // Google SafeSearch query parameters.
714 const char kSafeSearchSafeParameter
[] = "safe=active";
715 const char kSafeSearchSsuiParameter
[] = "ssui=on";
717 const char kMediaAccessLearnMoreUrl
[] =
718 "https://support.google.com/chrome/?p=ib_access_cam_mic";
720 const char kLanguageSettingsLearnMoreUrl
[] =
721 #if defined(OS_CHROMEOS)
722 "https://support.google.com/chromebook/answer/1059490";
724 "https://support.google.com/chrome/topic/1678461";
727 #if defined(OS_MACOSX)
728 const char kMac32BitDeprecationURL
[] =
729 #if !defined(ARCH_CPU_64_BITS)
730 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
736 const char kEasyUnlockLearnMoreUrl
[] =
737 "https://support.google.com/chromebook/?p=smart_lock";
739 } // namespace chrome