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 kChromeUIFaviconURL
[] = "chrome://favicon/";
49 const char kChromeUIFeedbackURL
[] = "chrome://feedback/";
50 const char kChromeUIFlagsURL
[] = "chrome://flags/";
51 const char kChromeUIFlashURL
[] = "chrome://flash/";
52 const char kChromeUIGCMInternalsURL
[] = "chrome://gcm-internals/";
53 const char kChromeUIHelpFrameURL
[] = "chrome://help-frame/";
54 const char kChromeUIHistoryURL
[] = "chrome://history/";
55 const char kChromeUIHistoryFrameURL
[] = "chrome://history-frame/";
56 const char kChromeUIIdentityInternalsURL
[] = "chrome://identity-internals/";
57 const char kChromeUIInspectURL
[] = "chrome://inspect/";
58 const char kChromeUIInstantURL
[] = "chrome://instant/";
59 const char kChromeUIInterstitialURL
[] = "chrome://interstitials/";
60 const char kChromeUIInvalidationsURL
[] = "chrome://invalidations/";
61 const char kChromeUIMemoryRedirectURL
[] = "chrome://memory-redirect/";
62 const char kChromeUIMemoryURL
[] = "chrome://memory/";
63 const char kChromeUIMetroFlowURL
[] = "chrome://make-metro/";
64 const char kChromeUINaClURL
[] = "chrome://nacl/";
65 const char kChromeUINetInternalsURL
[] = "chrome://net-internals/";
66 const char kChromeUINewProfile
[] = "chrome://newprofile/";
67 const char kChromeUINewTabURL
[] = "chrome://newtab/";
68 const char kChromeUIOmniboxURL
[] = "chrome://omnibox/";
69 const char kChromeUIPluginsURL
[] = "chrome://plugins/";
70 const char kChromeUIPolicyURL
[] = "chrome://policy/";
71 const char kChromeUIProfileSigninConfirmationURL
[] =
72 "chrome://profile-signin-confirmation/";
73 const char kChromeUIUserManagerURL
[] = "chrome://user-manager/";
74 const char kChromeUIPrintURL
[] = "chrome://print/";
75 const char kChromeUIQuitURL
[] = "chrome://quit/";
76 const char kChromeUIRestartURL
[] = "chrome://restart/";
77 const char kChromeUISettingsURL
[] = "chrome://settings/";
78 const char kChromeUISettingsFrameURL
[] = "chrome://settings-frame/";
79 const char kChromeUISSLClientCertificateSelectorURL
[] = "chrome://select-cert/";
80 const char kChromeUISuggestions
[] = "chrome://suggestions/";
81 const char kChromeUISuggestionsInternalsURL
[] =
82 "chrome://suggestions-internals/";
83 const char kChromeUISupervisedUserPassphrasePageURL
[] =
84 "chrome://managed-user-passphrase/";
85 const char kChromeUITermsURL
[] = "chrome://terms/";
86 const char kChromeUIThemeURL
[] = "chrome://theme/";
87 const char kChromeUIThumbnailURL
[] = "chrome://thumb/";
88 const char kChromeUIThumbnailListURL
[] = "chrome://thumbnails/";
89 const char kChromeUIUberURL
[] = "chrome://chrome/";
90 const char kChromeUIUberFrameURL
[] = "chrome://uber-frame/";
91 const char kChromeUIUserActionsURL
[] = "chrome://user-actions/";
92 const char kChromeUIVersionURL
[] = "chrome://version/";
93 const char kChromeUIVoiceSearchURL
[] = "chrome://voicesearch/";
95 #if defined(OS_ANDROID)
96 const char kChromeUINativeScheme
[] = "chrome-native";
97 const char kChromeUINativeNewTabURL
[] = "chrome-native://newtab/";
98 const char kChromeUINativeBookmarksURL
[] = "chrome-native://bookmarks/";
99 const char kChromeUINativeRecentTabsURL
[] = "chrome-native://recent-tabs/";
102 #if defined(OS_CHROMEOS)
103 const char kChromeUIActivationMessage
[] = "chrome://activationmessage/";
104 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
105 const char kChromeUICertificateManagerDialogURL
[] =
106 "chrome://certificate-manager/";
107 const char kChromeUIChooseMobileNetworkURL
[] =
108 "chrome://choose-mobile-network/";
109 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
110 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
111 const char kChromeUIIdleLogoutDialogURL
[] = "chrome://idle-logout/";
112 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
113 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
114 const char kChromeUILockScreenURL
[] = "chrome://lock/";
115 const char kChromeUIMediaplayerURL
[] = "chrome://mediaplayer/";
116 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
117 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
118 const char kChromeUIOobeURL
[] = "chrome://oobe/";
119 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
120 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
121 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
122 const char kChromeUISetTimeURL
[] = "chrome://set-time/";
123 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
124 const char kChromeUISlideshowURL
[] = "chrome://slideshow/";
125 const char kChromeUISlowURL
[] = "chrome://slow/";
126 const char kChromeUISystemInfoURL
[] = "chrome://system/";
127 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
128 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
131 #if defined(USE_AURA)
132 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
133 const char kChromeUIGestureConfigHost
[] = "gesture";
134 const char kChromeUISalsaURL
[] = "chrome://salsa/";
135 const char kChromeUISalsaHost
[] = "salsa";
138 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
139 const char kChromeUITabModalConfirmDialogURL
[] =
140 "chrome://tab-modal-confirm-dialog/";
143 #if !defined(OS_ANDROID) && !defined(OS_IOS)
144 const char kChromeUICopresenceURL
[] = "chrome://copresence/";
147 #if defined(ENABLE_WEBRTC)
148 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
151 // Add Chrome UI hosts here, in alphabetical order.
152 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
153 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
154 const char kChromeUIAboutHost
[] = "about";
155 const char kChromeUIBlankHost
[] = "blank";
156 const char kChromeUIAppLauncherPageHost
[] = "apps";
157 const char kChromeUIAppListStartPageHost
[] = "app-list";
158 const char kChromeUIBookmarksHost
[] = "bookmarks";
159 const char kChromeUICacheHost
[] = "cache";
160 const char kChromeUICertificateViewerHost
[] = "view-cert";
161 const char kChromeUICertificateViewerDialogHost
[] = "view-cert-dialog";
162 const char kChromeUIChromeSigninHost
[] = "chrome-signin";
163 const char kChromeUIChromeURLsHost
[] = "chrome-urls";
164 const char kChromeUICloudPrintResourcesHost
[] = "cloudprintresources";
165 const char kChromeUICloudPrintSetupHost
[] = "cloudprintsetup";
166 const char kChromeUIConflictsHost
[] = "conflicts";
167 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
168 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
169 const char kChromeUICrashesHost
[] = "crashes";
170 const char kChromeUICrashHost
[] = "crash";
171 const char kChromeUICreditsHost
[] = "credits";
172 const char kChromeUIDefaultHost
[] = "version";
173 const char kChromeUIDevicesHost
[] = "devices";
174 const char kChromeUIDevToolsHost
[] = "devtools";
175 const char kChromeUIDevToolsBundledPath
[] = "bundled";
176 const char kChromeUIDevToolsRemotePath
[] = "remote";
177 const char kChromeUIDNSHost
[] = "dns";
178 const char kChromeUIDomainReliabilityInternalsHost
[] =
179 "domain-reliability-internals";
180 const char kChromeUIDownloadsHost
[] = "downloads";
181 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
182 const char kChromeUIEditSearchEngineDialogHost
[] = "editsearchengine";
183 const char kChromeUIExtensionIconHost
[] = "extension-icon";
184 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
185 const char kChromeUIExtensionsHost
[] = "extensions";
186 const char kChromeUIFaviconHost
[] = "favicon";
187 const char kChromeUIFeedbackHost
[] = "feedback";
188 const char kChromeUIFlagsHost
[] = "flags";
189 const char kChromeUIFlashHost
[] = "flash";
190 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
191 const char kChromeUIHangHost
[] = "hang";
192 const char kChromeUIHelpFrameHost
[] = "help-frame";
193 const char kChromeUIHelpHost
[] = "help";
194 const char kChromeUIHistoryHost
[] = "history";
195 const char kChromeUIHistoryFrameHost
[] = "history-frame";
196 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
197 const char kChromeUIInspectHost
[] = "inspect";
198 const char kChromeUIInstantHost
[] = "instant";
199 const char kChromeUIInterstitialHost
[] = "interstitials";
200 const char kChromeUIInvalidationsHost
[] = "invalidations";
201 const char kChromeUIKillHost
[] = "kill";
202 const char kChromeUILocalStateHost
[] = "local-state";
203 const char kChromeUIMemoryHost
[] = "memory";
204 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
205 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
206 const char kChromeUIMetroFlowHost
[] = "make-metro";
207 const char kChromeUINaClHost
[] = "nacl";
208 const char kChromeUINetExportHost
[] = "net-export";
209 const char kChromeUINetInternalsHost
[] = "net-internals";
210 const char kChromeUINewTabHost
[] = "newtab";
211 const char kChromeUIOmniboxHost
[] = "omnibox";
212 const char kChromeUIPasswordManagerInternalsHost
[] =
213 "password-manager-internals";
214 const char kChromeUIPluginsHost
[] = "plugins";
215 const char kChromeUIComponentsHost
[] = "components";
216 const char kChromeUIPolicyHost
[] = "policy";
217 const char kChromeUIProfileSigninConfirmationHost
[] =
218 "profile-signin-confirmation";
219 const char kChromeUIUserManagerHost
[] = "user-manager";
220 const char kChromeUIPredictorsHost
[] = "predictors";
221 const char kChromeUIProfilerHost
[] = "profiler";
222 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
223 const char kChromeUIQuitHost
[] = "quit";
224 const char kChromeUIRestartHost
[] = "restart";
225 const char kChromeUISettingsHost
[] = "settings";
226 const char kChromeUISettingsFrameHost
[] = "settings-frame";
227 const char kChromeUIShorthangHost
[] = "shorthang";
228 const char kChromeUISignInInternalsHost
[] = "signin-internals";
229 const char kChromeUISSLClientCertificateSelectorHost
[] = "select-cert";
230 const char kChromeUIStatsHost
[] = "stats";
231 const char kChromeUISuggestionsHost
[] = "suggestions";
232 const char kChromeUISuggestionsInternalsHost
[] = "suggestions-internals";
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 kChromeUIScreenshotPath
[] = "screenshots";
257 const char kChromeUIThemePath
[] = "theme";
259 #if defined(ENABLE_PRINT_PREVIEW)
260 const char kChromeUIPrintHost
[] = "print";
261 #endif // ENABLE_PRINT_PREVIEW
263 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
264 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
265 const char kChromeUISandboxHost
[] = "sandbox";
268 #if defined(OS_CHROMEOS)
269 const char kChromeUIActivationMessageHost
[] = "activationmessage";
270 const char kChromeUIAppLaunchHost
[] = "app-launch";
271 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
272 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
273 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
274 const char kChromeUICryptohomeHost
[] = "cryptohome";
275 const char kChromeUIDeviceLogHost
[] = "device-log";
276 const char kChromeUIDiscardsHost
[] = "discards";
277 const char kChromeUIFirstRunHost
[] = "first-run";
278 const char kChromeUIIdleLogoutDialogHost
[] = "idle-logout";
279 const char kChromeUIImageBurnerHost
[] = "imageburner";
280 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
281 const char kChromeUILockScreenHost
[] = "lock";
282 const char kChromeUILoginContainerHost
[] = "login-container";
283 const char kChromeUILoginHost
[] = "login";
284 const char kChromeUIMediaplayerHost
[] = "mediaplayer";
285 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
286 const char kChromeUINfcDebugHost
[] = "nfc-debug";
287 const char kChromeUINetworkHost
[] = "network";
288 const char kChromeUIOobeHost
[] = "oobe";
289 const char kChromeUIOSCreditsHost
[] = "os-credits";
290 const char kChromeUIPowerHost
[] = "power";
291 const char kChromeUIProvidedFileSystemsHost
[] = "provided-file-systems";
292 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
293 const char kChromeUIRotateHost
[] = "rotate";
294 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
295 const char kChromeUISetTimeHost
[] = "set-time";
296 const char kChromeUISimUnlockHost
[] = "sim-unlock";
297 const char kChromeUISlideshowHost
[] = "slideshow";
298 const char kChromeUISlowHost
[] = "slow";
299 const char kChromeUISlowTraceHost
[] = "slow_trace";
300 const char kChromeUIUserImageHost
[] = "userimage";
302 const char kChromeUIMenu
[] = "menu";
303 const char kChromeUINetworkMenu
[] = "network-menu";
304 const char kChromeUIWrenchMenu
[] = "wrench-menu";
306 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
307 const char kOemEulaURLPath
[] = "oem";
308 const char kOnlineEulaURLPath
[] =
309 "https://www.google.com/intl/%s/chrome/eula_text.html";
311 const char kChromeOSCreditsPath
[] =
312 "/opt/google/chrome/resources/about_os_credits.html";
314 const char kChromeOSAssetHost
[] = "chromeos-asset";
315 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
318 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
319 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
322 #if !defined(OS_ANDROID) && !defined(OS_IOS)
323 const char kChromeUICopresenceHost
[] = "copresence";
326 #if defined(ENABLE_WEBRTC)
327 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
331 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
332 // listed by the built-in AutocompleteProvider.
333 const char kAutofillSubPage
[] = "autofill";
334 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
335 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
336 const char kContentSettingsSubPage
[] = "content";
337 const char kCreateProfileSubPage
[] = "createProfile";
338 const char kExtensionsSubPage
[] = "extensions";
339 const char kHandlerSettingsSubPage
[] = "handlers";
340 const char kImportDataSubPage
[] = "importData";
341 const char kLanguageOptionsSubPage
[] = "languages";
342 const char kManageProfileSubPage
[] = "manageProfile";
343 const char kPasswordManagerSubPage
[] = "passwords";
344 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
345 const char kSearchEnginesSubPage
[] = "searchEngines";
346 const char kSearchSubPage
[] = "search";
347 const char kSearchUsersSubPage
[] = "search#Users";
348 const char kSupervisedUserSettingsSubPage
[] = "managedUser";
349 const char kSyncSetupSubPage
[] = "syncSetup";
350 #if defined(OS_CHROMEOS)
351 const char kInternetOptionsSubPage
[] = "internet";
352 const char kBluetoothAddDeviceSubPage
[] = "bluetooth";
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/chromeos/?p=settings_password";
370 "https://support.google.com/chrome/?p=settings_password";
373 const char kPasswordManagerAccountDashboardURL
[] =
374 "https://passwords.google.com/settings/passwords";
376 const char kExtensionControlledSettingLearnMoreURL
[] =
377 "https://support.google.com/chrome/?p=ui_settings_api_extension";
379 const char kChromeHelpViaKeyboardURL
[] =
380 #if defined(OS_CHROMEOS)
381 #if defined(OFFICIAL_BUILD)
382 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
384 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
385 #endif // defined(OFFICIAL_BUILD
387 "https://support.google.com/chrome/?p=help&ctx=keyboard";
388 #endif // defined(OS_CHROMEOS)
390 const char kChromeHelpViaMenuURL
[] =
391 #if defined(OS_CHROMEOS)
392 #if defined(OFFICIAL_BUILD)
393 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
395 "https://support.google.com/chromeos/?p=help&ctx=menu";
396 #endif // defined(OFFICIAL_BUILD
398 "https://support.google.com/chrome/?p=help&ctx=menu";
399 #endif // defined(OS_CHROMEOS)
401 const char kChromeHelpViaWebUIURL
[] =
402 #if defined(OS_CHROMEOS)
403 #if defined(OFFICIAL_BUILD)
404 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
406 "https://support.google.com/chromeos/?p=help&ctx=settings";
407 #endif // defined(OFFICIAL_BUILD
409 "https://support.google.com/chrome/?p=help&ctx=settings";
410 #endif // defined(OS_CHROMEOS)
412 #if defined(OS_CHROMEOS)
413 const char kChromeAccessibilityHelpURL
[] =
414 "https://support.google.com/chromeos/?p=accessibility_menu";
415 const char kChromeAccessibilitySettingsURL
[] =
416 "/chromevox/background/options.html";
417 #endif // defined(OS_CHROMEOS)
419 #if defined(ENABLE_ONE_CLICK_SIGNIN)
420 const char kChromeSyncLearnMoreURL
[] =
421 "http://support.google.com/chrome/bin/answer.py?answer=165139";
423 const char kChromeSyncMergeTroubleshootingURL
[] =
424 "https://support.google.com/chrome/answer/1181420#merge";
425 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
427 const char kChromeEnterpriseSignInLearnMoreURL
[] =
428 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
430 const char kResetProfileSettingsLearnMoreURL
[] =
431 "https://support.google.com/chrome/?p=ui_reset_settings";
433 const char kAutomaticSettingsResetLearnMoreURL
[] =
434 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
436 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
438 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
440 const char kSettingsSearchHelpURL
[] =
441 #if defined(OS_CHROMEOS)
442 "https://support.google.com/chromeos/?p=settings_search_help";
444 "https://support.google.com/chrome/?p=settings_search_help";
447 const char kOmniboxLearnMoreURL
[] =
448 #if defined(OS_CHROMEOS)
449 "https://support.google.com/chromeos/?p=settings_omnibox";
451 "https://support.google.com/chrome/?p=settings_omnibox";
454 const char kPageInfoHelpCenterURL
[] =
455 #if defined(OS_CHROMEOS)
456 "https://support.google.com/chromeos/?p=ui_security_indicator";
458 "https://support.google.com/chrome/?p=ui_security_indicator";
461 const char kCrashReasonURL
[] =
462 #if defined(OS_CHROMEOS)
463 "https://support.google.com/chromeos/?p=e_awsnap";
465 "https://support.google.com/chrome/?p=e_awsnap";
468 const char kKillReasonURL
[] =
469 #if defined(OS_CHROMEOS)
470 "https://support.google.com/chromeos/?p=e_deadjim";
472 "https://support.google.com/chrome/?p=e_deadjim";
475 const char kPrivacyLearnMoreURL
[] =
476 #if defined(OS_CHROMEOS)
477 "https://support.google.com/chromeos/?p=settings_privacy";
479 "https://support.google.com/chrome/?p=settings_privacy";
482 const char kDoNotTrackLearnMoreURL
[] =
483 #if defined(OS_CHROMEOS)
484 "https://support.google.com/chromeos/?p=settings_do_not_track";
486 "https://support.google.com/chrome/?p=settings_do_not_track";
489 #if defined(OS_CHROMEOS)
490 const char kAttestationForContentProtectionLearnMoreURL
[] =
491 "https://support.google.com/chromebook/?p=verified_access";
493 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
494 "https://support.google.com/chromebook/?p=enhanced_playback";
497 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
499 const char kLearnMoreReportingURL
[] =
500 "https://support.google.com/chrome/?p=ui_usagestat";
502 const char kOutdatedPluginLearnMoreURL
[] =
503 "https://support.google.com/chrome/?p=ib_outdated_plugin";
505 const char kBlockedPluginLearnMoreURL
[] =
506 "https://support.google.com/chrome/?p=ib_blocked_plugin";
508 const char kHotwordLearnMoreURL
[] =
509 "https://support.google.com/chrome/?p=ui_hotword_search";
511 const char kManageAudioHistoryURL
[] =
512 "https://history.google.com/history/audio";
514 const char kLearnMoreRegisterProtocolHandlerURL
[] =
515 "https://support.google.com/chrome/?p=ib_protocol_handler";
517 const char kSyncLearnMoreURL
[] =
518 "https://support.google.com/chrome/?p=settings_sign_in";
520 const char kDownloadScanningLearnMoreURL
[] =
521 "https://support.google.com/chrome/?p=ib_download_blocked";
523 const char kDownloadInterruptedLearnMoreURL
[] =
524 "https://support.google.com/chrome/?p=ui_download_errors";
526 const char kSyncEverythingLearnMoreURL
[] =
527 "https://support.google.com/chrome/?p=settings_sync_all";
529 const char kCloudPrintLearnMoreURL
[] =
530 #if defined(OS_CHROMEOS)
531 "https://support.google.com/chromeos/?p=settings_cloud_print";
533 "https://support.google.com/chrome/?p=settings_cloud_print";
536 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
537 "https://www.google.com/cloudprint/learn/";
539 const char kAppLauncherHelpURL
[] =
540 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
542 const char kSyncEncryptionHelpURL
[] =
543 #if defined(OS_CHROMEOS)
544 "https://support.google.com/chromeos/?p=settings_encryption";
546 "https://support.google.com/chrome/?p=settings_encryption";
549 const char kSyncErrorsHelpURL
[] =
550 "https://support.google.com/chrome/?p=settings_sync_error";
552 #if defined(OS_CHROMEOS)
553 const char kNaturalScrollHelpURL
[] =
554 "https://support.google.com/chromeos/?p=simple_scrolling";
557 #if defined(OS_CHROMEOS)
558 const char kLearnMoreEnterpriseURL
[] =
559 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
562 const char kRemoveNonCWSExtensionURL
[] =
563 "https://support.google.com/chrome/answer/2811969?"
564 "p=ui_remove_non_cws_extensions&rd=1";
566 const char kNotificationsHelpURL
[] =
567 "https://support.google.com/chrome/?p=ui_notifications";
569 const char kNotificationWelcomeLearnMoreURL
[] =
570 "https://support.google.com/chrome/?p=ib_google_now_welcome";
572 // Add hosts here to be included in chrome://chrome-urls (about:about).
573 // These hosts will also be suggested by BuiltinProvider.
574 const char* const kChromeHostURLs
[] = {
576 kChromeUIChromeURLsHost
,
577 kChromeUIComponentsHost
,
578 kChromeUICrashesHost
,
579 kChromeUICreditsHost
,
582 kChromeUIHistoryHost
,
583 kChromeUIInvalidationsHost
,
584 kChromeUILocalStateHost
,
586 kChromeUIMemoryInternalsHost
,
587 kChromeUINetInternalsHost
,
589 kChromeUIOmniboxHost
,
590 kChromeUIPasswordManagerInternalsHost
,
591 kChromeUIPredictorsHost
,
592 kChromeUIProfilerHost
,
593 kChromeUISignInInternalsHost
,
595 kChromeUISuggestionsHost
,
596 kChromeUISyncInternalsHost
,
598 kChromeUIThumbnailListHost
,
599 kChromeUITranslateInternalsHost
,
600 kChromeUIUserActionsHost
,
601 kChromeUIVersionHost
,
602 kChromeUIVoiceSearchHost
,
603 content::kChromeUIAccessibilityHost
,
604 content::kChromeUIAppCacheInternalsHost
,
605 content::kChromeUIBlobInternalsHost
,
606 content::kChromeUIGpuHost
,
607 content::kChromeUIHistogramHost
,
608 content::kChromeUIIndexedDBInternalsHost
,
609 content::kChromeUIMediaInternalsHost
,
610 content::kChromeUINetworkViewCacheHost
,
611 content::kChromeUIServiceWorkerInternalsHost
,
612 content::kChromeUITracingHost
,
613 content::kChromeUIWebRTCInternalsHost
,
614 #if !defined(OS_ANDROID)
615 kChromeUIAppLauncherPageHost
,
616 kChromeUIBookmarksHost
,
617 kChromeUIDownloadsHost
,
619 kChromeUIGCMInternalsHost
,
621 kChromeUIInspectHost
,
622 kChromeUIPluginsHost
,
623 kChromeUIQuotaInternalsHost
,
624 kChromeUISettingsHost
,
625 kChromeUISystemInfoHost
,
628 #if defined(OS_ANDROID) || defined(OS_IOS)
629 kChromeUINetExportHost
,
631 kChromeUICopresenceHost
,
633 #if defined(OS_CHROMEOS)
634 kChromeUICertificateManagerHost
,
635 kChromeUIChooseMobileNetworkHost
,
636 kChromeUICryptohomeHost
,
637 kChromeUIDeviceLogHost
,
638 kChromeUIDiscardsHost
,
639 kChromeUIDriveInternalsHost
,
640 kChromeUIFirstRunHost
,
641 kChromeUIImageBurnerHost
,
642 kChromeUIKeyboardOverlayHost
,
644 kChromeUINetworkHost
,
646 kChromeUIOSCreditsHost
,
648 kChromeUIProxySettingsHost
,
650 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
651 kChromeUILinuxProxyConfigHost
,
652 kChromeUISandboxHost
,
655 kChromeUIConflictsHost
,
657 #if !defined(DISABLE_NACL)
660 #if defined(ENABLE_CONFIGURATION_POLICY)
663 #if defined(ENABLE_EXTENSIONS)
664 kChromeUIExtensionsHost
,
666 #if defined(ENABLE_PRINT_PREVIEW)
669 #if defined(ENABLE_SERVICE_DISCOVERY)
670 kChromeUIDevicesHost
,
672 #if defined(ENABLE_WEBRTC)
673 kChromeUIWebRtcLogsHost
,
676 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
678 const char* const kChromeDebugURLs
[] = {
679 content::kChromeUICrashURL
,
680 content::kChromeUIDumpURL
,
681 content::kChromeUIKillURL
,
682 content::kChromeUIHangURL
,
683 content::kChromeUIShorthangURL
,
684 content::kChromeUIGpuCleanURL
,
685 content::kChromeUIGpuCrashURL
,
686 content::kChromeUIGpuHangURL
,
687 content::kChromeUIPpapiFlashCrashURL
,
688 content::kChromeUIPpapiFlashHangURL
,
689 chrome::kChromeUIQuitURL
,
690 chrome::kChromeUIRestartURL
692 const int kNumberOfChromeDebugURLs
=
693 static_cast<int>(arraysize(kChromeDebugURLs
));
695 const char kChromeNativeScheme
[] = "chrome-native";
697 const char kChromeSearchScheme
[] = "chrome-search";
698 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
699 const char kChromeSearchLocalNtpUrl
[] =
700 "chrome-search://local-ntp/local-ntp.html";
701 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
703 const char kChromeSearchMostVisitedHost
[] = "most-visited";
704 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
706 // Google SafeSearch query parameters.
707 const char kSafeSearchSafeParameter
[] = "safe=active";
708 const char kSafeSearchSsuiParameter
[] = "ssui=on";
710 const char kMediaAccessLearnMoreUrl
[] =
711 "https://support.google.com/chrome/?p=ib_access_cam_mic";
713 const char kLanguageSettingsLearnMoreUrl
[] =
714 #if defined(OS_CHROMEOS)
715 "https://support.google.com/chromebook/answer/1059490";
717 "https://support.google.com/chrome/topic/1678461";
720 #if defined(OS_MACOSX)
721 const char kMac32BitDeprecationURL
[] =
722 #if !defined(ARCH_CPU_64_BITS)
723 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
729 const char kEasyUnlockLearnMoreUrl
[] =
730 "https://support.google.com/chromebook/?p=smart_lock";
732 } // namespace chrome