Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / chrome / common / url_constants.cc
blob6ac57c5634a0ea799d60831c3b024c27c0cf6d58
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"
7 #include <algorithm>
9 #include "base/basictypes.h"
10 #include "content/public/common/url_constants.h"
11 #include "url/url_util.h"
13 namespace chrome {
15 #if defined(OS_CHROMEOS)
16 const char kCrosScheme[] = "cros";
17 const char kDriveScheme[] = "drive";
18 #endif
20 // Add Chrome UI URLs as necessary, in alphabetical order.
21 // Be sure to add the corresponding kChromeUI*Host constant below.
22 // This is a WebUI page that lists other WebUI pages.
23 const char kChromeUIAboutURL[] = "chrome://about/";
24 const char kChromeUIAppsURL[] = "chrome://apps/";
25 const char kChromeUIAppListStartPageURL[] = "chrome://app-list/";
26 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
27 const char kChromeUICertificateViewerURL[] = "chrome://view-cert/";
28 const char kChromeUICertificateViewerDialogURL[] = "chrome://view-cert-dialog/";
29 const char kChromeUIChromeSigninURL[] = "chrome://chrome-signin/";
30 const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/";
31 const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/";
32 const char kChromeUIComponentsURL[] = "chrome://components/";
33 const char kChromeUIConflictsURL[] = "chrome://conflicts/";
34 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/";
35 const char kChromeUIContextualSearchPromoURL[] =
36 "chrome://contextual-search-promo";
37 const char kChromeUICrashesURL[] = "chrome://crashes/";
38 const char kChromeUICreditsURL[] = "chrome://credits/";
39 const char kChromeUIDevicesURL[] = "chrome://devices/";
40 const char kChromeUIDevToolsURL[] =
41 "chrome-devtools://devtools/bundled/devtools.html";
42 const char kChromeUIDomainReliabilityInternalsURL[] =
43 "chrome://domain-reliability-internals/";
44 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
45 const char kChromeUIEditSearchEngineDialogURL[] = "chrome://editsearchengine/";
46 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/";
47 const char kChromeUIExtensionInfoURL[] = "chrome://extension-info/";
48 const char kChromeUIExtensionsFrameURL[] = "chrome://extensions-frame/";
49 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
50 const char kChromeUIFaviconURL[] = "chrome://favicon/";
51 const char kChromeUIFeedbackURL[] = "chrome://feedback/";
52 const char kChromeUIFlagsURL[] = "chrome://flags/";
53 const char kChromeUIFlashURL[] = "chrome://flash/";
54 const char kChromeUIGCMInternalsURL[] = "chrome://gcm-internals/";
55 const char kChromeUIHelpFrameURL[] = "chrome://help-frame/";
56 const char kChromeUIHistoryURL[] = "chrome://history/";
57 const char kChromeUIHistoryFrameURL[] = "chrome://history-frame/";
58 const char kChromeUIIdentityInternalsURL[] = "chrome://identity-internals/";
59 const char kChromeUIInspectURL[] = "chrome://inspect/";
60 const char kChromeUIInstantURL[] = "chrome://instant/";
61 const char kChromeUIInterstitialURL[] = "chrome://interstitials/";
62 const char kChromeUIInvalidationsURL[] = "chrome://invalidations/";
63 const char kChromeUIIPCURL[] = "chrome://ipc/";
64 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/";
65 const char kChromeUIMemoryURL[] = "chrome://memory/";
66 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/";
67 const char kChromeUINaClURL[] = "chrome://nacl/";
68 const char kChromeUINetInternalsURL[] = "chrome://net-internals/";
69 const char kChromeUINewProfile[] = "chrome://newprofile/";
70 const char kChromeUINewTabURL[] = "chrome://newtab/";
71 const char kChromeUIOmniboxURL[] = "chrome://omnibox/";
72 const char kChromeUIPerformanceMonitorURL[] = "chrome://performance/";
73 const char kChromeUIPluginsURL[] = "chrome://plugins/";
74 const char kChromeUIPolicyURL[] = "chrome://policy/";
75 const char kChromeUIProfileSigninConfirmationURL[] =
76 "chrome://profile-signin-confirmation/";
77 const char kChromeUIUserManagerURL[] = "chrome://user-manager/";
78 const char kChromeUIPrintURL[] = "chrome://print/";
79 const char kChromeUIQuitURL[] = "chrome://quit/";
80 const char kChromeUIRestartURL[] = "chrome://restart/";
81 const char kChromeUISettingsURL[] = "chrome://settings/";
82 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/";
83 const char kChromeUISSLClientCertificateSelectorURL[] = "chrome://select-cert/";
84 const char kChromeUISuggestions[] = "chrome://suggestions/";
85 const char kChromeUISuggestionsInternalsURL[] =
86 "chrome://suggestions-internals/";
87 const char kChromeUISupervisedUserPassphrasePageURL[] =
88 "chrome://managed-user-passphrase/";
89 const char kChromeUITermsURL[] = "chrome://terms/";
90 const char kChromeUIThemeURL[] = "chrome://theme/";
91 const char kChromeUIThumbnailURL[] = "chrome://thumb/";
92 const char kChromeUIThumbnailListURL[] = "chrome://thumbnails/";
93 const char kChromeUIUberURL[] = "chrome://chrome/";
94 const char kChromeUIUberFrameURL[] = "chrome://uber-frame/";
95 const char kChromeUIUserActionsURL[] = "chrome://user-actions/";
96 const char kChromeUIVersionURL[] = "chrome://version/";
97 const char kChromeUIVoiceSearchURL[] = "chrome://voicesearch/";
99 #if defined(OS_ANDROID)
100 const char kChromeUINativeNewTabURL[] = "chrome-native://newtab/";
101 const char kChromeUINativeBookmarksURL[] = "chrome-native://bookmarks/";
102 const char kChromeUINativeRecentTabsURL[] = "chrome-native://recent-tabs/";
103 const char kChromeUIWelcomeURL[] = "chrome://welcome/";
104 #endif
106 #if defined(OS_CHROMEOS)
107 const char kChromeUIActivationMessage[] = "chrome://activationmessage/";
108 const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/";
109 const char kChromeUICertificateManagerDialogURL[] =
110 "chrome://certificate-manager/";
111 const char kChromeUIChargerReplacementURL[] = "chrome://charger-replacement/";
112 const char kChromeUIChooseMobileNetworkURL[] =
113 "chrome://choose-mobile-network/";
114 const char kChromeUIDiscardsURL[] = "chrome://discards/";
115 const char kChromeUIFirstRunURL[] = "chrome://first-run/";
116 const char kChromeUIIdleLogoutDialogURL[] = "chrome://idle-logout/";
117 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
118 const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/";
119 const char kChromeUILockScreenURL[] = "chrome://lock/";
120 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
121 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
122 const char kChromeUINfcDebugURL[] = "chrome://nfc-debug/";
123 const char kChromeUIOobeURL[] = "chrome://oobe/";
124 const char kChromeUIOSCreditsURL[] = "chrome://os-credits/";
125 const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/";
126 const char kChromeUIScreenlockIconURL[] = "chrome://screenlock-icon/";
127 const char kChromeUISetTimeURL[] = "chrome://set-time/";
128 const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/";
129 const char kChromeUISlideshowURL[] = "chrome://slideshow/";
130 const char kChromeUISlowURL[] = "chrome://slow/";
131 const char kChromeUISystemInfoURL[] = "chrome://system/";
132 const char kChromeUITermsOemURL[] = "chrome://terms/oem";
133 const char kChromeUIUserImageURL[] = "chrome://userimage/";
134 #endif
136 #if defined(USE_AURA)
137 const char kChromeUIGestureConfigURL[] = "chrome://gesture/";
138 const char kChromeUIGestureConfigHost[] = "gesture";
139 const char kChromeUISalsaURL[] = "chrome://salsa/";
140 const char kChromeUISalsaHost[] = "salsa";
141 #endif
143 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
144 const char kChromeUITabModalConfirmDialogURL[] =
145 "chrome://tab-modal-confirm-dialog/";
146 #endif
148 #if defined(ENABLE_WEBRTC)
149 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/";
150 #endif
152 // Add Chrome UI hosts here, in alphabetical order.
153 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
154 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
155 const char kChromeUIAboutHost[] = "about";
156 const char kChromeUIBlankHost[] = "blank";
157 const char kChromeUIAppLauncherPageHost[] = "apps";
158 const char kChromeUIAppListStartPageHost[] = "app-list";
159 const char kChromeUIBookmarksHost[] = "bookmarks";
160 const char kChromeUICacheHost[] = "cache";
161 const char kChromeUICertificateViewerHost[] = "view-cert";
162 const char kChromeUICertificateViewerDialogHost[] = "view-cert-dialog";
163 const char kChromeUIChromeSigninHost[] = "chrome-signin";
164 const char kChromeUIChromeURLsHost[] = "chrome-urls";
165 const char kChromeUICloudPrintResourcesHost[] = "cloudprintresources";
166 const char kChromeUICloudPrintSetupHost[] = "cloudprintsetup";
167 const char kChromeUIConflictsHost[] = "conflicts";
168 const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test";
169 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo";
170 const char kChromeUICrashesHost[] = "crashes";
171 const char kChromeUICrashHost[] = "crash";
172 const char kChromeUICreditsHost[] = "credits";
173 const char kChromeUIDefaultHost[] = "version";
174 const char kChromeUIDevicesHost[] = "devices";
175 const char kChromeUIDevToolsHost[] = "devtools";
176 const char kChromeUIDevToolsBundledPath[] = "bundled";
177 const char kChromeUIDevToolsRemotePath[] = "remote";
178 const char kChromeUIDNSHost[] = "dns";
179 const char kChromeUIDomainReliabilityInternalsHost[] =
180 "domain-reliability-internals";
181 const char kChromeUIDownloadsHost[] = "downloads";
182 const char kChromeUIDriveInternalsHost[] = "drive-internals";
183 const char kChromeUIEditSearchEngineDialogHost[] = "editsearchengine";
184 const char kChromeUIExtensionIconHost[] = "extension-icon";
185 const char kChromeUIExtensionInfoHost[] = "extension-info";
186 const char kChromeUIExtensionsFrameHost[] = "extensions-frame";
187 const char kChromeUIExtensionsHost[] = "extensions";
188 const char kChromeUIFaviconHost[] = "favicon";
189 const char kChromeUIFeedbackHost[] = "feedback";
190 const char kChromeUIFlagsHost[] = "flags";
191 const char kChromeUIFlashHost[] = "flash";
192 const char kChromeUIGCMInternalsHost[] = "gcm-internals";
193 const char kChromeUIHangHost[] = "hang";
194 const char kChromeUIHelpFrameHost[] = "help-frame";
195 const char kChromeUIHelpHost[] = "help";
196 const char kChromeUIHistoryHost[] = "history";
197 const char kChromeUIHistoryFrameHost[] = "history-frame";
198 const char kChromeUIIdentityInternalsHost[] = "identity-internals";
199 const char kChromeUIInspectHost[] = "inspect";
200 const char kChromeUIInstantHost[] = "instant";
201 const char kChromeUIInterstitialHost[] = "interstitials";
202 const char kChromeUIInvalidationsHost[] = "invalidations";
203 const char kChromeUIIPCHost[] = "ipc";
204 const char kChromeUIKillHost[] = "kill";
205 const char kChromeUIMemoryHost[] = "memory";
206 const char kChromeUIMemoryInternalsHost[] = "memory-internals";
207 const char kChromeUIMemoryRedirectHost[] = "memory-redirect";
208 const char kChromeUIMetroFlowHost[] = "make-metro";
209 const char kChromeUINaClHost[] = "nacl";
210 const char kChromeUINetExportHost[] = "net-export";
211 const char kChromeUINetInternalsHost[] = "net-internals";
212 const char kChromeUINewTabHost[] = "newtab";
213 const char kChromeUIOmniboxHost[] = "omnibox";
214 const char kChromeUIPasswordManagerInternalsHost[] =
215 "password-manager-internals";
216 const char kChromeUIPerformanceMonitorHost[] = "performance";
217 const char kChromeUIPluginsHost[] = "plugins";
218 const char kChromeUIComponentsHost[] = "components";
219 const char kChromeUIPolicyHost[] = "policy";
220 const char kChromeUIProfileSigninConfirmationHost[] =
221 "profile-signin-confirmation";
222 const char kChromeUIUserManagerHost[] = "user-manager";
223 const char kChromeUIPredictorsHost[] = "predictors";
224 const char kChromeUIPrintHost[] = "print";
225 const char kChromeUIProfilerHost[] = "profiler";
226 const char kChromeUIQuotaInternalsHost[] = "quota-internals";
227 const char kChromeUIQuitHost[] = "quit";
228 const char kChromeUIRestartHost[] = "restart";
229 const char kChromeUISettingsHost[] = "settings";
230 const char kChromeUISettingsFrameHost[] = "settings-frame";
231 const char kChromeUIShorthangHost[] = "shorthang";
232 const char kChromeUISignInInternalsHost[] = "signin-internals";
233 const char kChromeUISSLClientCertificateSelectorHost[] = "select-cert";
234 const char kChromeUIStatsHost[] = "stats";
235 const char kChromeUISuggestionsHost[] = "suggestions";
236 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals";
237 const char kChromeUISupervisedUserPassphrasePageHost[] =
238 "managed-user-passphrase";
239 const char kChromeUISyncHost[] = "sync";
240 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals";
241 const char kChromeUISyncInternalsHost[] = "sync-internals";
242 const char kChromeUISyncResourcesHost[] = "syncresources";
243 const char kChromeUISystemInfoHost[] = "system";
244 const char kChromeUITaskManagerHost[] = "tasks";
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 kChromeUIWorkersHost[] = "workers";
259 const char kChromeUIScreenshotPath[] = "screenshots";
260 const char kChromeUIThemePath[] = "theme";
262 #if defined(OS_ANDROID)
263 const char kChromeUIWelcomeHost[] = "welcome";
264 #endif
266 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
267 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config";
268 const char kChromeUISandboxHost[] = "sandbox";
269 #endif
271 #if defined(OS_CHROMEOS)
272 const char kChromeUIActivationMessageHost[] = "activationmessage";
273 const char kChromeUIAppLaunchHost[] = "app-launch";
274 const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing";
275 const char kChromeUICertificateManagerHost[] = "certificate-manager";
276 const char kChromeUIChargerReplacementHost[] = "charger-replacement";
277 const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network";
278 const char kChromeUICryptohomeHost[] = "cryptohome";
279 const char kChromeUIDiscardsHost[] = "discards";
280 const char kChromeUIFirstRunHost[] = "first-run";
281 const char kChromeUIIdleLogoutDialogHost[] = "idle-logout";
282 const char kChromeUIImageBurnerHost[] = "imageburner";
283 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay";
284 const char kChromeUILockScreenHost[] = "lock";
285 const char kChromeUILoginContainerHost[] = "login-container";
286 const char kChromeUILoginHost[] = "login";
287 const char kChromeUIMediaplayerHost[] = "mediaplayer";
288 const char kChromeUIMobileSetupHost[] = "mobilesetup";
289 const char kChromeUINfcDebugHost[] = "nfc-debug";
290 const char kChromeUINetworkHost[] = "network";
291 const char kChromeUIOobeHost[] = "oobe";
292 const char kChromeUIOSCreditsHost[] = "os-credits";
293 const char kChromeUIPowerHost[] = "power";
294 const char kChromeUIProvidedFileSystemsHost[] = "provided-file-systems";
295 const char kChromeUIProxySettingsHost[] = "proxy-settings";
296 const char kChromeUIRotateHost[] = "rotate";
297 const char kChromeUIScreenlockIconHost[] = "screenlock-icon";
298 const char kChromeUISetTimeHost[] = "set-time";
299 const char kChromeUISimUnlockHost[] = "sim-unlock";
300 const char kChromeUISlideshowHost[] = "slideshow";
301 const char kChromeUISlowHost[] = "slow";
302 const char kChromeUISlowTraceHost[] = "slow_trace";
303 const char kChromeUIUserImageHost[] = "userimage";
305 const char kChromeUIMenu[] = "menu";
306 const char kChromeUINetworkMenu[] = "network-menu";
307 const char kChromeUIWrenchMenu[] = "wrench-menu";
309 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
310 const char kOemEulaURLPath[] = "oem";
311 const char kOnlineEulaURLPath[] =
312 "https://www.google.com/intl/%s/chrome/eula_text.html";
313 #endif
315 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
316 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
317 #endif
319 #if defined(ENABLE_WEBRTC)
320 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs";
321 #endif
323 // Option sub pages.
324 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
325 // listed by the built-in AutocompleteProvider.
326 const char kAutofillSubPage[] = "autofill";
327 const char kClearBrowserDataSubPage[] = "clearBrowserData";
328 const char kContentSettingsExceptionsSubPage[] = "contentExceptions";
329 const char kContentSettingsSubPage[] = "content";
330 const char kCreateProfileSubPage[] = "createProfile";
331 const char kExtensionsSubPage[] = "extensions";
332 const char kHandlerSettingsSubPage[] = "handlers";
333 const char kImportDataSubPage[] = "importData";
334 const char kLanguageOptionsSubPage[] = "languages";
335 const char kManageProfileSubPage[] = "manageProfile";
336 const char kPasswordManagerSubPage[] = "passwords";
337 const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
338 const char kSearchEnginesSubPage[] = "searchEngines";
339 const char kSearchSubPage[] = "search";
340 const char kSearchUsersSubPage[] = "search#Users";
341 const char kSupervisedUserSettingsSubPage[] = "managedUser";
342 const char kSyncSetupSubPage[] = "syncSetup";
343 #if defined(OS_CHROMEOS)
344 const char kInternetOptionsSubPage[] = "internet";
345 const char kBluetoothAddDeviceSubPage[] = "bluetooth";
346 const char kChangeProfilePictureSubPage[] = "changePicture";
347 #endif
349 // Extension sub pages.
350 const char kExtensionConfigureCommandsSubPage[] = "configureCommands";
352 const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
353 const char kExtensionResourceInvalidRequestURL[] =
354 "chrome-extension-resource://invalid/";
356 const char kSyncGoogleDashboardURL[] =
357 "https://www.google.com/settings/chrome/sync/";
359 const char kAutoPasswordGenerationLearnMoreURL[] =
360 "https://support.google.com/chrome/?p=ui_generate_password";
362 const char kPasswordManagerLearnMoreURL[] =
363 #if defined(OS_CHROMEOS)
364 "https://support.google.com/chromeos/?p=settings_password";
365 #else
366 "https://support.google.com/chrome/?p=settings_password";
367 #endif
369 const char kPasswordManagerAccountDashboardURL[] =
370 "https://passwords.google.com/settings/passwords";
372 const char kExtensionControlledSettingLearnMoreURL[] =
373 "https://support.google.com/chrome/?p=ui_settings_api_extension";
375 const char kChromeHelpViaKeyboardURL[] =
376 #if defined(OS_CHROMEOS)
377 #if defined(OFFICIAL_BUILD)
378 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
379 #else
380 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
381 #endif // defined(OFFICIAL_BUILD
382 #else
383 "https://support.google.com/chrome/?p=help&ctx=keyboard";
384 #endif // defined(OS_CHROMEOS)
386 const char kChromeHelpViaMenuURL[] =
387 #if defined(OS_CHROMEOS)
388 #if defined(OFFICIAL_BUILD)
389 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
390 #else
391 "https://support.google.com/chromeos/?p=help&ctx=menu";
392 #endif // defined(OFFICIAL_BUILD
393 #else
394 "https://support.google.com/chrome/?p=help&ctx=menu";
395 #endif // defined(OS_CHROMEOS)
397 const char kChromeHelpViaWebUIURL[] =
398 #if defined(OS_CHROMEOS)
399 #if defined(OFFICIAL_BUILD)
400 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
401 #else
402 "https://support.google.com/chromeos/?p=help&ctx=settings";
403 #endif // defined(OFFICIAL_BUILD
404 #else
405 "https://support.google.com/chrome/?p=help&ctx=settings";
406 #endif // defined(OS_CHROMEOS)
408 #if defined(OS_CHROMEOS)
409 const char kChromeAccessibilityHelpURL[] =
410 "https://support.google.com/chromeos/?p=accessibility_menu";
411 const char kChromeAccessibilitySettingsURL[] =
412 "/chromevox/background/options.html";
413 #endif // defined(OS_CHROMEOS)
415 #if defined(ENABLE_ONE_CLICK_SIGNIN)
416 const char kChromeSyncLearnMoreURL[] =
417 "http://support.google.com/chrome/bin/answer.py?answer=165139";
419 const char kChromeSyncMergeTroubleshootingURL[] =
420 "https://support.google.com/chrome/answer/1181420#merge";
421 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
423 const char kChromeEnterpriseSignInLearnMoreURL[] =
424 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
426 const char kResetProfileSettingsLearnMoreURL[] =
427 "https://support.google.com/chrome/?p=ui_reset_settings";
429 const char kAutomaticSettingsResetLearnMoreURL[] =
430 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
432 const char kSupervisedUserManagementURL[] = "https://www.chrome.com/manage";
434 const char kSupervisedUserManagementDisplayURL[] = "www.chrome.com/manage";
436 const char kSettingsSearchHelpURL[] =
437 #if defined(OS_CHROMEOS)
438 "https://support.google.com/chromeos/?p=settings_search_help";
439 #else
440 "https://support.google.com/chrome/?p=settings_search_help";
441 #endif
443 const char kOmniboxLearnMoreURL[] =
444 #if defined(OS_CHROMEOS)
445 "https://support.google.com/chromeos/?p=settings_omnibox";
446 #else
447 "https://support.google.com/chrome/?p=settings_omnibox";
448 #endif
450 const char kPageInfoHelpCenterURL[] =
451 #if defined(OS_CHROMEOS)
452 "https://support.google.com/chromeos/?p=ui_security_indicator";
453 #else
454 "https://support.google.com/chrome/?p=ui_security_indicator";
455 #endif
457 const char kCrashReasonURL[] =
458 #if defined(OS_CHROMEOS)
459 "https://support.google.com/chromeos/?p=e_awsnap";
460 #else
461 "https://support.google.com/chrome/?p=e_awsnap";
462 #endif
464 const char kKillReasonURL[] =
465 #if defined(OS_CHROMEOS)
466 "https://support.google.com/chromeos/?p=e_deadjim";
467 #else
468 "https://support.google.com/chrome/?p=e_deadjim";
469 #endif
471 const char kPrivacyLearnMoreURL[] =
472 #if defined(OS_CHROMEOS)
473 "https://support.google.com/chromeos/?p=settings_privacy";
474 #else
475 "https://support.google.com/chrome/?p=settings_privacy";
476 #endif
478 const char kDoNotTrackLearnMoreURL[] =
479 #if defined(OS_CHROMEOS)
480 "https://support.google.com/chromeos/?p=settings_do_not_track";
481 #else
482 "https://support.google.com/chrome/?p=settings_do_not_track";
483 #endif
485 #if defined(OS_CHROMEOS)
486 const char kAttestationForContentProtectionLearnMoreURL[] =
487 "https://support.google.com/chromebook/?p=verified_access";
489 const char kEnhancedPlaybackNotificationLearnMoreURL[] =
490 "https://support.google.com/chromebook/?p=enhanced_playback";
491 #endif
493 const char kChromiumProjectURL[] = "http://www.chromium.org/";
495 const char kLearnMoreReportingURL[] =
496 "https://support.google.com/chrome/?p=ui_usagestat";
498 const char kOutdatedPluginLearnMoreURL[] =
499 "https://support.google.com/chrome/?p=ib_outdated_plugin";
501 const char kBlockedPluginLearnMoreURL[] =
502 "https://support.google.com/chrome/?p=ib_blocked_plugin";
504 const char kHotwordLearnMoreURL[] =
505 "https://support.google.com/chrome/?p=ui_hotword_search";
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";
525 #else
526 "https://support.google.com/chrome/?p=settings_cloud_print";
527 #endif
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";
538 #else
539 "https://support.google.com/chrome/?p=settings_encryption";
540 #endif
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";
548 #endif
550 #if defined(OS_CHROMEOS)
551 const char kLearnMoreEnterpriseURL[] =
552 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
553 #endif
555 const char kRemoveNonCWSExtensionURL[] =
556 "https://support.google.com/chrome/answer/2811969?"
557 "p=ui_remove_non_cws_extensions&rd=1";
559 const char kCorruptExtensionURL[] =
560 "https://support.google.com/chrome/?p=settings_corrupt_extension";
562 const char kNotificationsHelpURL[] =
563 "https://support.google.com/chrome/?p=ui_notifications";
565 const char kNotificationWelcomeLearnMoreURL[] =
566 "https://support.google.com/chrome/?p=ib_google_now_welcome";
568 // Add hosts here to be included in chrome://chrome-urls (about:about).
569 // These hosts will also be suggested by BuiltinProvider.
570 const char* const kChromeHostURLs[] = {
571 kChromeUICacheHost,
572 kChromeUIChromeURLsHost,
573 kChromeUIComponentsHost,
574 kChromeUICrashesHost,
575 kChromeUICreditsHost,
576 kChromeUIDNSHost,
577 kChromeUIFlagsHost,
578 kChromeUIHistoryHost,
579 kChromeUIInvalidationsHost,
580 kChromeUIMemoryHost,
581 kChromeUIMemoryInternalsHost,
582 kChromeUINetInternalsHost,
583 kChromeUINewTabHost,
584 kChromeUIOmniboxHost,
585 kChromeUIPasswordManagerInternalsHost,
586 kChromeUIPredictorsHost,
587 kChromeUIProfilerHost,
588 kChromeUISignInInternalsHost,
589 kChromeUIStatsHost,
590 kChromeUISuggestionsHost,
591 kChromeUISyncInternalsHost,
592 kChromeUITermsHost,
593 kChromeUIThumbnailListHost,
594 kChromeUITranslateInternalsHost,
595 kChromeUIUserActionsHost,
596 kChromeUIVersionHost,
597 kChromeUIVoiceSearchHost,
598 content::kChromeUIAccessibilityHost,
599 content::kChromeUIAppCacheInternalsHost,
600 content::kChromeUIBlobInternalsHost,
601 content::kChromeUIGpuHost,
602 content::kChromeUIHistogramHost,
603 content::kChromeUIIndexedDBInternalsHost,
604 content::kChromeUIMediaInternalsHost,
605 content::kChromeUINetworkViewCacheHost,
606 content::kChromeUIServiceWorkerInternalsHost,
607 content::kChromeUITracingHost,
608 content::kChromeUIWebRTCInternalsHost,
609 #if defined(OS_ANDROID)
610 kChromeUIWelcomeHost,
611 #else
612 kChromeUIAppLauncherPageHost,
613 kChromeUIBookmarksHost,
614 kChromeUIDownloadsHost,
615 kChromeUIFlashHost,
616 kChromeUIGCMInternalsHost,
617 kChromeUIHelpHost,
618 kChromeUIInspectHost,
619 kChromeUIIPCHost,
620 kChromeUIPluginsHost,
621 kChromeUIQuotaInternalsHost,
622 kChromeUISettingsHost,
623 kChromeUISystemInfoHost,
624 kChromeUIUberHost,
625 #endif
626 #if defined(OS_ANDROID) || defined(OS_IOS)
627 kChromeUINetExportHost,
628 #endif
629 #if defined(OS_CHROMEOS)
630 kChromeUICertificateManagerHost,
631 kChromeUIChooseMobileNetworkHost,
632 kChromeUICryptohomeHost,
633 kChromeUIDiscardsHost,
634 kChromeUIDriveInternalsHost,
635 kChromeUIFirstRunHost,
636 kChromeUIImageBurnerHost,
637 kChromeUIKeyboardOverlayHost,
638 kChromeUILoginHost,
639 kChromeUINetworkHost,
640 kChromeUIOobeHost,
641 kChromeUIOSCreditsHost,
642 kChromeUIPowerHost,
643 kChromeUIProxySettingsHost,
644 kChromeUITaskManagerHost,
645 #endif
646 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
647 kChromeUILinuxProxyConfigHost,
648 kChromeUISandboxHost,
649 #endif
650 #if defined(OS_WIN)
651 kChromeUIConflictsHost,
652 #endif
653 #if !defined(DISABLE_NACL)
654 kChromeUINaClHost,
655 #endif
656 #if defined(ENABLE_CONFIGURATION_POLICY)
657 kChromeUIPolicyHost,
658 #endif
659 #if defined(ENABLE_EXTENSIONS)
660 kChromeUIExtensionsHost,
661 #endif
662 #if defined(ENABLE_FULL_PRINTING)
663 kChromeUIPrintHost,
664 #endif
665 #if defined(ENABLE_SERVICE_DISCOVERY)
666 kChromeUIDevicesHost,
667 #endif
668 #if defined(ENABLE_WEBRTC)
669 kChromeUIWebRtcLogsHost,
670 #endif
672 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);
674 const char* const kChromeDebugURLs[] = {
675 content::kChromeUICrashURL,
676 content::kChromeUIDumpURL,
677 content::kChromeUIKillURL,
678 content::kChromeUIHangURL,
679 content::kChromeUIShorthangURL,
680 content::kChromeUIGpuCleanURL,
681 content::kChromeUIGpuCrashURL,
682 content::kChromeUIGpuHangURL,
683 content::kChromeUIPpapiFlashCrashURL,
684 content::kChromeUIPpapiFlashHangURL,
685 chrome::kChromeUIQuitURL,
686 chrome::kChromeUIRestartURL
688 const int kNumberOfChromeDebugURLs =
689 static_cast<int>(arraysize(kChromeDebugURLs));
691 const char kChromeNativeScheme[] = "chrome-native";
693 const char kChromeSearchScheme[] = "chrome-search";
694 const char kChromeSearchLocalNtpHost[] = "local-ntp";
695 const char kChromeSearchLocalNtpUrl[] =
696 "chrome-search://local-ntp/local-ntp.html";
697 const char kChromeSearchRemoteNtpHost[] = "remote-ntp";
699 const char kChromeSearchMostVisitedHost[] = "most-visited";
700 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/";
702 // Google SafeSearch query parameters.
703 const char kSafeSearchSafeParameter[] = "safe=active";
704 const char kSafeSearchSsuiParameter[] = "ssui=on";
706 const char kMediaAccessLearnMoreUrl[] =
707 "https://support.google.com/chrome/?p=ib_access_cam_mic";
709 const char kLanguageSettingsLearnMoreUrl[] =
710 #if defined(OS_CHROMEOS)
711 "https://support.google.com/chromebook/answer/1059490";
712 #else
713 "https://support.google.com/chrome/topic/1678461";
714 #endif
716 #if defined(OS_MACOSX)
717 const char kMac32BitDeprecationURL[] =
718 #if !defined(ARCH_CPU_64_BITS)
719 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
720 #else
722 #endif
723 #endif
725 const char kEasyUnlockLearnMoreUrl[] =
726 "https://support.google.com/chromebook/answer/6070209";
728 } // namespace chrome