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 kChromeUIComponentsURL
[] = "chrome://components/";
31 const char kChromeUIConflictsURL
[] = "chrome://conflicts/";
32 const char kChromeUIConstrainedHTMLTestURL
[] = "chrome://constrained-test/";
33 const char kChromeUICrashesURL
[] = "chrome://crashes/";
34 const char kChromeUICreditsURL
[] = "chrome://credits/";
35 const char kChromeUIDevicesURL
[] = "chrome://devices/";
36 const char kChromeUIDevToolsURL
[] =
37 "chrome-devtools://devtools/bundled/inspector.html";
38 const char kChromeUIDomainReliabilityInternalsURL
[] =
39 "chrome://domain-reliability-internals/";
40 const char kChromeUIDownloadsURL
[] = "chrome://downloads/";
41 const char kChromeUIExtensionIconURL
[] = "chrome://extension-icon/";
42 const char kChromeUIExtensionsFrameURL
[] = "chrome://extensions-frame/";
43 const char kChromeUIExtensionsURL
[] = "chrome://extensions/";
44 const char kChromeUIFallbackIconURL
[] = "chrome://fallback-icon/";
45 const char kChromeUIFaviconURL
[] = "chrome://favicon/";
46 const char kChromeUIFlagsURL
[] = "chrome://flags/";
47 const char kChromeUIFlashURL
[] = "chrome://flash/";
48 const char kChromeUIGCMInternalsURL
[] = "chrome://gcm-internals/";
49 const char kChromeUIHelpFrameURL
[] = "chrome://help-frame/";
50 const char kChromeUIHistoryURL
[] = "chrome://history/";
51 const char kChromeUIHistoryFrameURL
[] = "chrome://history-frame/";
52 const char kChromeUIIdentityInternalsURL
[] = "chrome://identity-internals/";
53 const char kChromeUIInspectURL
[] = "chrome://inspect/";
54 const char kChromeUIInstantURL
[] = "chrome://instant/";
55 const char kChromeUIInterstitialURL
[] = "chrome://interstitials/";
56 const char kChromeUIInvalidationsURL
[] = "chrome://invalidations/";
57 const char kChromeUILargeIconURL
[] = "chrome://large-icon/";
58 const char kChromeUIMdSettingsURL
[] = "chrome://md-settings/";
59 const char kChromeUIMemoryRedirectURL
[] = "chrome://memory-redirect/";
60 const char kChromeUIMemoryURL
[] = "chrome://memory/";
61 const char kChromeUINaClURL
[] = "chrome://nacl/";
62 const char kChromeUINetInternalsURL
[] = "chrome://net-internals/";
63 const char kChromeUINewProfileURL
[] = "chrome://newprofile/";
64 const char kChromeUINewTabURL
[] = "chrome://newtab/";
65 const char kChromeUIOmniboxURL
[] = "chrome://omnibox/";
66 const char kChromeUIPluginsURL
[] = "chrome://plugins/";
67 const char kChromeUIPolicyURL
[] = "chrome://policy/";
68 const char kChromeUIProfileSigninConfirmationURL
[] =
69 "chrome://profile-signin-confirmation/";
70 const char kChromeUIUserManagerURL
[] = "chrome://user-manager/";
71 const char kChromeUIPrintURL
[] = "chrome://print/";
72 const char kChromeUIQuitURL
[] = "chrome://quit/";
73 const char kChromeUIRestartURL
[] = "chrome://restart/";
74 const char kChromeUISettingsURL
[] = "chrome://settings/";
75 const char kChromeUIContentSettingsURL
[] = "chrome://settings/content";
76 const char kChromeUISettingsFrameURL
[] = "chrome://settings-frame/";
77 const char kChromeUISuggestionsURL
[] = "chrome://suggestions/";
78 const char kChromeUISupervisedUserPassphrasePageURL
[] =
79 "chrome://managed-user-passphrase/";
80 const char kChromeUITermsURL
[] = "chrome://terms/";
81 const char kChromeUIThemeURL
[] = "chrome://theme/";
82 const char kChromeUIThumbnailURL
[] = "chrome://thumb/";
83 const char kChromeUIThumbnailListURL
[] = "chrome://thumbnails/";
84 const char kChromeUIUberURL
[] = "chrome://chrome/";
85 const char kChromeUIUberFrameURL
[] = "chrome://uber-frame/";
86 const char kChromeUIUserActionsURL
[] = "chrome://user-actions/";
87 const char kChromeUIVersionURL
[] = "chrome://version/";
88 const char kChromeUIVoiceSearchURL
[] = "chrome://voicesearch/";
90 #if defined(OS_ANDROID)
91 const char kChromeUIContextualSearchPromoURL
[] =
92 "chrome://contextual-search-promo";
93 const char kChromeUINativeScheme
[] = "chrome-native";
94 const char kChromeUINativeNewTabURL
[] = "chrome-native://newtab/";
95 const char kChromeUINativeBookmarksURL
[] = "chrome-native://bookmarks/";
96 const char kChromeUINativeRecentTabsURL
[] = "chrome-native://recent-tabs/";
99 #if defined(OS_CHROMEOS)
100 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
101 const char kChromeUICertificateManagerDialogURL
[] =
102 "chrome://certificate-manager/";
103 const char kChromeUIChooseMobileNetworkURL
[] =
104 "chrome://choose-mobile-network/";
105 const char kChromeUIDeviceEmulatorURL
[] = "chrome://device-emulator/";
106 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
107 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
108 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
109 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
110 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
111 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
112 const char kChromeUIOobeURL
[] = "chrome://oobe/";
113 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
114 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
115 const char kChromeUISalsaURL
[] = "chrome://salsa/";
116 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
117 const char kChromeUISetTimeURL
[] = "chrome://set-time/";
118 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
119 const char kChromeUISlowURL
[] = "chrome://slow/";
120 const char kChromeUISystemInfoURL
[] = "chrome://system/";
121 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
122 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
123 #endif // defined(OS_CHROMEOS)
126 const char kChromeUIMetroFlowURL
[] = "chrome://make-metro/";
129 #if defined(USE_AURA)
130 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
131 const char kChromeUIGestureConfigHost
[] = "gesture";
134 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
135 const char kChromeUITabModalConfirmDialogURL
[] =
136 "chrome://tab-modal-confirm-dialog/";
139 #if !defined(OS_ANDROID) && !defined(OS_IOS)
140 const char kChromeUICopresenceURL
[] = "chrome://copresence/";
143 #if defined(ENABLE_WEBRTC)
144 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
147 #if defined(ENABLE_MEDIA_ROUTER)
148 const char kChromeUIMediaRouterURL
[] = "chrome://media-router/";
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 kChromeUIConflictsHost
[] = "conflicts";
165 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
166 const char kChromeUICrashesHost
[] = "crashes";
167 const char kChromeUICrashHost
[] = "crash";
168 const char kChromeUICreditsHost
[] = "credits";
169 const char kChromeUIDefaultHost
[] = "version";
170 const char kChromeUIDeviceLogHost
[] = "device-log";
171 const char kChromeUIDevicesHost
[] = "devices";
172 const char kChromeUIDevToolsHost
[] = "devtools";
173 const char kChromeUIDevToolsBundledPath
[] = "bundled";
174 const char kChromeUIDevToolsRemotePath
[] = "remote";
175 const char kChromeUIDNSHost
[] = "dns";
176 const char kChromeUIDomainReliabilityInternalsHost
[] =
177 "domain-reliability-internals";
178 const char kChromeUIDownloadsHost
[] = "downloads";
179 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
180 const char kChromeUIExtensionIconHost
[] = "extension-icon";
181 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
182 const char kChromeUIExtensionsHost
[] = "extensions";
183 const char kChromeUIFallbackIconHost
[] = "fallback-icon";
184 const char kChromeUIFaviconHost
[] = "favicon";
185 const char kChromeUIFlagsHost
[] = "flags";
186 const char kChromeUIFlashHost
[] = "flash";
187 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
188 const char kChromeUIHangHost
[] = "hang";
189 const char kChromeUIHelpFrameHost
[] = "help-frame";
190 const char kChromeUIHelpHost
[] = "help";
191 const char kChromeUIHistoryHost
[] = "history";
192 const char kChromeUIHistoryFrameHost
[] = "history-frame";
193 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
194 const char kChromeUIInspectHost
[] = "inspect";
195 const char kChromeUIInstantHost
[] = "instant";
196 const char kChromeUIInterstitialHost
[] = "interstitials";
197 const char kChromeUIInvalidationsHost
[] = "invalidations";
198 const char kChromeUIKillHost
[] = "kill";
199 const char kChromeUILargeIconHost
[] = "large-icon";
200 const char kChromeUILocalStateHost
[] = "local-state";
201 const char kChromeUIMdSettingsHost
[] = "md-settings";
202 const char kChromeUIMemoryHost
[] = "memory";
203 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
204 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
205 const char kChromeUINaClHost
[] = "nacl";
206 const char kChromeUINetExportHost
[] = "net-export";
207 const char kChromeUINetInternalsHost
[] = "net-internals";
208 const char kChromeUINewTabHost
[] = "newtab";
209 const char kChromeUIOmniboxHost
[] = "omnibox";
210 const char kChromeUIPasswordManagerInternalsHost
[] =
211 "password-manager-internals";
212 const char kChromeUIPluginsHost
[] = "plugins";
213 const char kChromeUIComponentsHost
[] = "components";
214 const char kChromeUIPolicyHost
[] = "policy";
215 const char kChromeUIProfileSigninConfirmationHost
[] =
216 "profile-signin-confirmation";
217 const char kChromeUIUserManagerHost
[] = "user-manager";
218 const char kChromeUIPredictorsHost
[] = "predictors";
219 const char kChromeUIProfilerHost
[] = "profiler";
220 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
221 const char kChromeUIQuitHost
[] = "quit";
222 const char kChromeUIRestartHost
[] = "restart";
223 const char kChromeUISettingsHost
[] = "settings";
224 const char kChromeUISettingsFrameHost
[] = "settings-frame";
225 const char kChromeUIShorthangHost
[] = "shorthang";
226 const char kChromeUISignInInternalsHost
[] = "signin-internals";
227 const char kChromeUISuggestionsHost
[] = "suggestions";
228 const char kChromeUISupervisedUserPassphrasePageHost
[] =
229 "managed-user-passphrase";
230 const char kChromeUISyncHost
[] = "sync";
231 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
232 const char kChromeUISyncInternalsHost
[] = "sync-internals";
233 const char kChromeUISyncResourcesHost
[] = "syncresources";
234 const char kChromeUISystemInfoHost
[] = "system";
235 const char kChromeUITermsHost
[] = "terms";
236 const char kChromeUIThemeHost
[] = "theme";
237 const char kChromeUIThumbnailHost
[] = "thumb";
238 const char kChromeUIThumbnailHost2
[] = "thumb2";
239 const char kChromeUIThumbnailListHost
[] = "thumbnails";
240 const char kChromeUITouchIconHost
[] = "touch-icon";
241 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
242 const char kChromeUIUberFrameHost
[] = "uber-frame";
243 const char kChromeUIUberHost
[] = "chrome";
244 const char kChromeUIUserActionsHost
[] = "user-actions";
245 const char kChromeUIVersionHost
[] = "version";
246 const char kChromeUIVoiceSearchHost
[] = "voicesearch";
247 const char kChromeUIWebRTCDeviceProviderHost
[] =
248 "webrtc-device-provider";
249 const char kChromeUIWorkersHost
[] = "workers";
251 const char kChromeUIThemePath
[] = "theme";
253 #if defined(ENABLE_PRINT_PREVIEW)
254 const char kChromeUIPrintHost
[] = "print";
255 #endif // ENABLE_PRINT_PREVIEW
257 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
258 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
259 const char kChromeUISandboxHost
[] = "sandbox";
262 #if defined(OS_ANDROID)
263 const char kChromeUIContextualSearchPromoHost
[] = "contextual-search-promo";
266 #if defined(OS_CHROMEOS)
267 const char kChromeUIActivationMessageHost
[] = "activationmessage";
268 const char kChromeUIAppLaunchHost
[] = "app-launch";
269 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
270 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
271 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
272 const char kChromeUICryptohomeHost
[] = "cryptohome";
273 const char kChromeUIDeviceEmulatorHost
[] = "device-emulator";
274 const char kChromeUIDiscardsHost
[] = "discards";
275 const char kChromeUIFirstRunHost
[] = "first-run";
276 const char kChromeUIImageBurnerHost
[] = "imageburner";
277 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
278 const char kChromeUILoginContainerHost
[] = "login-container";
279 const char kChromeUILoginHost
[] = "login";
280 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
281 const char kChromeUINfcDebugHost
[] = "nfc-debug";
282 const char kChromeUINetworkHost
[] = "network";
283 const char kChromeUIOobeHost
[] = "oobe";
284 const char kChromeUIOSCreditsHost
[] = "os-credits";
285 const char kChromeUIPowerHost
[] = "power";
286 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
287 const char kChromeUIRotateHost
[] = "rotate";
288 const char kChromeUISalsaHost
[] = "salsa";
289 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
290 const char kChromeUISetTimeHost
[] = "set-time";
291 const char kChromeUISimUnlockHost
[] = "sim-unlock";
292 const char kChromeUISlowHost
[] = "slow";
293 const char kChromeUISlowTraceHost
[] = "slow_trace";
294 const char kChromeUIUserImageHost
[] = "userimage";
296 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
297 const char kOemEulaURLPath
[] = "oem";
298 const char kOnlineEulaURLPath
[] =
299 "https://www.google.com/intl/%s/chrome/eula_text.html";
301 const char kChromeOSCreditsPath
[] =
302 "/opt/google/chrome/resources/about_os_credits.html";
304 const char kChromeOSAssetHost
[] = "chromeos-asset";
305 const char kChromeOSAssetPath
[] = "/usr/share/chromeos-assets/";
306 #endif // defined(OS_CHROMEOS)
309 const char kChromeUIMetroFlowHost
[] = "make-metro";
312 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
313 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
316 #if !defined(OS_ANDROID) && !defined(OS_IOS)
317 const char kChromeUICopresenceHost
[] = "copresence";
320 #if defined(ENABLE_WEBRTC)
321 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
324 #if defined(ENABLE_MEDIA_ROUTER)
325 const char kChromeUIMediaRouterHost
[] = "media-router";
329 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
330 // listed by the built-in AutocompleteProvider.
331 const char kAutofillSubPage
[] = "autofill";
332 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
333 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
334 const char kContentSettingsSubPage
[] = "content";
335 const char kCreateProfileSubPage
[] = "createProfile";
336 const char kExtensionsSubPage
[] = "extensions";
337 const char kHandlerSettingsSubPage
[] = "handlers";
338 const char kImportDataSubPage
[] = "importData";
339 const char kLanguageOptionsSubPage
[] = "languages";
340 const char kManageProfileSubPage
[] = "manageProfile";
341 const char kPasswordManagerSubPage
[] = "passwords";
342 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
343 const char kSearchEnginesSubPage
[] = "searchEngines";
344 const char kSearchSubPage
[] = "search";
345 const char kSearchUsersSubPage
[] = "search#Users";
346 const char kSyncSetupSubPage
[] = "syncSetup";
347 #if defined(OS_CHROMEOS)
348 const char kInternetOptionsSubPage
[] = "internet";
349 const char kChangeProfilePictureSubPage
[] = "changePicture";
352 // Extension sub pages.
353 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
355 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
356 const char kExtensionResourceInvalidRequestURL
[] =
357 "chrome-extension-resource://invalid/";
359 const char kSyncGoogleDashboardURL
[] =
360 "https://www.google.com/settings/chrome/sync/";
362 const char kPasswordManagerLearnMoreURL
[] =
363 #if defined(OS_CHROMEOS)
364 "https://support.google.com/chromebook/?p=settings_password";
366 "https://support.google.com/chrome/?p=settings_password";
369 const char kUpgradeHelpCenterBaseURL
[] =
370 "http://support.google.com/installer/?product={8A69D345-D564-463c-AFF1-A69D9E530F96}&error=";
372 const char kPasswordManagerAccountDashboardURL
[] =
373 "https://passwords.google.com/settings/passwords";
375 const char kExtensionControlledSettingLearnMoreURL
[] =
376 "https://support.google.com/chrome/?p=ui_settings_api_extension";
378 const char kChromeHelpViaKeyboardURL
[] =
379 #if defined(OS_CHROMEOS)
380 #if defined(OFFICIAL_BUILD)
381 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
383 "https://support.google.com/chromebook/?p=help&ctx=keyboard";
384 #endif // defined(OFFICIAL_BUILD
386 "https://support.google.com/chrome/?p=help&ctx=keyboard";
387 #endif // defined(OS_CHROMEOS)
389 const char kChromeHelpViaMenuURL
[] =
390 #if defined(OS_CHROMEOS)
391 #if defined(OFFICIAL_BUILD)
392 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
394 "https://support.google.com/chromebook/?p=help&ctx=menu";
395 #endif // defined(OFFICIAL_BUILD
397 "https://support.google.com/chrome/?p=help&ctx=menu";
398 #endif // defined(OS_CHROMEOS)
400 const char kChromeHelpViaWebUIURL
[] =
401 #if defined(OS_CHROMEOS)
402 #if defined(OFFICIAL_BUILD)
403 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
405 "https://support.google.com/chromebook/?p=help&ctx=settings";
406 #endif // defined(OFFICIAL_BUILD
408 "https://support.google.com/chrome/?p=help&ctx=settings";
409 #endif // defined(OS_CHROMEOS)
411 #if defined(OS_CHROMEOS)
412 const char kChromeAccessibilityHelpURL
[] =
413 "https://support.google.com/chromebook/?p=accessibility_menu";
414 const char kChromeAccessibilitySettingsURL
[] =
415 "/chromevox/background/options.html";
416 #endif // defined(OS_CHROMEOS)
418 #if defined(ENABLE_ONE_CLICK_SIGNIN)
419 const char kChromeSyncLearnMoreURL
[] =
420 "https://support.google.com/chrome/answer/165139";
422 const char kChromeSyncMergeTroubleshootingURL
[] =
423 "https://support.google.com/chrome/answer/1181420#merge";
424 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
426 #if defined(OS_MACOSX)
427 const char kChromeEnterpriseSignInLearnMoreURL
[] =
428 "https://support.google.com/chromebook/answer/1331549";
431 const char kResetProfileSettingsLearnMoreURL
[] =
432 "https://support.google.com/chrome/?p=ui_reset_settings";
434 const char kAutomaticSettingsResetLearnMoreURL
[] =
435 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
437 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
439 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
441 const char kSettingsSearchHelpURL
[] =
442 #if defined(OS_CHROMEOS)
443 "https://support.google.com/chromebook/?p=settings_search_help";
445 "https://support.google.com/chrome/?p=settings_search_help";
448 const char kOmniboxLearnMoreURL
[] =
449 #if defined(OS_CHROMEOS)
450 "https://support.google.com/chromebook/?p=settings_omnibox";
452 "https://support.google.com/chrome/?p=settings_omnibox";
455 const char kPageInfoHelpCenterURL
[] =
456 #if defined(OS_CHROMEOS)
457 "https://support.google.com/chromebook/?p=ui_security_indicator";
459 "https://support.google.com/chrome/?p=ui_security_indicator";
462 const char kCrashReasonURL
[] =
463 #if defined(OS_CHROMEOS)
464 "https://support.google.com/chromebook/?p=e_awsnap";
466 "https://support.google.com/chrome/?p=e_awsnap";
469 const char kKillReasonURL
[] =
470 #if defined(OS_CHROMEOS)
471 "https://support.google.com/chromebook/?p=e_deadjim";
473 "https://support.google.com/chrome/?p=e_deadjim";
476 const char kPrivacyLearnMoreURL
[] =
477 #if defined(OS_CHROMEOS)
478 "https://support.google.com/chromebook/?p=settings_privacy";
480 "https://support.google.com/chrome/?p=settings_privacy";
483 const char kDoNotTrackLearnMoreURL
[] =
484 #if defined(OS_CHROMEOS)
485 "https://support.google.com/chromebook/?p=settings_do_not_track";
487 "https://support.google.com/chrome/?p=settings_do_not_track";
490 #if defined(OS_CHROMEOS)
491 const char kAttestationForContentProtectionLearnMoreURL
[] =
492 "https://support.google.com/chromebook/?p=verified_access";
495 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
496 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
498 #if defined(OS_CHROMEOS)
499 "https://support.google.com/chromebook/?p=enhanced_playback";
500 #elif defined(OS_ANDROID)
501 // Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
502 "https://support.google.com/chrome/?p=mobile_protected_content";
505 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
507 const char kLearnMoreReportingURL
[] =
508 "https://support.google.com/chrome/?p=ui_usagestat";
510 #if defined(ENABLE_PLUGIN_INSTALLATION)
511 const char kOutdatedPluginLearnMoreURL
[] =
512 "https://support.google.com/chrome/?p=ib_outdated_plugin";
515 const char kBlockedPluginLearnMoreURL
[] =
516 "https://support.google.com/chrome/?p=ib_blocked_plugin";
518 const char kHotwordLearnMoreURL
[] =
519 "https://support.google.com/chrome/?p=ui_hotword_search";
521 const char kManageAudioHistoryURL
[] =
522 "https://history.google.com/history/audio";
524 const char kLearnMoreRegisterProtocolHandlerURL
[] =
525 "https://support.google.com/chrome/?p=ib_protocol_handler";
527 const char kSyncLearnMoreURL
[] =
528 "https://support.google.com/chrome/?p=settings_sign_in";
530 const char kDownloadScanningLearnMoreURL
[] =
531 "https://support.google.com/chrome/?p=ib_download_blocked";
533 const char kDownloadInterruptedLearnMoreURL
[] =
534 "https://support.google.com/chrome/?p=ui_download_errors";
536 const char kSyncEverythingLearnMoreURL
[] =
537 "https://support.google.com/chrome/?p=settings_sync_all";
539 const char kCloudPrintLearnMoreURL
[] =
540 #if defined(OS_CHROMEOS)
541 "https://support.google.com/chromebook/?p=settings_cloud_print";
543 "https://support.google.com/chrome/?p=settings_cloud_print";
546 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
547 "https://www.google.com/cloudprint/learn/";
549 const char kAppLauncherHelpURL
[] =
550 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
552 const char kSyncEncryptionHelpURL
[] =
553 #if defined(OS_CHROMEOS)
554 "https://support.google.com/chromebook/?p=settings_encryption";
556 "https://support.google.com/chrome/?p=settings_encryption";
559 const char kSyncErrorsHelpURL
[] =
560 "https://support.google.com/chrome/?p=settings_sync_error";
562 #if defined(OS_CHROMEOS)
563 const char kNaturalScrollHelpURL
[] =
564 "https://support.google.com/chromebook/?p=simple_scrolling";
567 #if defined(OS_CHROMEOS)
568 const char kLearnMoreEnterpriseURL
[] =
569 "https://support.google.com/chromebook/answer/2535613";
572 const char kRemoveNonCWSExtensionURL
[] =
573 "https://support.google.com/chrome/?p=ui_remove_non_cws_extensions";
576 const char kNotificationsHelpURL
[] =
577 "https://support.google.com/chrome/?p=ui_notifications";
580 const char kNotificationWelcomeLearnMoreURL
[] =
581 "https://support.google.com/chrome/?p=ib_google_now_welcome";
583 // Add hosts here to be included in chrome://chrome-urls (about:about).
584 // These hosts will also be suggested by BuiltinProvider.
585 const char* const kChromeHostURLs
[] = {
587 kChromeUIChromeURLsHost
,
588 kChromeUIComponentsHost
,
589 kChromeUICrashesHost
,
590 kChromeUICreditsHost
,
591 kChromeUIDeviceLogHost
,
594 kChromeUIHistoryHost
,
595 kChromeUIInvalidationsHost
,
596 kChromeUILocalStateHost
,
598 kChromeUIMemoryInternalsHost
,
599 kChromeUINetInternalsHost
,
601 kChromeUIOmniboxHost
,
602 kChromeUIPasswordManagerInternalsHost
,
603 kChromeUIPredictorsHost
,
604 kChromeUIProfilerHost
,
605 kChromeUISignInInternalsHost
,
606 kChromeUISuggestionsHost
,
607 kChromeUISyncInternalsHost
,
609 kChromeUIThumbnailListHost
,
610 kChromeUITranslateInternalsHost
,
611 kChromeUIUserActionsHost
,
612 kChromeUIVersionHost
,
613 kChromeUIVoiceSearchHost
,
614 content::kChromeUIAccessibilityHost
,
615 content::kChromeUIAppCacheInternalsHost
,
616 content::kChromeUIBlobInternalsHost
,
617 content::kChromeUIGpuHost
,
618 content::kChromeUIHistogramHost
,
619 content::kChromeUIIndexedDBInternalsHost
,
620 content::kChromeUIMediaInternalsHost
,
621 content::kChromeUINetworkViewCacheHost
,
622 content::kChromeUIServiceWorkerInternalsHost
,
623 content::kChromeUITracingHost
,
624 content::kChromeUIWebRTCInternalsHost
,
625 #if !defined(OS_ANDROID)
626 kChromeUIAppLauncherPageHost
,
627 kChromeUIBookmarksHost
,
628 kChromeUIDownloadsHost
,
630 kChromeUIGCMInternalsHost
,
632 kChromeUIInspectHost
,
633 kChromeUIPluginsHost
,
634 kChromeUIQuotaInternalsHost
,
635 kChromeUISettingsHost
,
636 kChromeUISystemInfoHost
,
639 #if defined(OS_ANDROID) || defined(OS_IOS)
640 kChromeUINetExportHost
,
642 kChromeUICopresenceHost
,
644 #if defined(OS_CHROMEOS)
645 kChromeUICertificateManagerHost
,
646 kChromeUIChooseMobileNetworkHost
,
647 kChromeUICryptohomeHost
,
648 kChromeUIDiscardsHost
,
649 kChromeUIDriveInternalsHost
,
650 kChromeUIFirstRunHost
,
651 kChromeUIImageBurnerHost
,
652 kChromeUIKeyboardOverlayHost
,
654 kChromeUINetworkHost
,
656 kChromeUIOSCreditsHost
,
658 kChromeUIProxySettingsHost
,
660 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
661 kChromeUILinuxProxyConfigHost
,
662 kChromeUISandboxHost
,
665 kChromeUIConflictsHost
,
667 #if !defined(DISABLE_NACL)
670 #if defined(ENABLE_CONFIGURATION_POLICY)
673 #if defined(ENABLE_EXTENSIONS)
674 kChromeUIExtensionsHost
,
676 #if defined(ENABLE_PRINT_PREVIEW)
679 #if defined(ENABLE_SERVICE_DISCOVERY)
680 kChromeUIDevicesHost
,
682 #if defined(ENABLE_WEBRTC)
683 kChromeUIWebRtcLogsHost
,
686 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
688 const char* const kChromeDebugURLs
[] = {
689 content::kChromeUICrashURL
,
690 content::kChromeUIDumpURL
,
691 content::kChromeUIKillURL
,
692 content::kChromeUIHangURL
,
693 content::kChromeUIShorthangURL
,
694 content::kChromeUIGpuCleanURL
,
695 content::kChromeUIGpuCrashURL
,
696 content::kChromeUIGpuHangURL
,
697 content::kChromeUIPpapiFlashCrashURL
,
698 content::kChromeUIPpapiFlashHangURL
,
699 chrome::kChromeUIQuitURL
,
700 chrome::kChromeUIRestartURL
702 const int kNumberOfChromeDebugURLs
=
703 static_cast<int>(arraysize(kChromeDebugURLs
));
705 const char kChromeNativeScheme
[] = "chrome-native";
707 const char kChromeSearchScheme
[] = "chrome-search";
708 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
709 const char kChromeSearchLocalNtpUrl
[] =
710 "chrome-search://local-ntp/local-ntp.html";
711 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
713 const char kChromeSearchMostVisitedHost
[] = "most-visited";
714 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
716 // Google SafeSearch query parameters.
717 const char kSafeSearchSafeParameter
[] = "safe=active";
718 const char kSafeSearchSsuiParameter
[] = "ssui=on";
720 const char kMediaAccessLearnMoreUrl
[] =
721 "https://support.google.com/chrome/?p=ib_access_cam_mic";
723 const char kLanguageSettingsLearnMoreUrl
[] =
724 #if defined(OS_CHROMEOS)
725 "https://support.google.com/chromebook/answer/1059490";
727 "https://support.google.com/chrome/topic/1678461";
730 #if defined(OS_MACOSX)
731 const char kMac32BitDeprecationURL
[] =
732 #if !defined(ARCH_CPU_64_BITS)
733 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
739 const char kEasyUnlockLearnMoreUrl
[] =
740 "https://support.google.com/chromebook/?p=smart_lock";
742 } // namespace chrome