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 kChromeUIMdSettingsURL
[] = "chrome://md-settings/";
63 const char kChromeUIMemoryRedirectURL
[] = "chrome://memory-redirect/";
64 const char kChromeUIMemoryURL
[] = "chrome://memory/";
65 const char kChromeUIMetroFlowURL
[] = "chrome://make-metro/";
66 const char kChromeUINaClURL
[] = "chrome://nacl/";
67 const char kChromeUINetInternalsURL
[] = "chrome://net-internals/";
68 const char kChromeUINewProfile
[] = "chrome://newprofile/";
69 const char kChromeUINewTabURL
[] = "chrome://newtab/";
70 const char kChromeUIOmniboxURL
[] = "chrome://omnibox/";
71 const char kChromeUIPluginsURL
[] = "chrome://plugins/";
72 const char kChromeUIPolicyURL
[] = "chrome://policy/";
73 const char kChromeUIProfileSigninConfirmationURL
[] =
74 "chrome://profile-signin-confirmation/";
75 const char kChromeUIUserManagerURL
[] = "chrome://user-manager/";
76 const char kChromeUIPrintURL
[] = "chrome://print/";
77 const char kChromeUIQuitURL
[] = "chrome://quit/";
78 const char kChromeUIRestartURL
[] = "chrome://restart/";
79 const char kChromeUISettingsURL
[] = "chrome://settings/";
80 const char kChromeUIContentSettingsURL
[] = "chrome://settings/content";
81 const char kChromeUISettingsFrameURL
[] = "chrome://settings-frame/";
82 const char kChromeUISSLClientCertificateSelectorURL
[] = "chrome://select-cert/";
83 const char kChromeUISuggestions
[] = "chrome://suggestions/";
84 const char kChromeUISuggestionsInternalsURL
[] =
85 "chrome://suggestions-internals/";
86 const char kChromeUISupervisedUserPassphrasePageURL
[] =
87 "chrome://managed-user-passphrase/";
88 const char kChromeUITermsURL
[] = "chrome://terms/";
89 const char kChromeUIThemeURL
[] = "chrome://theme/";
90 const char kChromeUIThumbnailURL
[] = "chrome://thumb/";
91 const char kChromeUIThumbnailListURL
[] = "chrome://thumbnails/";
92 const char kChromeUIUberURL
[] = "chrome://chrome/";
93 const char kChromeUIUberFrameURL
[] = "chrome://uber-frame/";
94 const char kChromeUIUserActionsURL
[] = "chrome://user-actions/";
95 const char kChromeUIVersionURL
[] = "chrome://version/";
96 const char kChromeUIVoiceSearchURL
[] = "chrome://voicesearch/";
98 #if defined(OS_ANDROID)
99 const char kChromeUINativeScheme
[] = "chrome-native";
100 const char kChromeUINativeNewTabURL
[] = "chrome-native://newtab/";
101 const char kChromeUINativeBookmarksURL
[] = "chrome-native://bookmarks/";
102 const char kChromeUINativeRecentTabsURL
[] = "chrome-native://recent-tabs/";
105 #if defined(OS_CHROMEOS)
106 const char kChromeUIActivationMessage
[] = "chrome://activationmessage/";
107 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
108 const char kChromeUICertificateManagerDialogURL
[] =
109 "chrome://certificate-manager/";
110 const char kChromeUIChooseMobileNetworkURL
[] =
111 "chrome://choose-mobile-network/";
112 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
113 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
114 const char kChromeUIIdleLogoutDialogURL
[] = "chrome://idle-logout/";
115 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
116 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
117 const char kChromeUILockScreenURL
[] = "chrome://lock/";
118 const char kChromeUIMediaplayerURL
[] = "chrome://mediaplayer/";
119 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
120 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
121 const char kChromeUIOobeURL
[] = "chrome://oobe/";
122 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
123 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
124 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
125 const char kChromeUISetTimeURL
[] = "chrome://set-time/";
126 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
127 const char kChromeUISlideshowURL
[] = "chrome://slideshow/";
128 const char kChromeUISlowURL
[] = "chrome://slow/";
129 const char kChromeUISystemInfoURL
[] = "chrome://system/";
130 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
131 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
134 #if defined(USE_AURA)
135 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
136 const char kChromeUIGestureConfigHost
[] = "gesture";
137 const char kChromeUISalsaURL
[] = "chrome://salsa/";
138 const char kChromeUISalsaHost
[] = "salsa";
141 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
142 const char kChromeUITabModalConfirmDialogURL
[] =
143 "chrome://tab-modal-confirm-dialog/";
146 #if !defined(OS_ANDROID) && !defined(OS_IOS)
147 const char kChromeUICopresenceURL
[] = "chrome://copresence/";
150 #if defined(ENABLE_WEBRTC)
151 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
154 // Add Chrome UI hosts here, in alphabetical order.
155 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
156 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
157 const char kChromeUIAboutHost
[] = "about";
158 const char kChromeUIBlankHost
[] = "blank";
159 const char kChromeUIAppLauncherPageHost
[] = "apps";
160 const char kChromeUIAppListStartPageHost
[] = "app-list";
161 const char kChromeUIBookmarksHost
[] = "bookmarks";
162 const char kChromeUICacheHost
[] = "cache";
163 const char kChromeUICertificateViewerHost
[] = "view-cert";
164 const char kChromeUICertificateViewerDialogHost
[] = "view-cert-dialog";
165 const char kChromeUIChromeSigninHost
[] = "chrome-signin";
166 const char kChromeUIChromeURLsHost
[] = "chrome-urls";
167 const char kChromeUICloudPrintResourcesHost
[] = "cloudprintresources";
168 const char kChromeUICloudPrintSetupHost
[] = "cloudprintsetup";
169 const char kChromeUIConflictsHost
[] = "conflicts";
170 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
171 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
172 const char kChromeUICrashesHost
[] = "crashes";
173 const char kChromeUICrashHost
[] = "crash";
174 const char kChromeUICreditsHost
[] = "credits";
175 const char kChromeUIDefaultHost
[] = "version";
176 const char kChromeUIDeviceLogHost
[] = "device-log";
177 const char kChromeUIDevicesHost
[] = "devices";
178 const char kChromeUIDevToolsHost
[] = "devtools";
179 const char kChromeUIDevToolsBundledPath
[] = "bundled";
180 const char kChromeUIDevToolsRemotePath
[] = "remote";
181 const char kChromeUIDNSHost
[] = "dns";
182 const char kChromeUIDomainReliabilityInternalsHost
[] =
183 "domain-reliability-internals";
184 const char kChromeUIDownloadsHost
[] = "downloads";
185 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
186 const char kChromeUIEditSearchEngineDialogHost
[] = "editsearchengine";
187 const char kChromeUIExtensionIconHost
[] = "extension-icon";
188 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
189 const char kChromeUIExtensionsHost
[] = "extensions";
190 const char kChromeUIFallbackIconHost
[] = "fallback-icon";
191 const char kChromeUIFaviconHost
[] = "favicon";
192 const char kChromeUIFeedbackHost
[] = "feedback";
193 const char kChromeUIFlagsHost
[] = "flags";
194 const char kChromeUIFlashHost
[] = "flash";
195 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
196 const char kChromeUIHangHost
[] = "hang";
197 const char kChromeUIHelpFrameHost
[] = "help-frame";
198 const char kChromeUIHelpHost
[] = "help";
199 const char kChromeUIHistoryHost
[] = "history";
200 const char kChromeUIHistoryFrameHost
[] = "history-frame";
201 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
202 const char kChromeUIInspectHost
[] = "inspect";
203 const char kChromeUIInstantHost
[] = "instant";
204 const char kChromeUIInterstitialHost
[] = "interstitials";
205 const char kChromeUIInvalidationsHost
[] = "invalidations";
206 const char kChromeUIKillHost
[] = "kill";
207 const char kChromeUILocalStateHost
[] = "local-state";
208 const char kChromeUIMdSettingsHost
[] = "md-settings";
209 const char kChromeUIMemoryHost
[] = "memory";
210 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
211 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
212 const char kChromeUIMetroFlowHost
[] = "make-metro";
213 const char kChromeUINaClHost
[] = "nacl";
214 const char kChromeUINetExportHost
[] = "net-export";
215 const char kChromeUINetInternalsHost
[] = "net-internals";
216 const char kChromeUINewTabHost
[] = "newtab";
217 const char kChromeUIOmniboxHost
[] = "omnibox";
218 const char kChromeUIPasswordManagerInternalsHost
[] =
219 "password-manager-internals";
220 const char kChromeUIPluginsHost
[] = "plugins";
221 const char kChromeUIComponentsHost
[] = "components";
222 const char kChromeUIPolicyHost
[] = "policy";
223 const char kChromeUIProfileSigninConfirmationHost
[] =
224 "profile-signin-confirmation";
225 const char kChromeUIUserManagerHost
[] = "user-manager";
226 const char kChromeUIPredictorsHost
[] = "predictors";
227 const char kChromeUIProfilerHost
[] = "profiler";
228 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
229 const char kChromeUIQuitHost
[] = "quit";
230 const char kChromeUIRestartHost
[] = "restart";
231 const char kChromeUISettingsHost
[] = "settings";
232 const char kChromeUISettingsFrameHost
[] = "settings-frame";
233 const char kChromeUIShorthangHost
[] = "shorthang";
234 const char kChromeUISignInInternalsHost
[] = "signin-internals";
235 const char kChromeUISSLClientCertificateSelectorHost
[] = "select-cert";
236 const char kChromeUISuggestionsHost
[] = "suggestions";
237 const char kChromeUISuggestionsInternalsHost
[] = "suggestions-internals";
238 const char kChromeUISupervisedUserPassphrasePageHost
[] =
239 "managed-user-passphrase";
240 const char kChromeUISyncHost
[] = "sync";
241 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
242 const char kChromeUISyncInternalsHost
[] = "sync-internals";
243 const char kChromeUISyncResourcesHost
[] = "syncresources";
244 const char kChromeUISystemInfoHost
[] = "system";
245 const char kChromeUITermsHost
[] = "terms";
246 const char kChromeUIThemeHost
[] = "theme";
247 const char kChromeUIThumbnailHost
[] = "thumb";
248 const char kChromeUIThumbnailHost2
[] = "thumb2";
249 const char kChromeUIThumbnailListHost
[] = "thumbnails";
250 const char kChromeUITouchIconHost
[] = "touch-icon";
251 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
252 const char kChromeUIUberFrameHost
[] = "uber-frame";
253 const char kChromeUIUberHost
[] = "chrome";
254 const char kChromeUIUserActionsHost
[] = "user-actions";
255 const char kChromeUIVersionHost
[] = "version";
256 const char kChromeUIVoiceSearchHost
[] = "voicesearch";
257 const char kChromeUIWebRTCDeviceProviderHost
[] =
258 "webrtc-device-provider";
259 const char kChromeUIWorkersHost
[] = "workers";
261 const char kChromeUIScreenshotPath
[] = "screenshots";
262 const char kChromeUIThemePath
[] = "theme";
264 #if defined(ENABLE_PRINT_PREVIEW)
265 const char kChromeUIPrintHost
[] = "print";
266 #endif // ENABLE_PRINT_PREVIEW
268 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
269 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
270 const char kChromeUISandboxHost
[] = "sandbox";
273 #if defined(OS_CHROMEOS)
274 const char kChromeUIActivationMessageHost
[] = "activationmessage";
275 const char kChromeUIAppLaunchHost
[] = "app-launch";
276 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
277 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
278 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
279 const char kChromeUICryptohomeHost
[] = "cryptohome";
280 const char kChromeUIDiscardsHost
[] = "discards";
281 const char kChromeUIFirstRunHost
[] = "first-run";
282 const char kChromeUIIdleLogoutDialogHost
[] = "idle-logout";
283 const char kChromeUIImageBurnerHost
[] = "imageburner";
284 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
285 const char kChromeUILockScreenHost
[] = "lock";
286 const char kChromeUILoginContainerHost
[] = "login-container";
287 const char kChromeUILoginHost
[] = "login";
288 const char kChromeUIMediaplayerHost
[] = "mediaplayer";
289 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
290 const char kChromeUINfcDebugHost
[] = "nfc-debug";
291 const char kChromeUINetworkHost
[] = "network";
292 const char kChromeUIOobeHost
[] = "oobe";
293 const char kChromeUIOobeMdHost
[] = "oobe-md";
294 const char kChromeUIOSCreditsHost
[] = "os-credits";
295 const char kChromeUIPowerHost
[] = "power";
296 const char kChromeUIProvidedFileSystemsHost
[] = "provided-file-systems";
297 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
298 const char kChromeUIRotateHost
[] = "rotate";
299 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
300 const char kChromeUISetTimeHost
[] = "set-time";
301 const char kChromeUISimUnlockHost
[] = "sim-unlock";
302 const char kChromeUISlideshowHost
[] = "slideshow";
303 const char kChromeUISlowHost
[] = "slow";
304 const char kChromeUISlowTraceHost
[] = "slow_trace";
305 const char kChromeUIUserImageHost
[] = "userimage";
307 const char kChromeUIMenu
[] = "menu";
308 const char kChromeUINetworkMenu
[] = "network-menu";
309 const char kChromeUIWrenchMenu
[] = "wrench-menu";
311 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
312 const char kOemEulaURLPath
[] = "oem";
313 const char kOnlineEulaURLPath
[] =
314 "https://www.google.com/intl/%s/chrome/eula_text.html";
316 const char kChromeOSCreditsPath
[] =
317 "/opt/google/chrome/resources/about_os_credits.html";
319 const char kChromeOSAssetHost
[] = "chromeos-asset";
320 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
323 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
324 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
327 #if !defined(OS_ANDROID) && !defined(OS_IOS)
328 const char kChromeUICopresenceHost
[] = "copresence";
331 #if defined(ENABLE_WEBRTC)
332 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
336 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
337 // listed by the built-in AutocompleteProvider.
338 const char kAutofillSubPage
[] = "autofill";
339 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
340 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
341 const char kContentSettingsSubPage
[] = "content";
342 const char kCreateProfileSubPage
[] = "createProfile";
343 const char kExtensionsSubPage
[] = "extensions";
344 const char kHandlerSettingsSubPage
[] = "handlers";
345 const char kImportDataSubPage
[] = "importData";
346 const char kLanguageOptionsSubPage
[] = "languages";
347 const char kManageProfileSubPage
[] = "manageProfile";
348 const char kPasswordManagerSubPage
[] = "passwords";
349 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
350 const char kSearchEnginesSubPage
[] = "searchEngines";
351 const char kSearchSubPage
[] = "search";
352 const char kSearchUsersSubPage
[] = "search#Users";
353 const char kSupervisedUserSettingsSubPage
[] = "managedUser";
354 const char kSyncSetupSubPage
[] = "syncSetup";
355 #if defined(OS_CHROMEOS)
356 const char kInternetOptionsSubPage
[] = "internet";
357 const char kBluetoothAddDeviceSubPage
[] = "bluetooth";
358 const char kChangeProfilePictureSubPage
[] = "changePicture";
361 // Extension sub pages.
362 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
364 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
365 const char kExtensionResourceInvalidRequestURL
[] =
366 "chrome-extension-resource://invalid/";
368 const char kSyncGoogleDashboardURL
[] =
369 "https://www.google.com/settings/chrome/sync/";
370 const char kSyncChromeDashboardURL
[] =
371 "https://chrome.com/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 kRapporLearnMoreURL
[] =
490 #if defined(OS_CHROMEOS)
491 "https://support.google.com/chromeos/?p=rappor";
493 "https://support.google.com/chrome/?p=rappor";
496 const char kDoNotTrackLearnMoreURL
[] =
497 #if defined(OS_CHROMEOS)
498 "https://support.google.com/chromeos/?p=settings_do_not_track";
500 "https://support.google.com/chrome/?p=settings_do_not_track";
503 #if defined(OS_CHROMEOS)
504 const char kAttestationForContentProtectionLearnMoreURL
[] =
505 "https://support.google.com/chromebook/?p=verified_access";
507 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
508 "https://support.google.com/chromebook/?p=enhanced_playback";
511 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
513 const char kLearnMoreReportingURL
[] =
514 "https://support.google.com/chrome/?p=ui_usagestat";
516 const char kOutdatedPluginLearnMoreURL
[] =
517 "https://support.google.com/chrome/?p=ib_outdated_plugin";
519 const char kBlockedPluginLearnMoreURL
[] =
520 "https://support.google.com/chrome/?p=ib_blocked_plugin";
522 const char kHotwordLearnMoreURL
[] =
523 "https://support.google.com/chrome/?p=ui_hotword_search";
525 const char kManageAudioHistoryURL
[] =
526 "https://history.google.com/history/audio";
528 const char kLearnMoreRegisterProtocolHandlerURL
[] =
529 "https://support.google.com/chrome/?p=ib_protocol_handler";
531 const char kSyncLearnMoreURL
[] =
532 "https://support.google.com/chrome/?p=settings_sign_in";
534 const char kDownloadScanningLearnMoreURL
[] =
535 "https://support.google.com/chrome/?p=ib_download_blocked";
537 const char kDownloadInterruptedLearnMoreURL
[] =
538 "https://support.google.com/chrome/?p=ui_download_errors";
540 const char kSyncEverythingLearnMoreURL
[] =
541 "https://support.google.com/chrome/?p=settings_sync_all";
543 const char kCloudPrintLearnMoreURL
[] =
544 #if defined(OS_CHROMEOS)
545 "https://support.google.com/chromeos/?p=settings_cloud_print";
547 "https://support.google.com/chrome/?p=settings_cloud_print";
550 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
551 "https://www.google.com/cloudprint/learn/";
553 const char kAppLauncherHelpURL
[] =
554 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
556 const char kSyncEncryptionHelpURL
[] =
557 #if defined(OS_CHROMEOS)
558 "https://support.google.com/chromeos/?p=settings_encryption";
560 "https://support.google.com/chrome/?p=settings_encryption";
563 const char kSyncErrorsHelpURL
[] =
564 "https://support.google.com/chrome/?p=settings_sync_error";
566 #if defined(OS_CHROMEOS)
567 const char kNaturalScrollHelpURL
[] =
568 "https://support.google.com/chromeos/?p=simple_scrolling";
571 #if defined(OS_CHROMEOS)
572 const char kLearnMoreEnterpriseURL
[] =
573 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
576 const char kRemoveNonCWSExtensionURL
[] =
577 "https://support.google.com/chrome/answer/2811969?"
578 "p=ui_remove_non_cws_extensions&rd=1";
580 const char kNotificationsHelpURL
[] =
581 "https://support.google.com/chrome/?p=ui_notifications";
583 const char kNotificationWelcomeLearnMoreURL
[] =
584 "https://support.google.com/chrome/?p=ib_google_now_welcome";
586 // Add hosts here to be included in chrome://chrome-urls (about:about).
587 // These hosts will also be suggested by BuiltinProvider.
588 const char* const kChromeHostURLs
[] = {
590 kChromeUIChromeURLsHost
,
591 kChromeUIComponentsHost
,
592 kChromeUICrashesHost
,
593 kChromeUICreditsHost
,
594 kChromeUIDeviceLogHost
,
597 kChromeUIHistoryHost
,
598 kChromeUIInvalidationsHost
,
599 kChromeUILocalStateHost
,
601 kChromeUIMemoryInternalsHost
,
602 kChromeUINetInternalsHost
,
604 kChromeUIOmniboxHost
,
605 kChromeUIPasswordManagerInternalsHost
,
606 kChromeUIPredictorsHost
,
607 kChromeUIProfilerHost
,
608 kChromeUISignInInternalsHost
,
609 kChromeUISuggestionsHost
,
610 kChromeUISyncInternalsHost
,
612 kChromeUIThumbnailListHost
,
613 kChromeUITranslateInternalsHost
,
614 kChromeUIUserActionsHost
,
615 kChromeUIVersionHost
,
616 kChromeUIVoiceSearchHost
,
617 content::kChromeUIAccessibilityHost
,
618 content::kChromeUIAppCacheInternalsHost
,
619 content::kChromeUIBlobInternalsHost
,
620 content::kChromeUIGpuHost
,
621 content::kChromeUIHistogramHost
,
622 content::kChromeUIIndexedDBInternalsHost
,
623 content::kChromeUIMediaInternalsHost
,
624 content::kChromeUINetworkViewCacheHost
,
625 content::kChromeUIServiceWorkerInternalsHost
,
626 content::kChromeUITracingHost
,
627 content::kChromeUIWebRTCInternalsHost
,
628 #if !defined(OS_ANDROID)
629 kChromeUIAppLauncherPageHost
,
630 kChromeUIBookmarksHost
,
631 kChromeUIDownloadsHost
,
633 kChromeUIGCMInternalsHost
,
635 kChromeUIInspectHost
,
636 kChromeUIPluginsHost
,
637 kChromeUIQuotaInternalsHost
,
638 kChromeUISettingsHost
,
639 kChromeUISystemInfoHost
,
642 #if defined(OS_ANDROID) || defined(OS_IOS)
643 kChromeUINetExportHost
,
645 kChromeUICopresenceHost
,
647 #if defined(OS_CHROMEOS)
648 kChromeUICertificateManagerHost
,
649 kChromeUIChooseMobileNetworkHost
,
650 kChromeUICryptohomeHost
,
651 kChromeUIDiscardsHost
,
652 kChromeUIDriveInternalsHost
,
653 kChromeUIFirstRunHost
,
654 kChromeUIImageBurnerHost
,
655 kChromeUIKeyboardOverlayHost
,
657 kChromeUINetworkHost
,
660 kChromeUIOSCreditsHost
,
662 kChromeUIProxySettingsHost
,
664 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
665 kChromeUILinuxProxyConfigHost
,
666 kChromeUISandboxHost
,
669 kChromeUIConflictsHost
,
671 #if !defined(DISABLE_NACL)
674 #if defined(ENABLE_CONFIGURATION_POLICY)
677 #if defined(ENABLE_EXTENSIONS)
678 kChromeUIExtensionsHost
,
680 #if defined(ENABLE_PRINT_PREVIEW)
683 #if defined(ENABLE_SERVICE_DISCOVERY)
684 kChromeUIDevicesHost
,
686 #if defined(ENABLE_WEBRTC)
687 kChromeUIWebRtcLogsHost
,
690 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
692 const char* const kChromeDebugURLs
[] = {
693 content::kChromeUICrashURL
,
694 content::kChromeUIDumpURL
,
695 content::kChromeUIKillURL
,
696 content::kChromeUIHangURL
,
697 content::kChromeUIShorthangURL
,
698 content::kChromeUIGpuCleanURL
,
699 content::kChromeUIGpuCrashURL
,
700 content::kChromeUIGpuHangURL
,
701 content::kChromeUIPpapiFlashCrashURL
,
702 content::kChromeUIPpapiFlashHangURL
,
703 chrome::kChromeUIQuitURL
,
704 chrome::kChromeUIRestartURL
706 const int kNumberOfChromeDebugURLs
=
707 static_cast<int>(arraysize(kChromeDebugURLs
));
709 const char kChromeNativeScheme
[] = "chrome-native";
711 const char kChromeSearchScheme
[] = "chrome-search";
712 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
713 const char kChromeSearchLocalNtpUrl
[] =
714 "chrome-search://local-ntp/local-ntp.html";
715 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
717 const char kChromeSearchMostVisitedHost
[] = "most-visited";
718 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
720 // Google SafeSearch query parameters.
721 const char kSafeSearchSafeParameter
[] = "safe=active";
722 const char kSafeSearchSsuiParameter
[] = "ssui=on";
724 const char kMediaAccessLearnMoreUrl
[] =
725 "https://support.google.com/chrome/?p=ib_access_cam_mic";
727 const char kLanguageSettingsLearnMoreUrl
[] =
728 #if defined(OS_CHROMEOS)
729 "https://support.google.com/chromebook/answer/1059490";
731 "https://support.google.com/chrome/topic/1678461";
734 #if defined(OS_MACOSX)
735 const char kMac32BitDeprecationURL
[] =
736 #if !defined(ARCH_CPU_64_BITS)
737 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
743 const char kEasyUnlockLearnMoreUrl
[] =
744 "https://support.google.com/chromebook/?p=smart_lock";
746 } // namespace chrome