Don't compile save_password_infobar_delegate.cc everywhere but Mac and Android
[chromium-blink-merge.git] / chrome / common / url_constants.cc
blobce82af246bd1946a1c5f53e878cab70c359b6e07
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 #endif
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 kChromeUIHelpURL[] = "chrome://help/";
51 const char kChromeUIHistoryURL[] = "chrome://history/";
52 const char kChromeUIHistoryFrameURL[] = "chrome://history-frame/";
53 const char kChromeUIIdentityInternalsURL[] = "chrome://identity-internals/";
54 const char kChromeUIInspectURL[] = "chrome://inspect/";
55 const char kChromeUIInstantURL[] = "chrome://instant/";
56 const char kChromeUIInterstitialURL[] = "chrome://interstitials/";
57 const char kChromeUIInvalidationsURL[] = "chrome://invalidations/";
58 const char kChromeUILargeIconURL[] = "chrome://large-icon/";
59 const char kChromeUIMdSettingsURL[] = "chrome://md-settings/";
60 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/";
61 const char kChromeUIMemoryURL[] = "chrome://memory/";
62 const char kChromeUINaClURL[] = "chrome://nacl/";
63 const char kChromeUINetInternalsURL[] = "chrome://net-internals/";
64 const char kChromeUINewProfileURL[] = "chrome://newprofile/";
65 const char kChromeUINewTabURL[] = "chrome://newtab/";
66 const char kChromeUIOmniboxURL[] = "chrome://omnibox/";
67 const char kChromeUIPluginsURL[] = "chrome://plugins/";
68 const char kChromeUIPolicyURL[] = "chrome://policy/";
69 const char kChromeUIProfileSigninConfirmationURL[] =
70 "chrome://profile-signin-confirmation/";
71 const char kChromeUIUserManagerURL[] = "chrome://user-manager/";
72 const char kChromeUIPrintURL[] = "chrome://print/";
73 const char kChromeUIQuitURL[] = "chrome://quit/";
74 const char kChromeUIRestartURL[] = "chrome://restart/";
75 const char kChromeUISettingsURL[] = "chrome://settings/";
76 const char kChromeUIContentSettingsURL[] = "chrome://settings/content";
77 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/";
78 const char kChromeUISuggestionsURL[] = "chrome://suggestions/";
79 const char kChromeUISupervisedUserPassphrasePageURL[] =
80 "chrome://managed-user-passphrase/";
81 const char kChromeUITermsURL[] = "chrome://terms/";
82 const char kChromeUIThemeURL[] = "chrome://theme/";
83 const char kChromeUIThumbnailURL[] = "chrome://thumb/";
84 const char kChromeUIThumbnailListURL[] = "chrome://thumbnails/";
85 const char kChromeUIUberFrameURL[] = "chrome://uber-frame/";
86 const char kChromeUIUserActionsURL[] = "chrome://user-actions/";
87 const char kChromeUIVersionURL[] = "chrome://version/";
89 #if defined(OS_ANDROID)
90 const char kChromeUIContextualSearchPromoURL[] =
91 "chrome://contextual-search-promo";
92 const char kChromeUINativeScheme[] = "chrome-native";
93 const char kChromeUINativeNewTabURL[] = "chrome-native://newtab/";
94 const char kChromeUINativeBookmarksURL[] = "chrome-native://bookmarks/";
95 const char kChromeUINativeRecentTabsURL[] = "chrome-native://recent-tabs/";
96 #endif
98 #if defined(OS_CHROMEOS)
99 const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/";
100 const char kChromeUICertificateManagerDialogURL[] =
101 "chrome://certificate-manager/";
102 const char kChromeUIChooseMobileNetworkURL[] =
103 "chrome://choose-mobile-network/";
104 const char kChromeUIDeviceEmulatorURL[] = "chrome://device-emulator/";
105 const char kChromeUIFirstRunURL[] = "chrome://first-run/";
106 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
107 const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/";
108 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
109 const char kChromeUINfcDebugURL[] = "chrome://nfc-debug/";
110 const char kChromeUIOobeURL[] = "chrome://oobe/";
111 const char kChromeUIOSCreditsURL[] = "chrome://os-credits/";
112 const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/";
113 const char kChromeUISalsaURL[] = "chrome://salsa/";
114 const char kChromeUIScreenlockIconURL[] = "chrome://screenlock-icon/";
115 const char kChromeUISetTimeURL[] = "chrome://set-time/";
116 const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/";
117 const char kChromeUISlowURL[] = "chrome://slow/";
118 const char kChromeUISystemInfoURL[] = "chrome://system/";
119 const char kChromeUITermsOemURL[] = "chrome://terms/oem";
120 const char kChromeUIUserImageURL[] = "chrome://userimage/";
121 #endif // defined(OS_CHROMEOS)
123 #if defined(OS_WIN)
124 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/";
125 #endif
127 #if defined(USE_AURA)
128 const char kChromeUIGestureConfigURL[] = "chrome://gesture/";
129 const char kChromeUIGestureConfigHost[] = "gesture";
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(OS_ANDROID) && !defined(OS_IOS)
138 const char kChromeUICopresenceURL[] = "chrome://copresence/";
139 #endif
141 #if defined(ENABLE_WEBRTC)
142 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/";
143 #endif
145 #if defined(ENABLE_MEDIA_ROUTER)
146 const char kChromeUIMediaRouterURL[] = "chrome://media-router/";
147 #endif
149 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
150 const char kChromeUIDiscardsHost[] = "discards";
151 const char kChromeUIDiscardsURL[] = "chrome://discards/";
152 #endif
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 kChromeUIConflictsHost[] = "conflicts";
168 const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test";
169 const char kChromeUICrashesHost[] = "crashes";
170 const char kChromeUICrashHost[] = "crash";
171 const char kChromeUICreditsHost[] = "credits";
172 const char kChromeUIDefaultHost[] = "version";
173 const char kChromeUIDeviceLogHost[] = "device-log";
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 kChromeUIExtensionIconHost[] = "extension-icon";
184 const char kChromeUIExtensionsFrameHost[] = "extensions-frame";
185 const char kChromeUIExtensionsHost[] = "extensions";
186 const char kChromeUIFallbackIconHost[] = "fallback-icon";
187 const char kChromeUIFaviconHost[] = "favicon";
188 const char kChromeUIFlagsHost[] = "flags";
189 const char kChromeUIFlashHost[] = "flash";
190 const char kChromeUIGCMInternalsHost[] = "gcm-internals";
191 const char kChromeUIHangHost[] = "hang";
192 const char kChromeUIHangUIHost[] = "uithreadhang";
193 const char kChromeUIHelpFrameHost[] = "help-frame";
194 const char kChromeUIHelpHost[] = "help";
195 const char kChromeUIHistoryHost[] = "history";
196 const char kChromeUIHistoryFrameHost[] = "history-frame";
197 const char kChromeUIIdentityInternalsHost[] = "identity-internals";
198 const char kChromeUIInspectHost[] = "inspect";
199 const char kChromeUIInstantHost[] = "instant";
200 const char kChromeUIInterstitialHost[] = "interstitials";
201 const char kChromeUIInvalidationsHost[] = "invalidations";
202 const char kChromeUIKillHost[] = "kill";
203 const char kChromeUILargeIconHost[] = "large-icon";
204 const char kChromeUILocalStateHost[] = "local-state";
205 const char kChromeUIMdSettingsHost[] = "md-settings";
206 const char kChromeUIMemoryHost[] = "memory";
207 const char kChromeUIMemoryInternalsHost[] = "memory-internals";
208 const char kChromeUIMemoryRedirectHost[] = "memory-redirect";
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 kChromeUIPluginsHost[] = "plugins";
217 const char kChromeUIComponentsHost[] = "components";
218 const char kChromeUIPolicyHost[] = "policy";
219 const char kChromeUIProfileSigninConfirmationHost[] =
220 "profile-signin-confirmation";
221 const char kChromeUIUserManagerHost[] = "user-manager";
222 const char kChromeUIPredictorsHost[] = "predictors";
223 const char kChromeUIProfilerHost[] = "profiler";
224 const char kChromeUIQuotaInternalsHost[] = "quota-internals";
225 const char kChromeUIQuitHost[] = "quit";
226 const char kChromeUIRestartHost[] = "restart";
227 const char kChromeUISettingsHost[] = "settings";
228 const char kChromeUISettingsFrameHost[] = "settings-frame";
229 const char kChromeUIShorthangHost[] = "shorthang";
230 const char kChromeUISignInInternalsHost[] = "signin-internals";
231 const char kChromeUISuggestionsHost[] = "suggestions";
232 const char kChromeUISupervisedUserInternalsHost[] = "supervised-user-internals";
233 const char kChromeUISupervisedUserPassphrasePageHost[] =
234 "managed-user-passphrase";
235 const char kChromeUISyncHost[] = "sync";
236 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals";
237 const char kChromeUISyncInternalsHost[] = "sync-internals";
238 const char kChromeUISyncResourcesHost[] = "syncresources";
239 const char kChromeUISystemInfoHost[] = "system";
240 const char kChromeUITermsHost[] = "terms";
241 const char kChromeUIThemeHost[] = "theme";
242 const char kChromeUIThumbnailHost[] = "thumb";
243 const char kChromeUIThumbnailHost2[] = "thumb2";
244 const char kChromeUIThumbnailListHost[] = "thumbnails";
245 const char kChromeUITouchIconHost[] = "touch-icon";
246 const char kChromeUITranslateInternalsHost[] = "translate-internals";
247 const char kChromeUIUberFrameHost[] = "uber-frame";
248 const char kChromeUIUberHost[] = "chrome";
249 const char kChromeUIUserActionsHost[] = "user-actions";
250 const char kChromeUIVersionHost[] = "version";
251 const char kChromeUIWebRTCDeviceProviderHost[] =
252 "webrtc-device-provider";
253 const char kChromeUIWorkersHost[] = "workers";
255 const char kChromeUIThemePath[] = "theme";
257 #if defined(ENABLE_PRINT_PREVIEW)
258 const char kChromeUIPrintHost[] = "print";
259 #endif // ENABLE_PRINT_PREVIEW
261 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
262 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config";
263 const char kChromeUISandboxHost[] = "sandbox";
264 #endif
266 #if defined(OS_ANDROID)
267 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo";
268 #endif
270 #if defined(OS_CHROMEOS)
271 const char kChromeUIActivationMessageHost[] = "activationmessage";
272 const char kChromeUIAppLaunchHost[] = "app-launch";
273 const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing";
274 const char kChromeUICertificateManagerHost[] = "certificate-manager";
275 const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network";
276 const char kChromeUICryptohomeHost[] = "cryptohome";
277 const char kChromeUIDeviceEmulatorHost[] = "device-emulator";
278 const char kChromeUIFirstRunHost[] = "first-run";
279 const char kChromeUIImageBurnerHost[] = "imageburner";
280 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay";
281 const char kChromeUILoginContainerHost[] = "login-container";
282 const char kChromeUILoginHost[] = "login";
283 const char kChromeUIMobileSetupHost[] = "mobilesetup";
284 const char kChromeUINfcDebugHost[] = "nfc-debug";
285 const char kChromeUINetworkHost[] = "network";
286 const char kChromeUIOobeHost[] = "oobe";
287 const char kChromeUIOSCreditsHost[] = "os-credits";
288 const char kChromeUIPowerHost[] = "power";
289 const char kChromeUIProxySettingsHost[] = "proxy-settings";
290 const char kChromeUIRotateHost[] = "rotate";
291 const char kChromeUISalsaHost[] = "salsa";
292 const char kChromeUIScreenlockIconHost[] = "screenlock-icon";
293 const char kChromeUISetTimeHost[] = "set-time";
294 const char kChromeUISimUnlockHost[] = "sim-unlock";
295 const char kChromeUISlowHost[] = "slow";
296 const char kChromeUISlowTraceHost[] = "slow_trace";
297 const char kChromeUIUserImageHost[] = "userimage";
298 const char kChromeUIVoiceSearchHost[] = "voicesearch";
300 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
301 const char kOemEulaURLPath[] = "oem";
302 const char kOnlineEulaURLPath[] =
303 "https://www.google.com/intl/%s/chrome/eula_text.html";
305 const char kChromeOSCreditsPath[] =
306 "/opt/google/chrome/resources/about_os_credits.html";
308 const char kChromeOSAssetHost[] = "chromeos-asset";
309 const char kChromeOSAssetPath[] = "/usr/share/chromeos-assets/";
310 #endif // defined(OS_CHROMEOS)
312 #if defined(OS_WIN)
313 const char kChromeUIMetroFlowHost[] = "make-metro";
314 #endif
316 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
317 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
318 #endif
320 #if !defined(OS_ANDROID) && !defined(OS_IOS)
321 const char kChromeUICopresenceHost[] = "copresence";
322 #endif
324 #if defined(ENABLE_WEBRTC)
325 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs";
326 #endif
328 #if defined(ENABLE_MEDIA_ROUTER)
329 const char kChromeUIMediaRouterHost[] = "media-router";
330 #endif
332 // Option sub pages.
333 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
334 // listed by the built-in AutocompleteProvider.
335 const char kAutofillSubPage[] = "autofill";
336 const char kClearBrowserDataSubPage[] = "clearBrowserData";
337 const char kContentSettingsExceptionsSubPage[] = "contentExceptions";
338 const char kContentSettingsSubPage[] = "content";
339 const char kCreateProfileSubPage[] = "createProfile";
340 const char kExtensionsSubPage[] = "extensions";
341 const char kHandlerSettingsSubPage[] = "handlers";
342 const char kImportDataSubPage[] = "importData";
343 const char kLanguageOptionsSubPage[] = "languages";
344 const char kManageProfileSubPage[] = "manageProfile";
345 const char kPasswordManagerSubPage[] = "passwords";
346 const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
347 const char kSearchEnginesSubPage[] = "searchEngines";
348 const char kSearchSubPage[] = "search";
349 const char kSearchUsersSubPage[] = "search#Users";
350 const char kSyncSetupSubPage[] = "syncSetup";
351 #if defined(OS_CHROMEOS)
352 const char kInternetOptionsSubPage[] = "internet";
353 const char kChangeProfilePictureSubPage[] = "changePicture";
354 #endif
356 // Extension sub pages.
357 const char kExtensionConfigureCommandsSubPage[] = "configureCommands";
359 const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
360 const char kExtensionResourceInvalidRequestURL[] =
361 "chrome-extension-resource://invalid/";
363 const char kSyncGoogleDashboardURL[] =
364 "https://www.google.com/settings/chrome/sync/";
366 const char kPasswordManagerLearnMoreURL[] =
367 #if defined(OS_CHROMEOS)
368 "https://support.google.com/chromebook/?p=settings_password";
369 #else
370 "https://support.google.com/chrome/?p=settings_password";
371 #endif
373 const char kUpgradeHelpCenterBaseURL[] =
374 "http://support.google.com/installer/?product={8A69D345-D564-463c-AFF1-A69D9E530F96}&error=";
376 const char kPasswordManagerAccountDashboardURL[] =
377 "https://passwords.google.com/settings/passwords";
379 const char kExtensionControlledSettingLearnMoreURL[] =
380 "https://support.google.com/chrome/?p=ui_settings_api_extension";
382 const char kChromeHelpViaKeyboardURL[] =
383 #if defined(OS_CHROMEOS)
384 #if defined(OFFICIAL_BUILD)
385 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
386 #else
387 "https://support.google.com/chromebook/?p=help&ctx=keyboard";
388 #endif // defined(OFFICIAL_BUILD
389 #else
390 "https://support.google.com/chrome/?p=help&ctx=keyboard";
391 #endif // defined(OS_CHROMEOS)
393 const char kChromeHelpViaMenuURL[] =
394 #if defined(OS_CHROMEOS)
395 #if defined(OFFICIAL_BUILD)
396 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
397 #else
398 "https://support.google.com/chromebook/?p=help&ctx=menu";
399 #endif // defined(OFFICIAL_BUILD
400 #else
401 "https://support.google.com/chrome/?p=help&ctx=menu";
402 #endif // defined(OS_CHROMEOS)
404 const char kChromeHelpViaWebUIURL[] =
405 #if defined(OS_CHROMEOS)
406 #if defined(OFFICIAL_BUILD)
407 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
408 #else
409 "https://support.google.com/chromebook/?p=help&ctx=settings";
410 #endif // defined(OFFICIAL_BUILD
411 #else
412 "https://support.google.com/chrome/?p=help&ctx=settings";
413 #endif // defined(OS_CHROMEOS)
415 #if defined(OS_CHROMEOS)
416 const char kChromeAccessibilityHelpURL[] =
417 "https://support.google.com/chromebook/?p=accessibility_menu";
418 const char kChromeAccessibilitySettingsURL[] =
419 "/chromevox/background/options.html";
420 #endif // defined(OS_CHROMEOS)
422 #if defined(ENABLE_ONE_CLICK_SIGNIN)
423 const char kChromeSyncLearnMoreURL[] =
424 "https://support.google.com/chrome/answer/165139";
426 const char kChromeSyncMergeTroubleshootingURL[] =
427 "https://support.google.com/chrome/answer/1181420#merge";
428 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
430 #if defined(OS_MACOSX)
431 const char kChromeEnterpriseSignInLearnMoreURL[] =
432 "https://support.google.com/chromebook/answer/1331549";
433 #endif
435 const char kResetProfileSettingsLearnMoreURL[] =
436 "https://support.google.com/chrome/?p=ui_reset_settings";
438 const char kAutomaticSettingsResetLearnMoreURL[] =
439 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
441 const char kLegacySupervisedUserManagementURL[] =
442 "https://www.chrome.com/manage";
443 const char kLegacySupervisedUserManagementDisplayURL[] =
444 "www.chrome.com/manage";
446 const char kSettingsSearchHelpURL[] =
447 #if defined(OS_CHROMEOS)
448 "https://support.google.com/chromebook/?p=settings_search_help";
449 #else
450 "https://support.google.com/chrome/?p=settings_search_help";
451 #endif
453 const char kOmniboxLearnMoreURL[] =
454 #if defined(OS_CHROMEOS)
455 "https://support.google.com/chromebook/?p=settings_omnibox";
456 #else
457 "https://support.google.com/chrome/?p=settings_omnibox";
458 #endif
460 const char kPageInfoHelpCenterURL[] =
461 #if defined(OS_CHROMEOS)
462 "https://support.google.com/chromebook/?p=ui_security_indicator";
463 #else
464 "https://support.google.com/chrome/?p=ui_security_indicator";
465 #endif
467 const char kCrashReasonURL[] =
468 #if defined(OS_CHROMEOS)
469 "https://support.google.com/chromebook/?p=e_awsnap";
470 #else
471 "https://support.google.com/chrome/?p=e_awsnap";
472 #endif
474 const char kCrashReasonFeedbackDisplayedURL[] =
475 #if defined(OS_CHROMEOS)
476 "https://support.google.com/chromebook/?p=e_awsnap_rl";
477 #else
478 "https://support.google.com/chrome/?p=e_awsnap_rl";
479 #endif
481 const char kPrivacyLearnMoreURL[] =
482 #if defined(OS_CHROMEOS)
483 "https://support.google.com/chromebook/?p=settings_privacy";
484 #else
485 "https://support.google.com/chrome/?p=settings_privacy";
486 #endif
488 const char kDoNotTrackLearnMoreURL[] =
489 #if defined(OS_CHROMEOS)
490 "https://support.google.com/chromebook/?p=settings_do_not_track";
491 #else
492 "https://support.google.com/chrome/?p=settings_do_not_track";
493 #endif
495 #if defined(OS_CHROMEOS)
496 const char kAttestationForContentProtectionLearnMoreURL[] =
497 "https://support.google.com/chromebook/?p=verified_access";
498 #endif
500 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
501 const char kEnhancedPlaybackNotificationLearnMoreURL[] =
502 #endif
503 #if defined(OS_CHROMEOS)
504 "https://support.google.com/chromebook/?p=enhanced_playback";
505 #elif defined(OS_ANDROID)
506 // Keep in sync with chrome/android/java/strings/android_chrome_strings.grd
507 "https://support.google.com/chrome/?p=mobile_protected_content";
508 #endif
510 const char kChromiumProjectURL[] = "http://www.chromium.org/";
512 const char kLearnMoreReportingURL[] =
513 "https://support.google.com/chrome/?p=ui_usagestat";
515 #if defined(ENABLE_PLUGIN_INSTALLATION)
516 const char kOutdatedPluginLearnMoreURL[] =
517 "https://support.google.com/chrome/?p=ib_outdated_plugin";
518 #endif
520 const char kBlockedPluginLearnMoreURL[] =
521 "https://support.google.com/chrome/?p=ib_blocked_plugin";
523 const char kHotwordLearnMoreURL[] =
524 "https://support.google.com/chrome/?p=ui_hotword_search";
526 const char kManageAudioHistoryURL[] =
527 "https://history.google.com/history/audio";
529 const char kLearnMoreRegisterProtocolHandlerURL[] =
530 "https://support.google.com/chrome/?p=ib_protocol_handler";
532 const char kSyncLearnMoreURL[] =
533 "https://support.google.com/chrome/?p=settings_sign_in";
535 const char kDownloadScanningLearnMoreURL[] =
536 "https://support.google.com/chrome/?p=ib_download_blocked";
538 const char kDownloadInterruptedLearnMoreURL[] =
539 "https://support.google.com/chrome/?p=ui_download_errors";
541 const char kSyncEverythingLearnMoreURL[] =
542 "https://support.google.com/chrome/?p=settings_sync_all";
544 const char kCloudPrintLearnMoreURL[] =
545 #if defined(OS_CHROMEOS)
546 "https://support.google.com/chromebook/?p=settings_cloud_print";
547 #else
548 "https://support.google.com/chrome/?p=settings_cloud_print";
549 #endif
551 const char kCloudPrintNoDestinationsLearnMoreURL[] =
552 "https://www.google.com/cloudprint/learn/";
554 const char kAppLauncherHelpURL[] =
555 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
557 const char kSyncEncryptionHelpURL[] =
558 #if defined(OS_CHROMEOS)
559 "https://support.google.com/chromebook/?p=settings_encryption";
560 #else
561 "https://support.google.com/chrome/?p=settings_encryption";
562 #endif
564 const char kSyncErrorsHelpURL[] =
565 "https://support.google.com/chrome/?p=settings_sync_error";
567 #if defined(OS_CHROMEOS)
568 const char kNaturalScrollHelpURL[] =
569 "https://support.google.com/chromebook/?p=simple_scrolling";
570 #endif
572 #if defined(OS_CHROMEOS)
573 const char kLearnMoreEnterpriseURL[] =
574 "https://support.google.com/chromebook/answer/2535613";
575 #endif
577 const char kRemoveNonCWSExtensionURL[] =
578 "https://support.google.com/chrome/?p=ui_remove_non_cws_extensions";
580 #if defined(OS_WIN)
581 const char kNotificationsHelpURL[] =
582 "https://support.google.com/chrome/?p=ui_notifications";
583 #endif
585 const char kNotificationWelcomeLearnMoreURL[] =
586 "https://support.google.com/chrome/?p=ib_google_now_welcome";
588 // Add hosts here to be included in chrome://chrome-urls (about:about).
589 // These hosts will also be suggested by BuiltinProvider.
590 const char* const kChromeHostURLs[] = {
591 kChromeUICacheHost,
592 kChromeUIChromeURLsHost,
593 kChromeUIComponentsHost,
594 kChromeUICrashesHost,
595 kChromeUICreditsHost,
596 kChromeUIDeviceLogHost,
597 kChromeUIDNSHost,
598 kChromeUIFlagsHost,
599 kChromeUIHistoryHost,
600 kChromeUIInvalidationsHost,
601 kChromeUILocalStateHost,
602 kChromeUIMemoryHost,
603 kChromeUIMemoryInternalsHost,
604 kChromeUINetInternalsHost,
605 kChromeUINewTabHost,
606 kChromeUIOmniboxHost,
607 kChromeUIPasswordManagerInternalsHost,
608 kChromeUIPredictorsHost,
609 kChromeUIProfilerHost,
610 kChromeUISignInInternalsHost,
611 kChromeUISuggestionsHost,
612 kChromeUISyncInternalsHost,
613 kChromeUITermsHost,
614 kChromeUIThumbnailListHost,
615 kChromeUITranslateInternalsHost,
616 kChromeUIUserActionsHost,
617 kChromeUIVersionHost,
618 content::kChromeUIAccessibilityHost,
619 content::kChromeUIAppCacheInternalsHost,
620 content::kChromeUIBlobInternalsHost,
621 content::kChromeUIGpuHost,
622 content::kChromeUIHistogramHost,
623 content::kChromeUIIndexedDBInternalsHost,
624 content::kChromeUIMediaInternalsHost,
625 content::kChromeUINetworkViewCacheHost,
626 content::kChromeUIServiceWorkerInternalsHost,
627 content::kChromeUITracingHost,
628 content::kChromeUIWebRTCInternalsHost,
629 #if !defined(OS_ANDROID)
630 #if !defined(OS_CHROMEOS)
631 kChromeUIAppLauncherPageHost,
632 #endif
633 kChromeUIBookmarksHost,
634 kChromeUIDownloadsHost,
635 kChromeUIFlashHost,
636 kChromeUIGCMInternalsHost,
637 kChromeUIHelpHost,
638 kChromeUIInspectHost,
639 kChromeUIPluginsHost,
640 kChromeUIQuotaInternalsHost,
641 kChromeUISettingsHost,
642 kChromeUISystemInfoHost,
643 kChromeUIUberHost,
644 #endif
645 #if defined(OS_ANDROID) || defined(OS_IOS)
646 kChromeUINetExportHost,
647 #else // non-mobile
648 kChromeUICopresenceHost,
649 #endif
650 #if defined(OS_CHROMEOS)
651 kChromeUICertificateManagerHost,
652 kChromeUIChooseMobileNetworkHost,
653 kChromeUICryptohomeHost,
654 kChromeUIDriveInternalsHost,
655 kChromeUIFirstRunHost,
656 kChromeUIImageBurnerHost,
657 kChromeUIKeyboardOverlayHost,
658 kChromeUILoginHost,
659 kChromeUINetworkHost,
660 kChromeUIOobeHost,
661 kChromeUIOSCreditsHost,
662 kChromeUIPowerHost,
663 kChromeUIProxySettingsHost,
664 kChromeUIVoiceSearchHost,
665 #endif
666 #if defined(OS_WIN) || defined(OS_CHROMEOS)
667 kChromeUIDiscardsHost,
668 #endif
669 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
670 kChromeUILinuxProxyConfigHost,
671 kChromeUISandboxHost,
672 #endif
673 #if defined(OS_WIN)
674 kChromeUIConflictsHost,
675 #endif
676 #if !defined(DISABLE_NACL)
677 kChromeUINaClHost,
678 #endif
679 #if defined(ENABLE_CONFIGURATION_POLICY)
680 kChromeUIPolicyHost,
681 #endif
682 #if defined(ENABLE_EXTENSIONS)
683 kChromeUIExtensionsHost,
684 #endif
685 #if defined(ENABLE_PRINT_PREVIEW)
686 kChromeUIPrintHost,
687 #endif
688 #if defined(ENABLE_SERVICE_DISCOVERY)
689 kChromeUIDevicesHost,
690 #endif
691 #if defined(ENABLE_WEBRTC)
692 kChromeUIWebRtcLogsHost,
693 #endif
695 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);
697 const char* const kChromeDebugURLs[] = {
698 content::kChromeUIBadCastCrashURL,
699 content::kChromeUICrashURL,
700 content::kChromeUIDumpURL,
701 content::kChromeUIKillURL,
702 content::kChromeUIHangURL,
703 content::kChromeUIShorthangURL,
704 content::kChromeUIGpuCleanURL,
705 content::kChromeUIGpuCrashURL,
706 content::kChromeUIGpuHangURL,
707 content::kChromeUIPpapiFlashCrashURL,
708 content::kChromeUIPpapiFlashHangURL,
709 chrome::kChromeUIQuitURL,
710 chrome::kChromeUIRestartURL
712 const int kNumberOfChromeDebugURLs =
713 static_cast<int>(arraysize(kChromeDebugURLs));
715 const char kChromeNativeScheme[] = "chrome-native";
717 const char kChromeSearchScheme[] = "chrome-search";
718 const char kChromeSearchLocalNtpHost[] = "local-ntp";
719 const char kChromeSearchLocalNtpUrl[] =
720 "chrome-search://local-ntp/local-ntp.html";
721 const char kChromeSearchRemoteNtpHost[] = "remote-ntp";
723 const char kChromeSearchMostVisitedHost[] = "most-visited";
724 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/";
726 // Google SafeSearch query parameters.
727 const char kSafeSearchSafeParameter[] = "safe=active";
728 const char kSafeSearchSsuiParameter[] = "ssui=on";
730 const char kMediaAccessLearnMoreUrl[] =
731 "https://support.google.com/chrome/?p=ib_access_cam_mic";
733 const char kLanguageSettingsLearnMoreUrl[] =
734 #if defined(OS_CHROMEOS)
735 "https://support.google.com/chromebook/answer/1059490";
736 #else
737 "https://support.google.com/chrome/topic/1678461";
738 #endif
740 #if defined(OS_MACOSX)
741 const char kMac32BitDeprecationURL[] =
742 #if !defined(ARCH_CPU_64_BITS)
743 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
744 #else
746 #endif
747 #endif
749 const char kEasyUnlockLearnMoreUrl[] =
750 "https://support.google.com/chromebook/?p=smart_lock";
752 } // namespace chrome