Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / common / url_constants.cc
blob9a2619424eaf09db922688a848a0af31cd6c0225
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 const char kAboutComponentsURL[] = "about:components";
21 const char kAboutPluginsURL[] = "about:plugins";
22 const char kAboutVersionURL[] = "about:version";
24 // Add Chrome UI URLs as necessary, in alphabetical order.
25 // Be sure to add the corresponding kChromeUI*Host constant below.
26 // This is a WebUI page that lists other WebUI pages.
27 const char kChromeUIAboutURL[] = "chrome://about/";
28 const char kChromeUIAppsURL[] = "chrome://apps/";
29 const char kChromeUIAppListStartPageURL[] = "chrome://app-list/";
30 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/";
31 const char kChromeUICertificateViewerURL[] = "chrome://view-cert/";
32 const char kChromeUIChromeSigninURL[] = "chrome://chrome-signin/";
33 const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/";
34 const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/";
35 const char kChromeUIComponentsURL[] = "chrome://components/";
36 const char kChromeUIConflictsURL[] = "chrome://conflicts/";
37 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/";
38 const char kChromeUICrashesURL[] = "chrome://crashes/";
39 const char kChromeUICreditsURL[] = "chrome://credits/";
40 const char kChromeUIDevicesURL[] = "chrome://devices/";
41 const char kChromeUIDevToolsURL[] =
42 "chrome-devtools://devtools/bundled/devtools.html";
43 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
44 const char kChromeUIEditSearchEngineDialogURL[] = "chrome://editsearchengine/";
45 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/";
46 const char kChromeUIExtensionInfoURL[] = "chrome://extension-info/";
47 const char kChromeUIExtensionsFrameURL[] = "chrome://extensions-frame/";
48 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
49 const char kChromeUIFaviconURL[] = "chrome://favicon/";
50 const char kChromeUIFeedbackURL[] = "chrome://feedback/";
51 const char kChromeUIFlagsURL[] = "chrome://flags/";
52 const char kChromeUIFlashURL[] = "chrome://flash/";
53 const char 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 kChromeUIIPCURL[] = "chrome://ipc/";
60 const char kChromeUIManagedUserPassphrasePageURL[] =
61 "chrome://managed-user-passphrase/";
62 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/";
63 const char kChromeUIMemoryURL[] = "chrome://memory/";
64 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/";
65 const char kChromeUINaClURL[] = "chrome://nacl/";
66 const char kChromeUINetInternalsURL[] = "chrome://net-internals/";
67 const char kChromeUINewProfile[] = "chrome://newprofile/";
68 const char kChromeUINewTabURL[] = "chrome://newtab/";
69 const char kChromeUIOmniboxURL[] = "chrome://omnibox/";
70 const char kChromeUIPerformanceMonitorURL[] = "chrome://performance/";
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 kChromeUISettingsFrameURL[] = "chrome://settings-frame/";
81 const char kChromeUISuggestionsInternalsURL[] =
82 "chrome://suggestions-internals/";
83 const char kChromeUISSLClientCertificateSelectorURL[] = "chrome://select-cert/";
84 const char kChromeUITaskManagerURL[] = "chrome://tasks/";
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/";
94 #if defined(OS_ANDROID)
95 const char kChromeUINativeNewTabURL[] = "chrome-native://newtab/";
96 const char kChromeUIWelcomeURL[] = "chrome://welcome/";
97 #endif
99 #if defined(OS_CHROMEOS)
100 const char kChromeUIActivationMessage[] = "chrome://activationmessage/";
101 const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/";
102 const char kChromeUIChargerReplacementURL[] = "chrome://charger-replacement/";
103 const char kChromeUIChooseMobileNetworkURL[] =
104 "chrome://choose-mobile-network/";
105 const char kChromeUIDiscardsURL[] = "chrome://discards/";
106 const char kChromeUIFirstRunURL[] = "chrome://first-run/";
107 const char kChromeUIIdleLogoutDialogURL[] = "chrome://idle-logout/";
108 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
109 const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/";
110 const char kChromeUILockScreenURL[] = "chrome://lock/";
111 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
112 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
113 const char kChromeUIOobeURL[] = "chrome://oobe/";
114 const char kChromeUIOSCreditsURL[] = "chrome://os-credits/";
115 const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/";
116 const char kChromeUIScreenlockIconURL[] = "chrome://screenlock-icon/";
117 const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/";
118 const char kChromeUISlideshowURL[] = "chrome://slideshow/";
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
125 #if defined(USE_AURA)
126 const char kChromeUIGestureConfigURL[] = "chrome://gesture/";
127 const char kChromeUIGestureConfigHost[] = "gesture";
128 const char kChromeUISalsaURL[] = "chrome://salsa/";
129 const char kChromeUISalsaHost[] = "salsa";
130 #endif
132 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
133 const char kChromeUITabModalConfirmDialogURL[] =
134 "chrome://tab-modal-confirm-dialog/";
135 #endif
137 #if defined(ENABLE_WEBRTC)
138 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/";
139 #endif
141 // Add Chrome UI hosts here, in alphabetical order.
142 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
143 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
144 const char kChromeUIAboutHost[] = "about";
145 const char kChromeUIBlankHost[] = "blank";
146 const char kChromeUIAppLauncherPageHost[] = "apps";
147 const char kChromeUIAppListStartPageHost[] = "app-list";
148 const char kChromeUIBookmarksHost[] = "bookmarks";
149 const char kChromeUICacheHost[] = "cache";
150 const char kChromeUICertificateViewerHost[] = "view-cert";
151 const char kChromeUIChromeSigninHost[] = "chrome-signin";
152 const char kChromeUIChromeURLsHost[] = "chrome-urls";
153 const char kChromeUICloudPrintResourcesHost[] = "cloudprintresources";
154 const char kChromeUICloudPrintSetupHost[] = "cloudprintsetup";
155 const char kChromeUIConflictsHost[] = "conflicts";
156 const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test";
157 const char kChromeUICrashesHost[] = "crashes";
158 const char kChromeUICrashHost[] = "crash";
159 const char kChromeUICreditsHost[] = "credits";
160 const char kChromeUIDefaultHost[] = "version";
161 const char kChromeUIDevicesHost[] = "devices";
162 const char kChromeUIDevToolsHost[] = "devtools";
163 const char kChromeUIDevToolsBundledPath[] = "bundled";
164 const char kChromeUIDevToolsRemotePath[] = "remote";
165 const char kChromeUIDNSHost[] = "dns";
166 const char kChromeUIDownloadsHost[] = "downloads";
167 const char kChromeUIDriveInternalsHost[] = "drive-internals";
168 const char kChromeUIEditSearchEngineDialogHost[] = "editsearchengine";
169 const char kChromeUIEnhancedBookmarksHost[] = "enhanced-bookmarks";
170 const char kChromeUIExtensionIconHost[] = "extension-icon";
171 const char kChromeUIExtensionInfoHost[] = "extension-info";
172 const char kChromeUIExtensionsFrameHost[] = "extensions-frame";
173 const char kChromeUIExtensionsHost[] = "extensions";
174 const char kChromeUIFaviconHost[] = "favicon";
175 const char kChromeUIFeedbackHost[] = "feedback";
176 const char kChromeUIFlagsHost[] = "flags";
177 const char kChromeUIFlashHost[] = "flash";
178 const char kChromeUIHangHost[] = "hang";
179 const char kChromeUIHelpFrameHost[] = "help-frame";
180 const char kChromeUIHelpHost[] = "help";
181 const char kChromeUIHistoryHost[] = "history";
182 const char kChromeUIHistoryFrameHost[] = "history-frame";
183 const char kChromeUIIdentityInternalsHost[] = "identity-internals";
184 const char kChromeUIInspectHost[] = "inspect";
185 const char kChromeUIInstantHost[] = "instant";
186 const char kChromeUIIPCHost[] = "ipc";
187 const char kChromeUIKillHost[] = "kill";
188 const char kChromeUIManagedUserPassphrasePageHost[] = "managed-user-passphrase";
189 const char kChromeUIMemoryHost[] = "memory";
190 const char kChromeUIMemoryInternalsHost[] = "memory-internals";
191 const char kChromeUIMemoryRedirectHost[] = "memory-redirect";
192 const char kChromeUIMetroFlowHost[] = "make-metro";
193 const char kChromeUINaClHost[] = "nacl";
194 const char kChromeUINetExportHost[] = "net-export";
195 const char kChromeUINetInternalsHost[] = "net-internals";
196 const char kChromeUINewTabHost[] = "newtab";
197 const char kChromeUIOmniboxHost[] = "omnibox";
198 const char kChromeUIPerformanceMonitorHost[] = "performance";
199 const char kChromeUIPluginsHost[] = "plugins";
200 const char kChromeUIComponentsHost[] = "components";
201 const char kChromeUIPolicyHost[] = "policy";
202 const char kChromeUIProfileSigninConfirmationHost[] =
203 "profile-signin-confirmation";
204 const char kChromeUIUserManagerHost[] = "user-manager";
205 const char kChromeUIPredictorsHost[] = "predictors";
206 const char kChromeUIPrintHost[] = "print";
207 const char kChromeUIProfilerHost[] = "profiler";
208 const char kChromeUIQuotaInternalsHost[] = "quota-internals";
209 const char kChromeUIQuitHost[] = "quit";
210 const char kChromeUIRestartHost[] = "restart";
211 const char kChromeUISettingsHost[] = "settings";
212 const char kChromeUISettingsFrameHost[] = "settings-frame";
213 const char kChromeUIShorthangHost[] = "shorthang";
214 const char kChromeUISignInInternalsHost[] = "signin-internals";
215 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals";
216 const char kChromeUISSLClientCertificateSelectorHost[] = "select-cert";
217 const char kChromeUIStatsHost[] = "stats";
218 const char kChromeUISyncHost[] = "sync";
219 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals";
220 const char kChromeUISyncInternalsHost[] = "sync-internals";
221 const char kChromeUISyncResourcesHost[] = "syncresources";
222 const char kChromeUISystemInfoHost[] = "system";
223 const char kChromeUITaskManagerHost[] = "tasks";
224 const char kChromeUITermsHost[] = "terms";
225 const char kChromeUIThemeHost[] = "theme";
226 const char kChromeUIThumbnailHost[] = "thumb";
227 const char kChromeUIThumbnailHost2[] = "thumb2";
228 const char kChromeUIThumbnailListHost[] = "thumbnails";
229 const char kChromeUITouchIconHost[] = "touch-icon";
230 const char kChromeUITranslateInternalsHost[] = "translate-internals";
231 const char kChromeUIUberFrameHost[] = "uber-frame";
232 const char kChromeUIUberHost[] = "chrome";
233 const char kChromeUIUserActionsHost[] = "user-actions";
234 const char kChromeUIVersionHost[] = "version";
235 const char kChromeUIWorkersHost[] = "workers";
237 const char kChromeUIScreenshotPath[] = "screenshots";
238 const char kChromeUIThemePath[] = "theme";
240 #if defined(OS_ANDROID)
241 const char kChromeUIWelcomeHost[] = "welcome";
242 #endif
244 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
245 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config";
246 const char kChromeUISandboxHost[] = "sandbox";
247 #endif
249 #if defined(OS_CHROMEOS)
250 const char kChromeUIActivationMessageHost[] = "activationmessage";
251 const char kChromeUIAppLaunchHost[] = "app-launch";
252 const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing";
253 const char kChromeUIChargerReplacementHost[] = "charger-replacement";
254 const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network";
255 const char kChromeUICryptohomeHost[] = "cryptohome";
256 const char kChromeUIDiscardsHost[] = "discards";
257 const char kChromeUIFirstRunHost[] = "first-run";
258 const char kChromeUIIdleLogoutDialogHost[] = "idle-logout";
259 const char kChromeUIImageBurnerHost[] = "imageburner";
260 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay";
261 const char kChromeUILockScreenHost[] = "lock";
262 const char kChromeUILoginContainerHost[] = "login-container";
263 const char kChromeUILoginHost[] = "login";
264 const char kChromeUIMediaplayerHost[] = "mediaplayer";
265 const char kChromeUIMobileSetupHost[] = "mobilesetup";
266 const char kChromeUINetworkHost[] = "network";
267 const char kChromeUIOobeHost[] = "oobe";
268 const char kChromeUIOSCreditsHost[] = "os-credits";
269 const char kChromeUIPowerHost[] = "power";
270 const char kChromeUIProxySettingsHost[] = "proxy-settings";
271 const char kChromeUIRotateHost[] = "rotate";
272 const char kChromeUIScreenlockIconHost[] = "screenlock-icon";
273 const char kChromeUISimUnlockHost[] = "sim-unlock";
274 const char kChromeUISlideshowHost[] = "slideshow";
275 const char kChromeUISlowHost[] = "slow";
276 const char kChromeUISlowTraceHost[] = "slow_trace";
277 const char kChromeUIUserImageHost[] = "userimage";
279 const char kChromeUIMenu[] = "menu";
280 const char kChromeUINetworkMenu[] = "network-menu";
281 const char kChromeUIWrenchMenu[] = "wrench-menu";
283 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
284 const char kOemEulaURLPath[] = "oem";
285 const char kOnlineEulaURLPath[] =
286 "https://www.google.com/intl/%s/chrome/eula_text.html";
287 #endif
289 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
290 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
291 #endif
293 #if defined(ENABLE_WEBRTC)
294 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs";
295 #endif
297 // Option sub pages.
298 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
299 // listed by the built-in AutocompleteProvider.
300 const char kAutofillSubPage[] = "autofill";
301 const char kClearBrowserDataSubPage[] = "clearBrowserData";
302 const char kContentSettingsExceptionsSubPage[] = "contentExceptions";
303 const char kContentSettingsSubPage[] = "content";
304 const char kCreateProfileSubPage[] = "createProfile";
305 const char kExtensionsSubPage[] = "extensions";
306 const char kHandlerSettingsSubPage[] = "handlers";
307 const char kImportDataSubPage[] = "importData";
308 const char kLanguageOptionsSubPage[] = "languages";
309 const char kManagedUserSettingsSubPage[] = "managedUser";
310 const char kManageProfileSubPage[] = "manageProfile";
311 const char kPasswordManagerSubPage[] = "passwords";
312 const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
313 const char kSearchEnginesSubPage[] = "searchEngines";
314 const char kSearchSubPage[] = "search";
315 const char kSearchUsersSubPage[] = "search#Users";
316 const char kSyncSetupSubPage[] = "syncSetup";
317 #if defined(OS_CHROMEOS)
318 const char kInternetOptionsSubPage[] = "internet";
319 const char kBluetoothAddDeviceSubPage[] = "bluetooth";
320 const char kChangeProfilePictureSubPage[] = "changePicture";
321 #endif
323 // Extension sub pages.
324 const char kExtensionConfigureCommandsSubPage[] = "configureCommands";
326 const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
327 const char kExtensionResourceInvalidRequestURL[] =
328 "chrome-extension-resource://invalid/";
330 const char kSyncGoogleDashboardURL[] =
331 "https://www.google.com/settings/chrome/sync/";
333 const char kAutoPasswordGenerationLearnMoreURL[] =
334 "https://support.google.com/chrome/?p=ui_generate_password";
337 const char kPasswordManagerLearnMoreURL[] =
338 #if defined(OS_CHROMEOS)
339 "https://support.google.com/chromeos/?p=settings_password";
340 #else
341 "https://support.google.com/chrome/?p=settings_password";
342 #endif
344 const char kChromeHelpViaKeyboardURL[] =
345 #if defined(OS_CHROMEOS)
346 #if defined(OFFICIAL_BUILD)
347 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
348 #else
349 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
350 #endif // defined(OFFICIAL_BUILD
351 #else
352 "https://support.google.com/chrome/?p=help&ctx=keyboard";
353 #endif // defined(OS_CHROMEOS)
355 const char kChromeHelpViaMenuURL[] =
356 #if defined(OS_CHROMEOS)
357 #if defined(OFFICIAL_BUILD)
358 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
359 #else
360 "https://support.google.com/chromeos/?p=help&ctx=menu";
361 #endif // defined(OFFICIAL_BUILD
362 #else
363 "https://support.google.com/chrome/?p=help&ctx=menu";
364 #endif // defined(OS_CHROMEOS)
366 const char kChromeHelpViaWebUIURL[] =
367 #if defined(OS_CHROMEOS)
368 #if defined(OFFICIAL_BUILD)
369 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
370 #else
371 "https://support.google.com/chromeos/?p=help&ctx=settings";
372 #endif // defined(OFFICIAL_BUILD
373 #else
374 "https://support.google.com/chrome/?p=help&ctx=settings";
375 #endif // defined(OS_CHROMEOS)
377 #if defined(OS_CHROMEOS)
378 const char kChromeAccessibilityHelpURL[] =
379 "https://support.google.com/chromeos/?p=accessibility_menu";
380 const char kChromeAccessibilitySettingsURL[] =
381 "/chromevox/background/options.html";
382 #endif // defined(OS_CHROMEOS)
384 #if defined(ENABLE_ONE_CLICK_SIGNIN)
385 const char kChromeSyncLearnMoreURL[] =
386 "http://support.google.com/chrome/bin/answer.py?answer=165139";
388 const char kChromeSyncMergeTroubleshootingURL[] =
389 "https://support.google.com/chrome/answer/1181420#merge";
390 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
392 const char kChromeEnterpriseSignInLearnMoreURL[] =
393 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
395 const char kResetProfileSettingsLearnMoreURL[] =
396 "https://support.google.com/chrome/?p=ui_reset_settings";
398 const char kSupervisedUserManagementURL[] = "https://www.chrome.com/manage";
400 const char kSupervisedUserManagementDisplayURL[] = "www.chrome.com/manage";
402 const char kSettingsSearchHelpURL[] =
403 #if defined(OS_CHROMEOS)
404 "https://support.google.com/chromeos/?p=settings_search_help";
405 #else
406 "https://support.google.com/chrome/?p=settings_search_help";
407 #endif
409 const char kAboutGoogleTranslateURL[] =
410 #if defined(OS_CHROMEOS)
411 "https://support.google.com/chromeos/?p=ib_translation_bar";
412 #else
413 "https://support.google.com/chrome/?p=ib_translation_bar";
414 #endif
416 const char kOmniboxLearnMoreURL[] =
417 #if defined(OS_CHROMEOS)
418 "https://support.google.com/chromeos/?p=settings_omnibox";
419 #else
420 "https://support.google.com/chrome/?p=settings_omnibox";
421 #endif
423 const char kPageInfoHelpCenterURL[] =
424 #if defined(OS_CHROMEOS)
425 "https://support.google.com/chromeos/?p=ui_security_indicator";
426 #else
427 "https://support.google.com/chrome/?p=ui_security_indicator";
428 #endif
430 const char kCrashReasonURL[] =
431 #if defined(OS_CHROMEOS)
432 "https://support.google.com/chromeos/?p=e_awsnap";
433 #else
434 "https://support.google.com/chrome/?p=e_awsnap";
435 #endif
437 const char kKillReasonURL[] =
438 #if defined(OS_CHROMEOS)
439 "https://support.google.com/chromeos/?p=e_deadjim";
440 #else
441 "https://support.google.com/chrome/?p=e_deadjim";
442 #endif
444 const char kPrivacyLearnMoreURL[] =
445 #if defined(OS_CHROMEOS)
446 "https://support.google.com/chromeos/?p=settings_privacy";
447 #else
448 "https://support.google.com/chrome/?p=settings_privacy";
449 #endif
451 const char kDoNotTrackLearnMoreURL[] =
452 #if defined(OS_CHROMEOS)
453 "https://support.google.com/chromeos/?p=settings_do_not_track";
454 #else
455 "https://support.google.com/chrome/?p=settings_do_not_track";
456 #endif
458 #if defined(OS_CHROMEOS)
459 const char kAttestationForContentProtectionLearnMoreURL[] =
460 "https://support.google.com/chromebook/?p=tpm";
461 #endif
463 const char kChromiumProjectURL[] = "http://www.chromium.org/";
465 const char kLearnMoreReportingURL[] =
466 "https://support.google.com/chrome/?p=ui_usagestat";
468 const char kOutdatedPluginLearnMoreURL[] =
469 "https://support.google.com/chrome/?p=ib_outdated_plugin";
471 const char kBlockedPluginLearnMoreURL[] =
472 "https://support.google.com/chrome/?p=ib_blocked_plugin";
474 const char kSpeechInputAboutURL[] =
475 "https://support.google.com/chrome/?p=ui_speech_input";
477 const char kLearnMoreRegisterProtocolHandlerURL[] =
478 "https://support.google.com/chrome/?p=ib_protocol_handler";
480 const char kSyncLearnMoreURL[] =
481 "https://support.google.com/chrome/?p=settings_sign_in";
483 const char kDownloadScanningLearnMoreURL[] =
484 "https://support.google.com/chrome/?p=ib_download_blocked";
486 const char kDownloadInterruptedLearnMoreURL[] =
487 "https://support.google.com/chrome/?p=ui_download_errors";
489 const char kSyncEverythingLearnMoreURL[] =
490 "https://support.google.com/chrome/?p=settings_sync_all";
492 const char kCloudPrintLearnMoreURL[] =
493 #if defined(OS_CHROMEOS)
494 "https://support.google.com/chromeos/?p=settings_cloud_print";
495 #else
496 "https://support.google.com/chrome/?p=settings_cloud_print";
497 #endif
499 const char kCloudPrintNoDestinationsLearnMoreURL[] =
500 "https://www.google.com/cloudprint/learn/";
502 const char kAppLauncherHelpURL[] =
503 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
505 const char kSyncEncryptionHelpURL[] =
506 #if defined(OS_CHROMEOS)
507 "https://support.google.com/chromeos/?p=settings_encryption";
508 #else
509 "https://support.google.com/chrome/?p=settings_encryption";
510 #endif
512 const char kSyncErrorsHelpURL[] =
513 "https://support.google.com/chrome/?p=settings_sync_error";
515 #if defined(OS_CHROMEOS)
516 const char kNaturalScrollHelpURL[] =
517 "https://support.google.com/chromeos/?p=simple_scrolling";
518 #endif
520 #if defined(OS_CHROMEOS)
521 const char kLearnMoreEnterpriseURL[] =
522 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
523 #endif
525 const char kRemoveNonCWSExtensionURL[] =
526 "https://support.google.com/chrome/answer/2811969?"
527 "p=ui_remove_non_cws_extensions&rd=1";
529 const char kNotificationsHelpURL[] =
530 "https://support.google.com/chrome/?p=ui_notifications";
532 const char kNotificationWelcomeLearnMoreURL[] =
533 "https://support.google.com/chrome/?p=ib_google_now_welcome";
535 // Add hosts here to be included in chrome://chrome-urls (about:about).
536 // These hosts will also be suggested by BuiltinProvider.
537 const char* const kChromeHostURLs[] = {
538 kChromeUICacheHost,
539 kChromeUIChromeURLsHost,
540 kChromeUIComponentsHost,
541 kChromeUICrashesHost,
542 kChromeUICreditsHost,
543 #if defined(ENABLE_MDNS)
544 kChromeUIDevicesHost,
545 #endif
546 kChromeUIDNSHost,
547 kChromeUIFlagsHost,
548 kChromeUIHelpHost,
549 kChromeUIHistoryHost,
550 kChromeUIIPCHost,
551 kChromeUIMemoryHost,
552 kChromeUIMemoryInternalsHost,
553 #if defined(OS_ANDROID) || defined(OS_IOS)
554 kChromeUINetExportHost,
555 #endif
556 kChromeUINetInternalsHost,
557 kChromeUINewTabHost,
558 kChromeUIOmniboxHost,
559 kChromeUIPredictorsHost,
560 kChromeUIProfilerHost,
561 kChromeUIQuotaInternalsHost,
562 kChromeUISignInInternalsHost,
563 kChromeUIStatsHost,
564 kChromeUISyncInternalsHost,
565 kChromeUISystemInfoHost,
566 kChromeUITermsHost,
567 kChromeUITranslateInternalsHost,
568 kChromeUIUberHost,
569 kChromeUIUserActionsHost,
570 kChromeUIVersionHost,
571 #if defined(OS_ANDROID)
572 kChromeUIWelcomeHost,
573 #else
574 kChromeUIAppLauncherPageHost,
575 kChromeUIBookmarksHost,
576 kChromeUIDownloadsHost,
577 kChromeUIFlashHost,
578 kChromeUIInspectHost,
579 kChromeUIPluginsHost,
580 kChromeUISettingsHost,
581 #endif
582 #if defined(OS_WIN)
583 kChromeUIConflictsHost,
584 #endif
585 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
586 kChromeUILinuxProxyConfigHost,
587 kChromeUISandboxHost,
588 #endif
589 #if defined(OS_CHROMEOS)
590 kChromeUIChooseMobileNetworkHost,
591 kChromeUICryptohomeHost,
592 kChromeUIDiscardsHost,
593 kChromeUIDriveInternalsHost,
594 kChromeUIFirstRunHost,
595 kChromeUIImageBurnerHost,
596 kChromeUIKeyboardOverlayHost,
597 kChromeUILoginHost,
598 kChromeUINetworkHost,
599 kChromeUIOobeHost,
600 kChromeUIOSCreditsHost,
601 kChromeUIPowerHost,
602 kChromeUIProxySettingsHost,
603 kChromeUITaskManagerHost,
604 #endif
605 #if !defined(DISABLE_NACL)
606 kChromeUINaClHost,
607 #endif
608 #if defined(ENABLE_CONFIGURATION_POLICY)
609 kChromeUIPolicyHost,
610 #endif
611 #if defined(ENABLE_EXTENSIONS)
612 kChromeUIExtensionsHost,
613 #endif
614 #if defined(ENABLE_FULL_PRINTING)
615 kChromeUIPrintHost,
616 #endif
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::kChromeUITracingHost,
626 content::kChromeUIWebRTCInternalsHost,
627 #if defined(ENABLE_WEBRTC)
628 kChromeUIWebRtcLogsHost,
629 #endif
631 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);
633 const char* const kChromeDebugURLs[] = {
634 content::kChromeUICrashURL,
635 content::kChromeUIKillURL,
636 content::kChromeUIHangURL,
637 content::kChromeUIShorthangURL,
638 content::kChromeUIGpuCleanURL,
639 content::kChromeUIGpuCrashURL,
640 content::kChromeUIGpuHangURL,
641 content::kChromeUIPpapiFlashCrashURL,
642 content::kChromeUIPpapiFlashHangURL,
643 chrome::kChromeUIQuitURL,
644 chrome::kChromeUIRestartURL
646 const int kNumberOfChromeDebugURLs =
647 static_cast<int>(arraysize(kChromeDebugURLs));
649 const char kChromeNativeScheme[] = "chrome-native";
651 const char kChromeSearchScheme[] = "chrome-search";
652 const char kChromeSearchLocalNtpHost[] = "local-ntp";
653 const char kChromeSearchLocalNtpUrl[] =
654 "chrome-search://local-ntp/local-ntp.html";
655 const char kChromeSearchOnlineNtpHost[] = "online-ntp";
657 const char kChromeSearchMostVisitedHost[] = "most-visited";
658 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/";
660 // Google SafeSearch query parameters.
661 const char kSafeSearchSafeParameter[] = "safe=active";
662 const char kSafeSearchSsuiParameter[] = "ssui=on";
664 const char kMediaAccessLearnMoreUrl[] =
665 "https://support.google.com/chrome/?p=ib_access_cam_mic";
667 const char kLanguageSettingsLearnMoreUrl[] =
668 #if defined(OS_CHROMEOS)
669 "https://support.google.com/chromebook/answer/1059490";
670 #else
671 "https://support.google.com/chrome/topic/1678461";
672 #endif
674 #if defined(OS_MACOSX)
675 const char kMac32BitDeprecationURL[] =
676 #if !defined(ARCH_CPU_64_BITS)
677 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
678 #else
680 #endif
681 #endif
683 } // namespace chrome