Enable Enterprise enrollment on desktop builds.
[chromium-blink-merge.git] / chrome / common / url_constants.cc
blob8c7dce3af96644d2e69f2539f133a13b0fd477db
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 kChromeUICrashesURL[] = "chrome://crashes/";
36 const char kChromeUICreditsURL[] = "chrome://credits/";
37 const char kChromeUIDevicesURL[] = "chrome://devices/";
38 const char kChromeUIDevToolsURL[] =
39 "chrome-devtools://devtools/bundled/devtools.html";
40 const char kChromeUIDownloadsURL[] = "chrome://downloads/";
41 const char kChromeUIEditSearchEngineDialogURL[] = "chrome://editsearchengine/";
42 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/";
43 const char kChromeUIExtensionInfoURL[] = "chrome://extension-info/";
44 const char kChromeUIExtensionsFrameURL[] = "chrome://extensions-frame/";
45 const char kChromeUIExtensionsURL[] = "chrome://extensions/";
46 const char kChromeUIFaviconURL[] = "chrome://favicon/";
47 const char kChromeUIFeedbackURL[] = "chrome://feedback/";
48 const char kChromeUIFlagsURL[] = "chrome://flags/";
49 const char kChromeUIFlashURL[] = "chrome://flash/";
50 const char kChromeUIGCMInternalsURL[] = "chrome://gcm-internals/";
51 const char kChromeUIHelpFrameURL[] = "chrome://help-frame/";
52 const char kChromeUIHistoryURL[] = "chrome://history/";
53 const char kChromeUIHistoryFrameURL[] = "chrome://history-frame/";
54 const char kChromeUIIdentityInternalsURL[] = "chrome://identity-internals/";
55 const char kChromeUIInspectURL[] = "chrome://inspect/";
56 const char kChromeUIInstantURL[] = "chrome://instant/";
57 const char kChromeUIInvalidationsURL[] = "chrome://invalidations/";
58 const char kChromeUIIPCURL[] = "chrome://ipc/";
59 const char kChromeUIManagedUserPassphrasePageURL[] =
60 "chrome://managed-user-passphrase/";
61 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/";
62 const char kChromeUIMemoryURL[] = "chrome://memory/";
63 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/";
64 const char kChromeUINaClURL[] = "chrome://nacl/";
65 const char kChromeUINetInternalsURL[] = "chrome://net-internals/";
66 const char kChromeUINewProfile[] = "chrome://newprofile/";
67 const char kChromeUINewTabURL[] = "chrome://newtab/";
68 const char kChromeUIOmniboxURL[] = "chrome://omnibox/";
69 const char kChromeUIPerformanceMonitorURL[] = "chrome://performance/";
70 const char kChromeUIPluginsURL[] = "chrome://plugins/";
71 const char kChromeUIPolicyURL[] = "chrome://policy/";
72 const char kChromeUIProfileSigninConfirmationURL[] =
73 "chrome://profile-signin-confirmation/";
74 const char kChromeUIUserManagerURL[] = "chrome://user-manager/";
75 const char kChromeUIPrintURL[] = "chrome://print/";
76 const char kChromeUIQuitURL[] = "chrome://quit/";
77 const char kChromeUIRestartURL[] = "chrome://restart/";
78 const char kChromeUISettingsURL[] = "chrome://settings/";
79 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/";
80 const char kChromeUISuggestions[] = "chrome://suggestions/";
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 kChromeUINativeBookmarksURL[] = "chrome-native://bookmarks/";
97 const char kChromeUINativeRecentTabsURL[] = "chrome-native://recent-tabs/";
98 const char kChromeUIWelcomeURL[] = "chrome://welcome/";
99 #endif
101 #if defined(OS_CHROMEOS)
102 const char kChromeUIActivationMessage[] = "chrome://activationmessage/";
103 const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/";
104 const char kChromeUICertificateManagerDialogURL[] =
105 "chrome://certificate-manager/";
106 const char kChromeUIChargerReplacementURL[] = "chrome://charger-replacement/";
107 const char kChromeUIChooseMobileNetworkURL[] =
108 "chrome://choose-mobile-network/";
109 const char kChromeUIDiscardsURL[] = "chrome://discards/";
110 const char kChromeUIFirstRunURL[] = "chrome://first-run/";
111 const char kChromeUIIdleLogoutDialogURL[] = "chrome://idle-logout/";
112 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/";
113 const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/";
114 const char kChromeUILockScreenURL[] = "chrome://lock/";
115 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/";
116 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/";
117 const char kChromeUINfcDebugURL[] = "chrome://nfc-debug/";
118 const char kChromeUIOobeURL[] = "chrome://oobe/";
119 const char kChromeUIOSCreditsURL[] = "chrome://os-credits/";
120 const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/";
121 const char kChromeUIScreenlockIconURL[] = "chrome://screenlock-icon/";
122 const char kChromeUISetTimeURL[] = "chrome://set-time/";
123 const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/";
124 const char kChromeUISlideshowURL[] = "chrome://slideshow/";
125 const char kChromeUISlowURL[] = "chrome://slow/";
126 const char kChromeUISystemInfoURL[] = "chrome://system/";
127 const char kChromeUITermsOemURL[] = "chrome://terms/oem";
128 const char kChromeUIUserImageURL[] = "chrome://userimage/";
129 #endif
131 #if defined(USE_AURA)
132 const char kChromeUIGestureConfigURL[] = "chrome://gesture/";
133 const char kChromeUIGestureConfigHost[] = "gesture";
134 const char kChromeUISalsaURL[] = "chrome://salsa/";
135 const char kChromeUISalsaHost[] = "salsa";
136 #endif
138 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
139 const char kChromeUITabModalConfirmDialogURL[] =
140 "chrome://tab-modal-confirm-dialog/";
141 #endif
143 #if defined(ENABLE_WEBRTC)
144 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/";
145 #endif
147 // Add Chrome UI hosts here, in alphabetical order.
148 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
149 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
150 const char kChromeUIAboutHost[] = "about";
151 const char kChromeUIBlankHost[] = "blank";
152 const char kChromeUIAppLauncherPageHost[] = "apps";
153 const char kChromeUIAppListStartPageHost[] = "app-list";
154 const char kChromeUIBookmarksHost[] = "bookmarks";
155 const char kChromeUICacheHost[] = "cache";
156 const char kChromeUICertificateViewerHost[] = "view-cert";
157 const char kChromeUICertificateViewerDialogHost[] = "view-cert-dialog";
158 const char kChromeUIChromeSigninHost[] = "chrome-signin";
159 const char kChromeUIChromeURLsHost[] = "chrome-urls";
160 const char kChromeUICloudPrintResourcesHost[] = "cloudprintresources";
161 const char kChromeUICloudPrintSetupHost[] = "cloudprintsetup";
162 const char kChromeUIConflictsHost[] = "conflicts";
163 const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test";
164 const char kChromeUICrashesHost[] = "crashes";
165 const char kChromeUICrashHost[] = "crash";
166 const char kChromeUICreditsHost[] = "credits";
167 const char kChromeUIDefaultHost[] = "version";
168 const char kChromeUIDevicesHost[] = "devices";
169 const char kChromeUIDevToolsHost[] = "devtools";
170 const char kChromeUIDevToolsBundledPath[] = "bundled";
171 const char kChromeUIDevToolsRemotePath[] = "remote";
172 const char kChromeUIDNSHost[] = "dns";
173 const char kChromeUIDownloadsHost[] = "downloads";
174 const char kChromeUIDriveInternalsHost[] = "drive-internals";
175 const char kChromeUIEditSearchEngineDialogHost[] = "editsearchengine";
176 const char kChromeUIExtensionIconHost[] = "extension-icon";
177 const char kChromeUIExtensionInfoHost[] = "extension-info";
178 const char kChromeUIExtensionsFrameHost[] = "extensions-frame";
179 const char kChromeUIExtensionsHost[] = "extensions";
180 const char kChromeUIFaviconHost[] = "favicon";
181 const char kChromeUIFeedbackHost[] = "feedback";
182 const char kChromeUIFlagsHost[] = "flags";
183 const char kChromeUIFlashHost[] = "flash";
184 const char kChromeUIGCMInternalsHost[] = "gcm-internals";
185 const char kChromeUIHangHost[] = "hang";
186 const char kChromeUIHelpFrameHost[] = "help-frame";
187 const char kChromeUIHelpHost[] = "help";
188 const char kChromeUIHistoryHost[] = "history";
189 const char kChromeUIHistoryFrameHost[] = "history-frame";
190 const char kChromeUIIdentityInternalsHost[] = "identity-internals";
191 const char kChromeUIInspectHost[] = "inspect";
192 const char kChromeUIInstantHost[] = "instant";
193 const char kChromeUIInvalidationsHost[] = "invalidations";
194 const char kChromeUIIPCHost[] = "ipc";
195 const char kChromeUIKillHost[] = "kill";
196 const char kChromeUIManagedUserPassphrasePageHost[] = "managed-user-passphrase";
197 const char kChromeUIMemoryHost[] = "memory";
198 const char kChromeUIMemoryInternalsHost[] = "memory-internals";
199 const char kChromeUIMemoryRedirectHost[] = "memory-redirect";
200 const char kChromeUIMetroFlowHost[] = "make-metro";
201 const char kChromeUINaClHost[] = "nacl";
202 const char kChromeUINetExportHost[] = "net-export";
203 const char kChromeUINetInternalsHost[] = "net-internals";
204 const char kChromeUINewTabHost[] = "newtab";
205 const char kChromeUIOmniboxHost[] = "omnibox";
206 const char kChromeUIPasswordManagerInternalsHost[] =
207 "password-manager-internals";
208 const char kChromeUIPerformanceMonitorHost[] = "performance";
209 const char kChromeUIPluginsHost[] = "plugins";
210 const char kChromeUIComponentsHost[] = "components";
211 const char kChromeUIPolicyHost[] = "policy";
212 const char kChromeUIProfileSigninConfirmationHost[] =
213 "profile-signin-confirmation";
214 const char kChromeUIUserManagerHost[] = "user-manager";
215 const char kChromeUIPredictorsHost[] = "predictors";
216 const char kChromeUIPrintHost[] = "print";
217 const char kChromeUIProfilerHost[] = "profiler";
218 const char kChromeUIQuotaInternalsHost[] = "quota-internals";
219 const char kChromeUIQuitHost[] = "quit";
220 const char kChromeUIRestartHost[] = "restart";
221 const char kChromeUISettingsHost[] = "settings";
222 const char kChromeUISettingsFrameHost[] = "settings-frame";
223 const char kChromeUIShorthangHost[] = "shorthang";
224 const char kChromeUISignInInternalsHost[] = "signin-internals";
225 const char kChromeUISuggestionsHost[] = "suggestions";
226 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals";
227 const char kChromeUISSLClientCertificateSelectorHost[] = "select-cert";
228 const char kChromeUIStatsHost[] = "stats";
229 const char kChromeUISyncHost[] = "sync";
230 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals";
231 const char kChromeUISyncInternalsHost[] = "sync-internals";
232 const char kChromeUISyncResourcesHost[] = "syncresources";
233 const char kChromeUISystemInfoHost[] = "system";
234 const char kChromeUITaskManagerHost[] = "tasks";
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 kChromeUIWorkersHost[] = "workers";
248 const char kChromeUIScreenshotPath[] = "screenshots";
249 const char kChromeUIThemePath[] = "theme";
251 #if defined(OS_ANDROID)
252 const char kChromeUIWelcomeHost[] = "welcome";
253 #endif
255 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
256 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config";
257 const char kChromeUISandboxHost[] = "sandbox";
258 #endif
260 #if defined(OS_CHROMEOS)
261 const char kChromeUIActivationMessageHost[] = "activationmessage";
262 const char kChromeUIAppLaunchHost[] = "app-launch";
263 const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing";
264 const char kChromeUICertificateManagerHost[] = "certificate-manager";
265 const char kChromeUIChargerReplacementHost[] = "charger-replacement";
266 const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network";
267 const char kChromeUICryptohomeHost[] = "cryptohome";
268 const char kChromeUIDiscardsHost[] = "discards";
269 const char kChromeUIFirstRunHost[] = "first-run";
270 const char kChromeUIIdleLogoutDialogHost[] = "idle-logout";
271 const char kChromeUIImageBurnerHost[] = "imageburner";
272 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay";
273 const char kChromeUILockScreenHost[] = "lock";
274 const char kChromeUILoginContainerHost[] = "login-container";
275 const char kChromeUILoginHost[] = "login";
276 const char kChromeUIMediaplayerHost[] = "mediaplayer";
277 const char kChromeUIMobileSetupHost[] = "mobilesetup";
278 const char kChromeUINfcDebugHost[] = "nfc-debug";
279 const char kChromeUINetworkHost[] = "network";
280 const char kChromeUIOobeHost[] = "oobe";
281 const char kChromeUIOSCreditsHost[] = "os-credits";
282 const char kChromeUIPowerHost[] = "power";
283 const char kChromeUIProxySettingsHost[] = "proxy-settings";
284 const char kChromeUIRotateHost[] = "rotate";
285 const char kChromeUIScreenlockIconHost[] = "screenlock-icon";
286 const char kChromeUISetTimeHost[] = "set-time";
287 const char kChromeUISimUnlockHost[] = "sim-unlock";
288 const char kChromeUISlideshowHost[] = "slideshow";
289 const char kChromeUISlowHost[] = "slow";
290 const char kChromeUISlowTraceHost[] = "slow_trace";
291 const char kChromeUIUserImageHost[] = "userimage";
293 const char kChromeUIMenu[] = "menu";
294 const char kChromeUINetworkMenu[] = "network-menu";
295 const char kChromeUIWrenchMenu[] = "wrench-menu";
297 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
298 const char kOemEulaURLPath[] = "oem";
299 const char kOnlineEulaURLPath[] =
300 "https://www.google.com/intl/%s/chrome/eula_text.html";
301 #endif
303 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
304 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
305 #endif
307 #if defined(ENABLE_WEBRTC)
308 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs";
309 #endif
311 // Option sub pages.
312 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
313 // listed by the built-in AutocompleteProvider.
314 const char kAutofillSubPage[] = "autofill";
315 const char kClearBrowserDataSubPage[] = "clearBrowserData";
316 const char kContentSettingsExceptionsSubPage[] = "contentExceptions";
317 const char kContentSettingsSubPage[] = "content";
318 const char kCreateProfileSubPage[] = "createProfile";
319 const char kExtensionsSubPage[] = "extensions";
320 const char kHandlerSettingsSubPage[] = "handlers";
321 const char kImportDataSubPage[] = "importData";
322 const char kLanguageOptionsSubPage[] = "languages";
323 const char kManagedUserSettingsSubPage[] = "managedUser";
324 const char kManageProfileSubPage[] = "manageProfile";
325 const char kPasswordManagerSubPage[] = "passwords";
326 const char kResetProfileSettingsSubPage[] = "resetProfileSettings";
327 const char kSearchEnginesSubPage[] = "searchEngines";
328 const char kSearchSubPage[] = "search";
329 const char kSearchUsersSubPage[] = "search#Users";
330 const char kSyncSetupSubPage[] = "syncSetup";
331 #if defined(OS_CHROMEOS)
332 const char kInternetOptionsSubPage[] = "internet";
333 const char kBluetoothAddDeviceSubPage[] = "bluetooth";
334 const char kChangeProfilePictureSubPage[] = "changePicture";
335 #endif
337 // Extension sub pages.
338 const char kExtensionConfigureCommandsSubPage[] = "configureCommands";
340 const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
341 const char kExtensionResourceInvalidRequestURL[] =
342 "chrome-extension-resource://invalid/";
344 const char kSyncGoogleDashboardURL[] =
345 "https://www.google.com/settings/chrome/sync/";
347 const char kAutoPasswordGenerationLearnMoreURL[] =
348 "https://support.google.com/chrome/?p=ui_generate_password";
350 const char kPasswordManagerLearnMoreURL[] =
351 #if defined(OS_CHROMEOS)
352 "https://support.google.com/chromeos/?p=settings_password";
353 #else
354 "https://support.google.com/chrome/?p=settings_password";
355 #endif
357 const char kSettingsApiLearnMoreURL[] =
358 "https://support.google.com/chrome/?p=ui_settings_api_extension";
360 const char kChromeHelpViaKeyboardURL[] =
361 #if defined(OS_CHROMEOS)
362 #if defined(OFFICIAL_BUILD)
363 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
364 #else
365 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
366 #endif // defined(OFFICIAL_BUILD
367 #else
368 "https://support.google.com/chrome/?p=help&ctx=keyboard";
369 #endif // defined(OS_CHROMEOS)
371 const char kChromeHelpViaMenuURL[] =
372 #if defined(OS_CHROMEOS)
373 #if defined(OFFICIAL_BUILD)
374 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
375 #else
376 "https://support.google.com/chromeos/?p=help&ctx=menu";
377 #endif // defined(OFFICIAL_BUILD
378 #else
379 "https://support.google.com/chrome/?p=help&ctx=menu";
380 #endif // defined(OS_CHROMEOS)
382 const char kChromeHelpViaWebUIURL[] =
383 #if defined(OS_CHROMEOS)
384 #if defined(OFFICIAL_BUILD)
385 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
386 #else
387 "https://support.google.com/chromeos/?p=help&ctx=settings";
388 #endif // defined(OFFICIAL_BUILD
389 #else
390 "https://support.google.com/chrome/?p=help&ctx=settings";
391 #endif // defined(OS_CHROMEOS)
393 #if defined(OS_CHROMEOS)
394 const char kChromeAccessibilityHelpURL[] =
395 "https://support.google.com/chromeos/?p=accessibility_menu";
396 const char kChromeAccessibilitySettingsURL[] =
397 "/chromevox/background/options.html";
398 #endif // defined(OS_CHROMEOS)
400 #if defined(ENABLE_ONE_CLICK_SIGNIN)
401 const char kChromeSyncLearnMoreURL[] =
402 "http://support.google.com/chrome/bin/answer.py?answer=165139";
404 const char kChromeSyncMergeTroubleshootingURL[] =
405 "https://support.google.com/chrome/answer/1181420#merge";
406 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
408 const char kChromeEnterpriseSignInLearnMoreURL[] =
409 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
411 const char kResetProfileSettingsLearnMoreURL[] =
412 "https://support.google.com/chrome/?p=ui_reset_settings";
414 const char kAutomaticSettingsResetLearnMoreURL[] =
415 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
417 const char kSupervisedUserManagementURL[] = "https://www.chrome.com/manage";
419 const char kSupervisedUserManagementDisplayURL[] = "www.chrome.com/manage";
421 const char kSettingsSearchHelpURL[] =
422 #if defined(OS_CHROMEOS)
423 "https://support.google.com/chromeos/?p=settings_search_help";
424 #else
425 "https://support.google.com/chrome/?p=settings_search_help";
426 #endif
428 const char kAboutGoogleTranslateURL[] =
429 #if defined(OS_CHROMEOS)
430 "https://support.google.com/chromeos/?p=ib_translation_bar";
431 #else
432 "https://support.google.com/chrome/?p=ib_translation_bar";
433 #endif
435 const char kOmniboxLearnMoreURL[] =
436 #if defined(OS_CHROMEOS)
437 "https://support.google.com/chromeos/?p=settings_omnibox";
438 #else
439 "https://support.google.com/chrome/?p=settings_omnibox";
440 #endif
442 const char kPageInfoHelpCenterURL[] =
443 #if defined(OS_CHROMEOS)
444 "https://support.google.com/chromeos/?p=ui_security_indicator";
445 #else
446 "https://support.google.com/chrome/?p=ui_security_indicator";
447 #endif
449 const char kCrashReasonURL[] =
450 #if defined(OS_CHROMEOS)
451 "https://support.google.com/chromeos/?p=e_awsnap";
452 #else
453 "https://support.google.com/chrome/?p=e_awsnap";
454 #endif
456 const char kKillReasonURL[] =
457 #if defined(OS_CHROMEOS)
458 "https://support.google.com/chromeos/?p=e_deadjim";
459 #else
460 "https://support.google.com/chrome/?p=e_deadjim";
461 #endif
463 const char kPrivacyLearnMoreURL[] =
464 #if defined(OS_CHROMEOS)
465 "https://support.google.com/chromeos/?p=settings_privacy";
466 #else
467 "https://support.google.com/chrome/?p=settings_privacy";
468 #endif
470 const char kDoNotTrackLearnMoreURL[] =
471 #if defined(OS_CHROMEOS)
472 "https://support.google.com/chromeos/?p=settings_do_not_track";
473 #else
474 "https://support.google.com/chrome/?p=settings_do_not_track";
475 #endif
477 #if defined(OS_CHROMEOS)
478 const char kAttestationForContentProtectionLearnMoreURL[] =
479 "https://support.google.com/chromebook/?p=verified_access";
481 const char kEnhancedPlaybackNotificationLearnMoreURL[] =
482 "https://support.google.com/chromebook/?p=enhanced_playback";
483 #endif
485 const char kChromiumProjectURL[] = "http://www.chromium.org/";
487 const char kLearnMoreReportingURL[] =
488 "https://support.google.com/chrome/?p=ui_usagestat";
490 const char kOutdatedPluginLearnMoreURL[] =
491 "https://support.google.com/chrome/?p=ib_outdated_plugin";
493 const char kBlockedPluginLearnMoreURL[] =
494 "https://support.google.com/chrome/?p=ib_blocked_plugin";
496 const char kSpeechInputAboutURL[] =
497 "https://support.google.com/chrome/?p=ui_speech_input";
499 const char kHotwordLearnMoreURL[] =
500 "https://support.google.com/chrome/?p=ui_hotword_search";
502 const char kLearnMoreRegisterProtocolHandlerURL[] =
503 "https://support.google.com/chrome/?p=ib_protocol_handler";
505 const char kSyncLearnMoreURL[] =
506 "https://support.google.com/chrome/?p=settings_sign_in";
508 const char kDownloadScanningLearnMoreURL[] =
509 "https://support.google.com/chrome/?p=ib_download_blocked";
511 const char kDownloadInterruptedLearnMoreURL[] =
512 "https://support.google.com/chrome/?p=ui_download_errors";
514 const char kSyncEverythingLearnMoreURL[] =
515 "https://support.google.com/chrome/?p=settings_sync_all";
517 const char kCloudPrintLearnMoreURL[] =
518 #if defined(OS_CHROMEOS)
519 "https://support.google.com/chromeos/?p=settings_cloud_print";
520 #else
521 "https://support.google.com/chrome/?p=settings_cloud_print";
522 #endif
524 const char kCloudPrintNoDestinationsLearnMoreURL[] =
525 "https://www.google.com/cloudprint/learn/";
527 const char kAppLauncherHelpURL[] =
528 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
530 const char kSyncEncryptionHelpURL[] =
531 #if defined(OS_CHROMEOS)
532 "https://support.google.com/chromeos/?p=settings_encryption";
533 #else
534 "https://support.google.com/chrome/?p=settings_encryption";
535 #endif
537 const char kSyncErrorsHelpURL[] =
538 "https://support.google.com/chrome/?p=settings_sync_error";
540 #if defined(OS_CHROMEOS)
541 const char kNaturalScrollHelpURL[] =
542 "https://support.google.com/chromeos/?p=simple_scrolling";
543 #endif
545 #if defined(OS_CHROMEOS)
546 const char kLearnMoreEnterpriseURL[] =
547 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
548 #endif
550 const char kRemoveNonCWSExtensionURL[] =
551 "https://support.google.com/chrome/answer/2811969?"
552 "p=ui_remove_non_cws_extensions&rd=1";
554 const char kNotificationsHelpURL[] =
555 "https://support.google.com/chrome/?p=ui_notifications";
557 const char kNotificationWelcomeLearnMoreURL[] =
558 "https://support.google.com/chrome/?p=ib_google_now_welcome";
560 // Add hosts here to be included in chrome://chrome-urls (about:about).
561 // These hosts will also be suggested by BuiltinProvider.
562 const char* const kChromeHostURLs[] = {
563 kChromeUICacheHost,
564 kChromeUIChromeURLsHost,
565 kChromeUIComponentsHost,
566 kChromeUICrashesHost,
567 kChromeUICreditsHost,
568 #if defined(ENABLE_SERVICE_DISCOVERY)
569 kChromeUIDevicesHost,
570 #endif
571 kChromeUIDNSHost,
572 kChromeUIFlagsHost,
573 kChromeUIGCMInternalsHost,
574 kChromeUIHelpHost,
575 kChromeUIHistoryHost,
576 kChromeUIInvalidationsHost,
577 kChromeUIIPCHost,
578 kChromeUIMemoryHost,
579 kChromeUIMemoryInternalsHost,
580 #if defined(OS_ANDROID) || defined(OS_IOS)
581 kChromeUINetExportHost,
582 #endif
583 kChromeUINetInternalsHost,
584 kChromeUINewTabHost,
585 kChromeUIOmniboxHost,
586 kChromeUIPredictorsHost,
587 kChromeUIProfilerHost,
588 kChromeUIQuotaInternalsHost,
589 kChromeUISignInInternalsHost,
590 kChromeUIStatsHost,
591 kChromeUISyncInternalsHost,
592 kChromeUISystemInfoHost,
593 kChromeUITermsHost,
594 kChromeUITranslateInternalsHost,
595 kChromeUIUberHost,
596 kChromeUIUserActionsHost,
597 kChromeUIVersionHost,
598 #if defined(OS_ANDROID)
599 kChromeUIWelcomeHost,
600 #else
601 kChromeUIAppLauncherPageHost,
602 kChromeUIBookmarksHost,
603 kChromeUIDownloadsHost,
604 kChromeUIFlashHost,
605 kChromeUIInspectHost,
606 kChromeUIPluginsHost,
607 kChromeUISettingsHost,
608 #endif
609 #if defined(OS_WIN)
610 kChromeUIConflictsHost,
611 #endif
612 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
613 kChromeUILinuxProxyConfigHost,
614 kChromeUISandboxHost,
615 #endif
616 #if defined(OS_CHROMEOS)
617 kChromeUICertificateManagerHost,
618 kChromeUIChooseMobileNetworkHost,
619 kChromeUICryptohomeHost,
620 kChromeUIDiscardsHost,
621 kChromeUIDriveInternalsHost,
622 kChromeUIFirstRunHost,
623 kChromeUIImageBurnerHost,
624 kChromeUIKeyboardOverlayHost,
625 kChromeUILoginHost,
626 kChromeUINetworkHost,
627 kChromeUIOobeHost,
628 kChromeUIOSCreditsHost,
629 kChromeUIPowerHost,
630 kChromeUIProxySettingsHost,
631 kChromeUITaskManagerHost,
632 #endif
633 #if !defined(DISABLE_NACL)
634 kChromeUINaClHost,
635 #endif
636 #if defined(ENABLE_CONFIGURATION_POLICY)
637 kChromeUIPolicyHost,
638 #endif
639 #if defined(ENABLE_EXTENSIONS)
640 kChromeUIExtensionsHost,
641 #endif
642 #if defined(ENABLE_FULL_PRINTING)
643 kChromeUIPrintHost,
644 #endif
645 content::kChromeUIAccessibilityHost,
646 content::kChromeUIAppCacheInternalsHost,
647 content::kChromeUIBlobInternalsHost,
648 content::kChromeUIGpuHost,
649 content::kChromeUIHistogramHost,
650 content::kChromeUIIndexedDBInternalsHost,
651 content::kChromeUIMediaInternalsHost,
652 content::kChromeUINetworkViewCacheHost,
653 content::kChromeUIServiceWorkerInternalsHost,
654 content::kChromeUITracingHost,
655 content::kChromeUIWebRTCInternalsHost,
656 #if defined(ENABLE_WEBRTC)
657 kChromeUIWebRtcLogsHost,
658 #endif
660 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs);
662 const char* const kChromeDebugURLs[] = {
663 content::kChromeUICrashURL,
664 content::kChromeUIKillURL,
665 content::kChromeUIHangURL,
666 content::kChromeUIShorthangURL,
667 content::kChromeUIGpuCleanURL,
668 content::kChromeUIGpuCrashURL,
669 content::kChromeUIGpuHangURL,
670 content::kChromeUIPpapiFlashCrashURL,
671 content::kChromeUIPpapiFlashHangURL,
672 chrome::kChromeUIQuitURL,
673 chrome::kChromeUIRestartURL
675 const int kNumberOfChromeDebugURLs =
676 static_cast<int>(arraysize(kChromeDebugURLs));
678 const char kChromeNativeScheme[] = "chrome-native";
680 const char kChromeSearchScheme[] = "chrome-search";
681 const char kChromeSearchLocalNtpHost[] = "local-ntp";
682 const char kChromeSearchLocalNtpUrl[] =
683 "chrome-search://local-ntp/local-ntp.html";
684 const char kChromeSearchRemoteNtpHost[] = "remote-ntp";
686 const char kChromeSearchMostVisitedHost[] = "most-visited";
687 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/";
689 const char kDomDistillerScheme[] = "chrome-distiller";
691 // Google SafeSearch query parameters.
692 const char kSafeSearchSafeParameter[] = "safe=active";
693 const char kSafeSearchSsuiParameter[] = "ssui=on";
695 const char kMediaAccessLearnMoreUrl[] =
696 "https://support.google.com/chrome/?p=ib_access_cam_mic";
698 const char kLanguageSettingsLearnMoreUrl[] =
699 #if defined(OS_CHROMEOS)
700 "https://support.google.com/chromebook/answer/1059490";
701 #else
702 "https://support.google.com/chrome/topic/1678461";
703 #endif
705 #if defined(OS_MACOSX)
706 const char kMac32BitDeprecationURL[] =
707 #if !defined(ARCH_CPU_64_BITS)
708 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
709 #else
711 #endif
712 #endif
714 // TODO(tengs): Replace with real URL when ready.
715 const char kEasyUnlockLearnMoreUrl[] =
716 "https://support.google.com/chromebook/?p=easy_unlock";
717 const char kEasyUnlockManagementUrl[] = "https://chrome.com";
719 } // namespace chrome