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 kChromeUIExtensionInfoURL
[] = "chrome://extension-info/";
47 const char kChromeUIExtensionsFrameURL
[] = "chrome://extensions-frame/";
48 const char kChromeUIExtensionsURL
[] = "chrome://extensions/";
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 kChromeUIMemoryRedirectURL
[] = "chrome://memory-redirect/";
63 const char kChromeUIMemoryURL
[] = "chrome://memory/";
64 const char kChromeUIMetroFlowURL
[] = "chrome://make-metro/";
65 const char kChromeUINaClURL
[] = "chrome://nacl/";
66 const char kChromeUINetInternalsURL
[] = "chrome://net-internals/";
67 const char kChromeUINewProfile
[] = "chrome://newprofile/";
68 const char kChromeUINewTabURL
[] = "chrome://newtab/";
69 const char kChromeUIOmniboxURL
[] = "chrome://omnibox/";
70 const char kChromeUIPluginsURL
[] = "chrome://plugins/";
71 const char kChromeUIPolicyURL
[] = "chrome://policy/";
72 const char kChromeUIProfileSigninConfirmationURL
[] =
73 "chrome://profile-signin-confirmation/";
74 const char kChromeUIUserManagerURL
[] = "chrome://user-manager/";
75 const char kChromeUIPrintURL
[] = "chrome://print/";
76 const char kChromeUIQuitURL
[] = "chrome://quit/";
77 const char kChromeUIRestartURL
[] = "chrome://restart/";
78 const char kChromeUISettingsURL
[] = "chrome://settings/";
79 const char kChromeUISettingsFrameURL
[] = "chrome://settings-frame/";
80 const char kChromeUISSLClientCertificateSelectorURL
[] = "chrome://select-cert/";
81 const char kChromeUISuggestions
[] = "chrome://suggestions/";
82 const char kChromeUISuggestionsInternalsURL
[] =
83 "chrome://suggestions-internals/";
84 const char kChromeUISupervisedUserPassphrasePageURL
[] =
85 "chrome://managed-user-passphrase/";
86 const char kChromeUITermsURL
[] = "chrome://terms/";
87 const char kChromeUIThemeURL
[] = "chrome://theme/";
88 const char kChromeUIThumbnailURL
[] = "chrome://thumb/";
89 const char kChromeUIThumbnailListURL
[] = "chrome://thumbnails/";
90 const char kChromeUIUberURL
[] = "chrome://chrome/";
91 const char kChromeUIUberFrameURL
[] = "chrome://uber-frame/";
92 const char kChromeUIUserActionsURL
[] = "chrome://user-actions/";
93 const char kChromeUIVersionURL
[] = "chrome://version/";
94 const char kChromeUIVoiceSearchURL
[] = "chrome://voicesearch/";
96 #if defined(OS_ANDROID)
97 const char kChromeUINativeScheme
[] = "chrome-native";
98 const char kChromeUINativeNewTabURL
[] = "chrome-native://newtab/";
99 const char kChromeUINativeBookmarksURL
[] = "chrome-native://bookmarks/";
100 const char kChromeUINativeRecentTabsURL
[] = "chrome-native://recent-tabs/";
103 #if defined(OS_CHROMEOS)
104 const char kChromeUIActivationMessage
[] = "chrome://activationmessage/";
105 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
106 const char kChromeUICertificateManagerDialogURL
[] =
107 "chrome://certificate-manager/";
108 const char kChromeUIChooseMobileNetworkURL
[] =
109 "chrome://choose-mobile-network/";
110 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
111 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
112 const char kChromeUIIdleLogoutDialogURL
[] = "chrome://idle-logout/";
113 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
114 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
115 const char kChromeUILockScreenURL
[] = "chrome://lock/";
116 const char kChromeUIMediaplayerURL
[] = "chrome://mediaplayer/";
117 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
118 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
119 const char kChromeUIOobeURL
[] = "chrome://oobe/";
120 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
121 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
122 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
123 const char kChromeUISetTimeURL
[] = "chrome://set-time/";
124 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
125 const char kChromeUISlideshowURL
[] = "chrome://slideshow/";
126 const char kChromeUISlowURL
[] = "chrome://slow/";
127 const char kChromeUISystemInfoURL
[] = "chrome://system/";
128 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
129 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
132 #if defined(USE_AURA)
133 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
134 const char kChromeUIGestureConfigHost
[] = "gesture";
135 const char kChromeUISalsaURL
[] = "chrome://salsa/";
136 const char kChromeUISalsaHost
[] = "salsa";
139 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
140 const char kChromeUITabModalConfirmDialogURL
[] =
141 "chrome://tab-modal-confirm-dialog/";
144 #if defined(ENABLE_WEBRTC)
145 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
148 // Add Chrome UI hosts here, in alphabetical order.
149 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
150 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
151 const char kChromeUIAboutHost
[] = "about";
152 const char kChromeUIBlankHost
[] = "blank";
153 const char kChromeUIAppLauncherPageHost
[] = "apps";
154 const char kChromeUIAppListStartPageHost
[] = "app-list";
155 const char kChromeUIBookmarksHost
[] = "bookmarks";
156 const char kChromeUICacheHost
[] = "cache";
157 const char kChromeUICertificateViewerHost
[] = "view-cert";
158 const char kChromeUICertificateViewerDialogHost
[] = "view-cert-dialog";
159 const char kChromeUIChromeSigninHost
[] = "chrome-signin";
160 const char kChromeUIChromeURLsHost
[] = "chrome-urls";
161 const char kChromeUICloudPrintResourcesHost
[] = "cloudprintresources";
162 const char kChromeUICloudPrintSetupHost
[] = "cloudprintsetup";
163 const char kChromeUIConflictsHost
[] = "conflicts";
164 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
165 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
166 const char kChromeUICrashesHost
[] = "crashes";
167 const char kChromeUICrashHost
[] = "crash";
168 const char kChromeUICreditsHost
[] = "credits";
169 const char kChromeUIDefaultHost
[] = "version";
170 const char kChromeUIDevicesHost
[] = "devices";
171 const char kChromeUIDevToolsHost
[] = "devtools";
172 const char kChromeUIDevToolsBundledPath
[] = "bundled";
173 const char kChromeUIDevToolsRemotePath
[] = "remote";
174 const char kChromeUIDNSHost
[] = "dns";
175 const char kChromeUIDomainReliabilityInternalsHost
[] =
176 "domain-reliability-internals";
177 const char kChromeUIDownloadsHost
[] = "downloads";
178 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
179 const char kChromeUIEditSearchEngineDialogHost
[] = "editsearchengine";
180 const char kChromeUIExtensionIconHost
[] = "extension-icon";
181 const char kChromeUIExtensionInfoHost
[] = "extension-info";
182 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
183 const char kChromeUIExtensionsHost
[] = "extensions";
184 const char kChromeUIFaviconHost
[] = "favicon";
185 const char kChromeUIFeedbackHost
[] = "feedback";
186 const char kChromeUIFlagsHost
[] = "flags";
187 const char kChromeUIFlashHost
[] = "flash";
188 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
189 const char kChromeUIHangHost
[] = "hang";
190 const char kChromeUIHelpFrameHost
[] = "help-frame";
191 const char kChromeUIHelpHost
[] = "help";
192 const char kChromeUIHistoryHost
[] = "history";
193 const char kChromeUIHistoryFrameHost
[] = "history-frame";
194 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
195 const char kChromeUIInspectHost
[] = "inspect";
196 const char kChromeUIInstantHost
[] = "instant";
197 const char kChromeUIInterstitialHost
[] = "interstitials";
198 const char kChromeUIInvalidationsHost
[] = "invalidations";
199 const char kChromeUIKillHost
[] = "kill";
200 const char kChromeUIMemoryHost
[] = "memory";
201 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
202 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
203 const char kChromeUIMetroFlowHost
[] = "make-metro";
204 const char kChromeUINaClHost
[] = "nacl";
205 const char kChromeUINetExportHost
[] = "net-export";
206 const char kChromeUINetInternalsHost
[] = "net-internals";
207 const char kChromeUINewTabHost
[] = "newtab";
208 const char kChromeUIOmniboxHost
[] = "omnibox";
209 const char kChromeUIPasswordManagerInternalsHost
[] =
210 "password-manager-internals";
211 const char kChromeUIPluginsHost
[] = "plugins";
212 const char kChromeUIComponentsHost
[] = "components";
213 const char kChromeUIPolicyHost
[] = "policy";
214 const char kChromeUIProfileSigninConfirmationHost
[] =
215 "profile-signin-confirmation";
216 const char kChromeUIUserManagerHost
[] = "user-manager";
217 const char kChromeUIPredictorsHost
[] = "predictors";
218 const char kChromeUIProfilerHost
[] = "profiler";
219 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
220 const char kChromeUIQuitHost
[] = "quit";
221 const char kChromeUIRestartHost
[] = "restart";
222 const char kChromeUISettingsHost
[] = "settings";
223 const char kChromeUISettingsFrameHost
[] = "settings-frame";
224 const char kChromeUIShorthangHost
[] = "shorthang";
225 const char kChromeUISignInInternalsHost
[] = "signin-internals";
226 const char kChromeUISSLClientCertificateSelectorHost
[] = "select-cert";
227 const char kChromeUIStatsHost
[] = "stats";
228 const char kChromeUISuggestionsHost
[] = "suggestions";
229 const char kChromeUISuggestionsInternalsHost
[] = "suggestions-internals";
230 const char kChromeUISupervisedUserPassphrasePageHost
[] =
231 "managed-user-passphrase";
232 const char kChromeUISyncHost
[] = "sync";
233 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
234 const char kChromeUISyncInternalsHost
[] = "sync-internals";
235 const char kChromeUISyncResourcesHost
[] = "syncresources";
236 const char kChromeUISystemInfoHost
[] = "system";
237 const char kChromeUITermsHost
[] = "terms";
238 const char kChromeUIThemeHost
[] = "theme";
239 const char kChromeUIThumbnailHost
[] = "thumb";
240 const char kChromeUIThumbnailHost2
[] = "thumb2";
241 const char kChromeUIThumbnailListHost
[] = "thumbnails";
242 const char kChromeUITouchIconHost
[] = "touch-icon";
243 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
244 const char kChromeUIUberFrameHost
[] = "uber-frame";
245 const char kChromeUIUberHost
[] = "chrome";
246 const char kChromeUIUserActionsHost
[] = "user-actions";
247 const char kChromeUIVersionHost
[] = "version";
248 const char kChromeUIVoiceSearchHost
[] = "voicesearch";
249 const char kChromeUIWorkersHost
[] = "workers";
251 const char kChromeUIScreenshotPath
[] = "screenshots";
252 const char kChromeUIThemePath
[] = "theme";
254 #if defined(ENABLE_PRINT_PREVIEW)
255 const char kChromeUIPrintHost
[] = "print";
256 #endif // ENABLE_PRINT_PREVIEW
258 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
259 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
260 const char kChromeUISandboxHost
[] = "sandbox";
263 #if defined(OS_CHROMEOS)
264 const char kChromeUIActivationMessageHost
[] = "activationmessage";
265 const char kChromeUIAppLaunchHost
[] = "app-launch";
266 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
267 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
268 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
269 const char kChromeUICryptohomeHost
[] = "cryptohome";
270 const char kChromeUIDiscardsHost
[] = "discards";
271 const char kChromeUIFirstRunHost
[] = "first-run";
272 const char kChromeUIIdleLogoutDialogHost
[] = "idle-logout";
273 const char kChromeUIImageBurnerHost
[] = "imageburner";
274 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
275 const char kChromeUILockScreenHost
[] = "lock";
276 const char kChromeUILoginContainerHost
[] = "login-container";
277 const char kChromeUILoginHost
[] = "login";
278 const char kChromeUIMediaplayerHost
[] = "mediaplayer";
279 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
280 const char kChromeUINfcDebugHost
[] = "nfc-debug";
281 const char kChromeUINetworkHost
[] = "network";
282 const char kChromeUIOobeHost
[] = "oobe";
283 const char kChromeUIOSCreditsHost
[] = "os-credits";
284 const char kChromeUIPowerHost
[] = "power";
285 const char kChromeUIProvidedFileSystemsHost
[] = "provided-file-systems";
286 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
287 const char kChromeUIRotateHost
[] = "rotate";
288 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
289 const char kChromeUISetTimeHost
[] = "set-time";
290 const char kChromeUISimUnlockHost
[] = "sim-unlock";
291 const char kChromeUISlideshowHost
[] = "slideshow";
292 const char kChromeUISlowHost
[] = "slow";
293 const char kChromeUISlowTraceHost
[] = "slow_trace";
294 const char kChromeUIUserImageHost
[] = "userimage";
296 const char kChromeUIMenu
[] = "menu";
297 const char kChromeUINetworkMenu
[] = "network-menu";
298 const char kChromeUIWrenchMenu
[] = "wrench-menu";
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/";
312 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
313 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
316 #if defined(ENABLE_WEBRTC)
317 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
321 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
322 // listed by the built-in AutocompleteProvider.
323 const char kAutofillSubPage
[] = "autofill";
324 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
325 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
326 const char kContentSettingsSubPage
[] = "content";
327 const char kCreateProfileSubPage
[] = "createProfile";
328 const char kExtensionsSubPage
[] = "extensions";
329 const char kHandlerSettingsSubPage
[] = "handlers";
330 const char kImportDataSubPage
[] = "importData";
331 const char kLanguageOptionsSubPage
[] = "languages";
332 const char kManageProfileSubPage
[] = "manageProfile";
333 const char kPasswordManagerSubPage
[] = "passwords";
334 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
335 const char kSearchEnginesSubPage
[] = "searchEngines";
336 const char kSearchSubPage
[] = "search";
337 const char kSearchUsersSubPage
[] = "search#Users";
338 const char kSupervisedUserSettingsSubPage
[] = "managedUser";
339 const char kSyncSetupSubPage
[] = "syncSetup";
340 #if defined(OS_CHROMEOS)
341 const char kInternetOptionsSubPage
[] = "internet";
342 const char kBluetoothAddDeviceSubPage
[] = "bluetooth";
343 const char kChangeProfilePictureSubPage
[] = "changePicture";
346 // Extension sub pages.
347 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
349 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
350 const char kExtensionResourceInvalidRequestURL
[] =
351 "chrome-extension-resource://invalid/";
353 const char kSyncGoogleDashboardURL
[] =
354 "https://www.google.com/settings/chrome/sync/";
356 const char kAutoPasswordGenerationLearnMoreURL
[] =
357 "https://support.google.com/chrome/?p=ui_generate_password";
359 const char kPasswordManagerLearnMoreURL
[] =
360 #if defined(OS_CHROMEOS)
361 "https://support.google.com/chromeos/?p=settings_password";
363 "https://support.google.com/chrome/?p=settings_password";
366 const char kPasswordManagerAccountDashboardURL
[] =
367 "https://passwords.google.com/settings/passwords";
369 const char kExtensionControlledSettingLearnMoreURL
[] =
370 "https://support.google.com/chrome/?p=ui_settings_api_extension";
372 const char kChromeHelpViaKeyboardURL
[] =
373 #if defined(OS_CHROMEOS)
374 #if defined(OFFICIAL_BUILD)
375 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
377 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
378 #endif // defined(OFFICIAL_BUILD
380 "https://support.google.com/chrome/?p=help&ctx=keyboard";
381 #endif // defined(OS_CHROMEOS)
383 const char kChromeHelpViaMenuURL
[] =
384 #if defined(OS_CHROMEOS)
385 #if defined(OFFICIAL_BUILD)
386 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
388 "https://support.google.com/chromeos/?p=help&ctx=menu";
389 #endif // defined(OFFICIAL_BUILD
391 "https://support.google.com/chrome/?p=help&ctx=menu";
392 #endif // defined(OS_CHROMEOS)
394 const char kChromeHelpViaWebUIURL
[] =
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=settings";
400 #endif // defined(OFFICIAL_BUILD
402 "https://support.google.com/chrome/?p=help&ctx=settings";
403 #endif // defined(OS_CHROMEOS)
405 #if defined(OS_CHROMEOS)
406 const char kChromeAccessibilityHelpURL
[] =
407 "https://support.google.com/chromeos/?p=accessibility_menu";
408 const char kChromeAccessibilitySettingsURL
[] =
409 "/chromevox/background/options.html";
410 #endif // defined(OS_CHROMEOS)
412 #if defined(ENABLE_ONE_CLICK_SIGNIN)
413 const char kChromeSyncLearnMoreURL
[] =
414 "http://support.google.com/chrome/bin/answer.py?answer=165139";
416 const char kChromeSyncMergeTroubleshootingURL
[] =
417 "https://support.google.com/chrome/answer/1181420#merge";
418 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
420 const char kChromeEnterpriseSignInLearnMoreURL
[] =
421 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
423 const char kResetProfileSettingsLearnMoreURL
[] =
424 "https://support.google.com/chrome/?p=ui_reset_settings";
426 const char kAutomaticSettingsResetLearnMoreURL
[] =
427 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
429 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
431 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
433 const char kSettingsSearchHelpURL
[] =
434 #if defined(OS_CHROMEOS)
435 "https://support.google.com/chromeos/?p=settings_search_help";
437 "https://support.google.com/chrome/?p=settings_search_help";
440 const char kOmniboxLearnMoreURL
[] =
441 #if defined(OS_CHROMEOS)
442 "https://support.google.com/chromeos/?p=settings_omnibox";
444 "https://support.google.com/chrome/?p=settings_omnibox";
447 const char kPageInfoHelpCenterURL
[] =
448 #if defined(OS_CHROMEOS)
449 "https://support.google.com/chromeos/?p=ui_security_indicator";
451 "https://support.google.com/chrome/?p=ui_security_indicator";
454 const char kCrashReasonURL
[] =
455 #if defined(OS_CHROMEOS)
456 "https://support.google.com/chromeos/?p=e_awsnap";
458 "https://support.google.com/chrome/?p=e_awsnap";
461 const char kKillReasonURL
[] =
462 #if defined(OS_CHROMEOS)
463 "https://support.google.com/chromeos/?p=e_deadjim";
465 "https://support.google.com/chrome/?p=e_deadjim";
468 const char kPrivacyLearnMoreURL
[] =
469 #if defined(OS_CHROMEOS)
470 "https://support.google.com/chromeos/?p=settings_privacy";
472 "https://support.google.com/chrome/?p=settings_privacy";
475 const char kDoNotTrackLearnMoreURL
[] =
476 #if defined(OS_CHROMEOS)
477 "https://support.google.com/chromeos/?p=settings_do_not_track";
479 "https://support.google.com/chrome/?p=settings_do_not_track";
482 #if defined(OS_CHROMEOS)
483 const char kAttestationForContentProtectionLearnMoreURL
[] =
484 "https://support.google.com/chromebook/?p=verified_access";
486 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
487 "https://support.google.com/chromebook/?p=enhanced_playback";
490 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
492 const char kLearnMoreReportingURL
[] =
493 "https://support.google.com/chrome/?p=ui_usagestat";
495 const char kOutdatedPluginLearnMoreURL
[] =
496 "https://support.google.com/chrome/?p=ib_outdated_plugin";
498 const char kBlockedPluginLearnMoreURL
[] =
499 "https://support.google.com/chrome/?p=ib_blocked_plugin";
501 const char kHotwordLearnMoreURL
[] =
502 "https://support.google.com/chrome/?p=ui_hotword_search";
504 const char kManageAudioHistoryURL
[] =
505 "https://history.google.com/history/audio";
507 const char kLearnMoreRegisterProtocolHandlerURL
[] =
508 "https://support.google.com/chrome/?p=ib_protocol_handler";
510 const char kSyncLearnMoreURL
[] =
511 "https://support.google.com/chrome/?p=settings_sign_in";
513 const char kDownloadScanningLearnMoreURL
[] =
514 "https://support.google.com/chrome/?p=ib_download_blocked";
516 const char kDownloadInterruptedLearnMoreURL
[] =
517 "https://support.google.com/chrome/?p=ui_download_errors";
519 const char kSyncEverythingLearnMoreURL
[] =
520 "https://support.google.com/chrome/?p=settings_sync_all";
522 const char kCloudPrintLearnMoreURL
[] =
523 #if defined(OS_CHROMEOS)
524 "https://support.google.com/chromeos/?p=settings_cloud_print";
526 "https://support.google.com/chrome/?p=settings_cloud_print";
529 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
530 "https://www.google.com/cloudprint/learn/";
532 const char kAppLauncherHelpURL
[] =
533 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
535 const char kSyncEncryptionHelpURL
[] =
536 #if defined(OS_CHROMEOS)
537 "https://support.google.com/chromeos/?p=settings_encryption";
539 "https://support.google.com/chrome/?p=settings_encryption";
542 const char kSyncErrorsHelpURL
[] =
543 "https://support.google.com/chrome/?p=settings_sync_error";
545 #if defined(OS_CHROMEOS)
546 const char kNaturalScrollHelpURL
[] =
547 "https://support.google.com/chromeos/?p=simple_scrolling";
550 #if defined(OS_CHROMEOS)
551 const char kLearnMoreEnterpriseURL
[] =
552 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
555 const char kRemoveNonCWSExtensionURL
[] =
556 "https://support.google.com/chrome/answer/2811969?"
557 "p=ui_remove_non_cws_extensions&rd=1";
559 const char kNotificationsHelpURL
[] =
560 "https://support.google.com/chrome/?p=ui_notifications";
562 const char kNotificationWelcomeLearnMoreURL
[] =
563 "https://support.google.com/chrome/?p=ib_google_now_welcome";
565 // Add hosts here to be included in chrome://chrome-urls (about:about).
566 // These hosts will also be suggested by BuiltinProvider.
567 const char* const kChromeHostURLs
[] = {
569 kChromeUIChromeURLsHost
,
570 kChromeUIComponentsHost
,
571 kChromeUICrashesHost
,
572 kChromeUICreditsHost
,
575 kChromeUIHistoryHost
,
576 kChromeUIInvalidationsHost
,
578 kChromeUIMemoryInternalsHost
,
579 kChromeUINetInternalsHost
,
581 kChromeUIOmniboxHost
,
582 kChromeUIPasswordManagerInternalsHost
,
583 kChromeUIPredictorsHost
,
584 kChromeUIProfilerHost
,
585 kChromeUISignInInternalsHost
,
587 kChromeUISuggestionsHost
,
588 kChromeUISyncInternalsHost
,
590 kChromeUIThumbnailListHost
,
591 kChromeUITranslateInternalsHost
,
592 kChromeUIUserActionsHost
,
593 kChromeUIVersionHost
,
594 kChromeUIVoiceSearchHost
,
595 content::kChromeUIAccessibilityHost
,
596 content::kChromeUIAppCacheInternalsHost
,
597 content::kChromeUIBlobInternalsHost
,
598 content::kChromeUIGpuHost
,
599 content::kChromeUIHistogramHost
,
600 content::kChromeUIIndexedDBInternalsHost
,
601 content::kChromeUIMediaInternalsHost
,
602 content::kChromeUINetworkViewCacheHost
,
603 content::kChromeUIServiceWorkerInternalsHost
,
604 content::kChromeUITracingHost
,
605 content::kChromeUIWebRTCInternalsHost
,
606 #if !defined(OS_ANDROID)
607 kChromeUIAppLauncherPageHost
,
608 kChromeUIBookmarksHost
,
609 kChromeUIDownloadsHost
,
611 kChromeUIGCMInternalsHost
,
613 kChromeUIInspectHost
,
614 kChromeUIPluginsHost
,
615 kChromeUIQuotaInternalsHost
,
616 kChromeUISettingsHost
,
617 kChromeUISystemInfoHost
,
620 #if defined(OS_ANDROID) || defined(OS_IOS)
621 kChromeUINetExportHost
,
623 #if defined(OS_CHROMEOS)
624 kChromeUICertificateManagerHost
,
625 kChromeUIChooseMobileNetworkHost
,
626 kChromeUICryptohomeHost
,
627 kChromeUIDiscardsHost
,
628 kChromeUIDriveInternalsHost
,
629 kChromeUIFirstRunHost
,
630 kChromeUIImageBurnerHost
,
631 kChromeUIKeyboardOverlayHost
,
633 kChromeUINetworkHost
,
635 kChromeUIOSCreditsHost
,
637 kChromeUIProxySettingsHost
,
639 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
640 kChromeUILinuxProxyConfigHost
,
641 kChromeUISandboxHost
,
644 kChromeUIConflictsHost
,
646 #if !defined(DISABLE_NACL)
649 #if defined(ENABLE_CONFIGURATION_POLICY)
652 #if defined(ENABLE_EXTENSIONS)
653 kChromeUIExtensionsHost
,
655 #if defined(ENABLE_PRINT_PREVIEW)
658 #if defined(ENABLE_SERVICE_DISCOVERY)
659 kChromeUIDevicesHost
,
661 #if defined(ENABLE_WEBRTC)
662 kChromeUIWebRtcLogsHost
,
665 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
667 const char* const kChromeDebugURLs
[] = {
668 content::kChromeUICrashURL
,
669 content::kChromeUIDumpURL
,
670 content::kChromeUIKillURL
,
671 content::kChromeUIHangURL
,
672 content::kChromeUIShorthangURL
,
673 content::kChromeUIGpuCleanURL
,
674 content::kChromeUIGpuCrashURL
,
675 content::kChromeUIGpuHangURL
,
676 content::kChromeUIPpapiFlashCrashURL
,
677 content::kChromeUIPpapiFlashHangURL
,
678 chrome::kChromeUIQuitURL
,
679 chrome::kChromeUIRestartURL
681 const int kNumberOfChromeDebugURLs
=
682 static_cast<int>(arraysize(kChromeDebugURLs
));
684 const char kChromeNativeScheme
[] = "chrome-native";
686 const char kChromeSearchScheme
[] = "chrome-search";
687 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
688 const char kChromeSearchLocalNtpUrl
[] =
689 "chrome-search://local-ntp/local-ntp.html";
690 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
692 const char kChromeSearchMostVisitedHost
[] = "most-visited";
693 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
695 // Google SafeSearch query parameters.
696 const char kSafeSearchSafeParameter
[] = "safe=active";
697 const char kSafeSearchSsuiParameter
[] = "ssui=on";
699 const char kMediaAccessLearnMoreUrl
[] =
700 "https://support.google.com/chrome/?p=ib_access_cam_mic";
702 const char kLanguageSettingsLearnMoreUrl
[] =
703 #if defined(OS_CHROMEOS)
704 "https://support.google.com/chromebook/answer/1059490";
706 "https://support.google.com/chrome/topic/1678461";
709 #if defined(OS_MACOSX)
710 const char kMac32BitDeprecationURL
[] =
711 #if !defined(ARCH_CPU_64_BITS)
712 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
718 const char kEasyUnlockLearnMoreUrl
[] =
719 "https://support.google.com/chromebook/?p=easy_unlock";
721 } // namespace chrome