1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/common/url_constants.h"
9 #include "base/basictypes.h"
10 #include "content/public/common/url_constants.h"
11 #include "url/url_util.h"
15 #if defined(OS_CHROMEOS)
16 const char kCrosScheme
[] = "cros";
17 const char kDriveScheme
[] = "drive";
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 kChromeUIWelcomeURL
[] = "chrome://welcome/";
99 #if defined(OS_CHROMEOS)
100 const char kChromeUIActivationMessage
[] = "chrome://activationmessage/";
101 const char kChromeUIBluetoothPairingURL
[] = "chrome://bluetooth-pairing/";
102 const char kChromeUICertificateManagerDialogURL
[] =
103 "chrome://certificate-manager/";
104 const char kChromeUIChargerReplacementURL
[] = "chrome://charger-replacement/";
105 const char kChromeUIChooseMobileNetworkURL
[] =
106 "chrome://choose-mobile-network/";
107 const char kChromeUIDiscardsURL
[] = "chrome://discards/";
108 const char kChromeUIFirstRunURL
[] = "chrome://first-run/";
109 const char kChromeUIIdleLogoutDialogURL
[] = "chrome://idle-logout/";
110 const char kChromeUIImageBurnerURL
[] = "chrome://imageburner/";
111 const char kChromeUIKeyboardOverlayURL
[] = "chrome://keyboardoverlay/";
112 const char kChromeUILockScreenURL
[] = "chrome://lock/";
113 const char kChromeUIMediaplayerURL
[] = "chrome://mediaplayer/";
114 const char kChromeUIMobileSetupURL
[] = "chrome://mobilesetup/";
115 const char kChromeUINfcDebugURL
[] = "chrome://nfc-debug/";
116 const char kChromeUIOobeURL
[] = "chrome://oobe/";
117 const char kChromeUIOSCreditsURL
[] = "chrome://os-credits/";
118 const char kChromeUIProxySettingsURL
[] = "chrome://proxy-settings/";
119 const char kChromeUIScreenlockIconURL
[] = "chrome://screenlock-icon/";
120 const char kChromeUISimUnlockURL
[] = "chrome://sim-unlock/";
121 const char kChromeUISlideshowURL
[] = "chrome://slideshow/";
122 const char kChromeUISlowURL
[] = "chrome://slow/";
123 const char kChromeUISystemInfoURL
[] = "chrome://system/";
124 const char kChromeUITermsOemURL
[] = "chrome://terms/oem";
125 const char kChromeUIUserImageURL
[] = "chrome://userimage/";
128 #if defined(USE_AURA)
129 const char kChromeUIGestureConfigURL
[] = "chrome://gesture/";
130 const char kChromeUIGestureConfigHost
[] = "gesture";
131 const char kChromeUISalsaURL
[] = "chrome://salsa/";
132 const char kChromeUISalsaHost
[] = "salsa";
135 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
136 const char kChromeUITabModalConfirmDialogURL
[] =
137 "chrome://tab-modal-confirm-dialog/";
140 #if defined(ENABLE_WEBRTC)
141 const char kChromeUIWebRtcLogsURL
[] = "chrome://webrtc-logs/";
144 // Add Chrome UI hosts here, in alphabetical order.
145 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
146 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
147 const char kChromeUIAboutHost
[] = "about";
148 const char kChromeUIBlankHost
[] = "blank";
149 const char kChromeUIAppLauncherPageHost
[] = "apps";
150 const char kChromeUIAppListStartPageHost
[] = "app-list";
151 const char kChromeUIBookmarksHost
[] = "bookmarks";
152 const char kChromeUICacheHost
[] = "cache";
153 const char kChromeUICertificateViewerHost
[] = "view-cert";
154 const char kChromeUICertificateViewerDialogHost
[] = "view-cert-dialog";
155 const char kChromeUIChromeSigninHost
[] = "chrome-signin";
156 const char kChromeUIChromeURLsHost
[] = "chrome-urls";
157 const char kChromeUICloudPrintResourcesHost
[] = "cloudprintresources";
158 const char kChromeUICloudPrintSetupHost
[] = "cloudprintsetup";
159 const char kChromeUIConflictsHost
[] = "conflicts";
160 const char kChromeUIConstrainedHTMLTestHost
[] = "constrained-test";
161 const char kChromeUICrashesHost
[] = "crashes";
162 const char kChromeUICrashHost
[] = "crash";
163 const char kChromeUICreditsHost
[] = "credits";
164 const char kChromeUIDefaultHost
[] = "version";
165 const char kChromeUIDevicesHost
[] = "devices";
166 const char kChromeUIDevToolsHost
[] = "devtools";
167 const char kChromeUIDevToolsBundledPath
[] = "bundled";
168 const char kChromeUIDevToolsRemotePath
[] = "remote";
169 const char kChromeUIDNSHost
[] = "dns";
170 const char kChromeUIDownloadsHost
[] = "downloads";
171 const char kChromeUIDriveInternalsHost
[] = "drive-internals";
172 const char kChromeUIEditSearchEngineDialogHost
[] = "editsearchengine";
173 const char kChromeUIExtensionIconHost
[] = "extension-icon";
174 const char kChromeUIExtensionInfoHost
[] = "extension-info";
175 const char kChromeUIExtensionsFrameHost
[] = "extensions-frame";
176 const char kChromeUIExtensionsHost
[] = "extensions";
177 const char kChromeUIFaviconHost
[] = "favicon";
178 const char kChromeUIFeedbackHost
[] = "feedback";
179 const char kChromeUIFlagsHost
[] = "flags";
180 const char kChromeUIFlashHost
[] = "flash";
181 const char kChromeUIGCMInternalsHost
[] = "gcm-internals";
182 const char kChromeUIHangHost
[] = "hang";
183 const char kChromeUIHelpFrameHost
[] = "help-frame";
184 const char kChromeUIHelpHost
[] = "help";
185 const char kChromeUIHistoryHost
[] = "history";
186 const char kChromeUIHistoryFrameHost
[] = "history-frame";
187 const char kChromeUIIdentityInternalsHost
[] = "identity-internals";
188 const char kChromeUIInspectHost
[] = "inspect";
189 const char kChromeUIInstantHost
[] = "instant";
190 const char kChromeUIInvalidationsHost
[] = "invalidations";
191 const char kChromeUIIPCHost
[] = "ipc";
192 const char kChromeUIKillHost
[] = "kill";
193 const char kChromeUIManagedUserPassphrasePageHost
[] = "managed-user-passphrase";
194 const char kChromeUIMemoryHost
[] = "memory";
195 const char kChromeUIMemoryInternalsHost
[] = "memory-internals";
196 const char kChromeUIMemoryRedirectHost
[] = "memory-redirect";
197 const char kChromeUIMetroFlowHost
[] = "make-metro";
198 const char kChromeUINaClHost
[] = "nacl";
199 const char kChromeUINetExportHost
[] = "net-export";
200 const char kChromeUINetInternalsHost
[] = "net-internals";
201 const char kChromeUINewTabHost
[] = "newtab";
202 const char kChromeUIOmniboxHost
[] = "omnibox";
203 const char kChromeUIPasswordManagerInternalsHost
[] =
204 "password-manager-internals";
205 const char kChromeUIPerformanceMonitorHost
[] = "performance";
206 const char kChromeUIPluginsHost
[] = "plugins";
207 const char kChromeUIComponentsHost
[] = "components";
208 const char kChromeUIPolicyHost
[] = "policy";
209 const char kChromeUIProfileSigninConfirmationHost
[] =
210 "profile-signin-confirmation";
211 const char kChromeUIUserManagerHost
[] = "user-manager";
212 const char kChromeUIPredictorsHost
[] = "predictors";
213 const char kChromeUIPrintHost
[] = "print";
214 const char kChromeUIProfilerHost
[] = "profiler";
215 const char kChromeUIQuotaInternalsHost
[] = "quota-internals";
216 const char kChromeUIQuitHost
[] = "quit";
217 const char kChromeUIRestartHost
[] = "restart";
218 const char kChromeUISettingsHost
[] = "settings";
219 const char kChromeUISettingsFrameHost
[] = "settings-frame";
220 const char kChromeUIShorthangHost
[] = "shorthang";
221 const char kChromeUISignInInternalsHost
[] = "signin-internals";
222 const char kChromeUISuggestionsHost
[] = "suggestions";
223 const char kChromeUISuggestionsInternalsHost
[] = "suggestions-internals";
224 const char kChromeUISSLClientCertificateSelectorHost
[] = "select-cert";
225 const char kChromeUIStatsHost
[] = "stats";
226 const char kChromeUISyncHost
[] = "sync";
227 const char kChromeUISyncFileSystemInternalsHost
[] = "syncfs-internals";
228 const char kChromeUISyncInternalsHost
[] = "sync-internals";
229 const char kChromeUISyncResourcesHost
[] = "syncresources";
230 const char kChromeUISystemInfoHost
[] = "system";
231 const char kChromeUITaskManagerHost
[] = "tasks";
232 const char kChromeUITermsHost
[] = "terms";
233 const char kChromeUIThemeHost
[] = "theme";
234 const char kChromeUIThumbnailHost
[] = "thumb";
235 const char kChromeUIThumbnailHost2
[] = "thumb2";
236 const char kChromeUIThumbnailListHost
[] = "thumbnails";
237 const char kChromeUITouchIconHost
[] = "touch-icon";
238 const char kChromeUITranslateInternalsHost
[] = "translate-internals";
239 const char kChromeUIUberFrameHost
[] = "uber-frame";
240 const char kChromeUIUberHost
[] = "chrome";
241 const char kChromeUIUserActionsHost
[] = "user-actions";
242 const char kChromeUIVersionHost
[] = "version";
243 const char kChromeUIWorkersHost
[] = "workers";
245 const char kChromeUIScreenshotPath
[] = "screenshots";
246 const char kChromeUIThemePath
[] = "theme";
248 #if defined(OS_ANDROID)
249 const char kChromeUIWelcomeHost
[] = "welcome";
252 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
253 const char kChromeUILinuxProxyConfigHost
[] = "linux-proxy-config";
254 const char kChromeUISandboxHost
[] = "sandbox";
257 #if defined(OS_CHROMEOS)
258 const char kChromeUIActivationMessageHost
[] = "activationmessage";
259 const char kChromeUIAppLaunchHost
[] = "app-launch";
260 const char kChromeUIBluetoothPairingHost
[] = "bluetooth-pairing";
261 const char kChromeUICertificateManagerHost
[] = "certificate-manager";
262 const char kChromeUIChargerReplacementHost
[] = "charger-replacement";
263 const char kChromeUIChooseMobileNetworkHost
[] = "choose-mobile-network";
264 const char kChromeUICryptohomeHost
[] = "cryptohome";
265 const char kChromeUIDiscardsHost
[] = "discards";
266 const char kChromeUIFirstRunHost
[] = "first-run";
267 const char kChromeUIIdleLogoutDialogHost
[] = "idle-logout";
268 const char kChromeUIImageBurnerHost
[] = "imageburner";
269 const char kChromeUIKeyboardOverlayHost
[] = "keyboardoverlay";
270 const char kChromeUILockScreenHost
[] = "lock";
271 const char kChromeUILoginContainerHost
[] = "login-container";
272 const char kChromeUILoginHost
[] = "login";
273 const char kChromeUIMediaplayerHost
[] = "mediaplayer";
274 const char kChromeUIMobileSetupHost
[] = "mobilesetup";
275 const char kChromeUINfcDebugHost
[] = "nfc-debug";
276 const char kChromeUINetworkHost
[] = "network";
277 const char kChromeUIOobeHost
[] = "oobe";
278 const char kChromeUIOSCreditsHost
[] = "os-credits";
279 const char kChromeUIPowerHost
[] = "power";
280 const char kChromeUIProxySettingsHost
[] = "proxy-settings";
281 const char kChromeUIRotateHost
[] = "rotate";
282 const char kChromeUIScreenlockIconHost
[] = "screenlock-icon";
283 const char kChromeUISimUnlockHost
[] = "sim-unlock";
284 const char kChromeUISlideshowHost
[] = "slideshow";
285 const char kChromeUISlowHost
[] = "slow";
286 const char kChromeUISlowTraceHost
[] = "slow_trace";
287 const char kChromeUIUserImageHost
[] = "userimage";
289 const char kChromeUIMenu
[] = "menu";
290 const char kChromeUINetworkMenu
[] = "network-menu";
291 const char kChromeUIWrenchMenu
[] = "wrench-menu";
293 const char kEULAPathFormat
[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
294 const char kOemEulaURLPath
[] = "oem";
295 const char kOnlineEulaURLPath
[] =
296 "https://www.google.com/intl/%s/chrome/eula_text.html";
299 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
300 const char kChromeUITabModalConfirmDialogHost
[] = "tab-modal-confirm-dialog";
303 #if defined(ENABLE_WEBRTC)
304 const char kChromeUIWebRtcLogsHost
[] = "webrtc-logs";
308 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
309 // listed by the built-in AutocompleteProvider.
310 const char kAutofillSubPage
[] = "autofill";
311 const char kClearBrowserDataSubPage
[] = "clearBrowserData";
312 const char kContentSettingsExceptionsSubPage
[] = "contentExceptions";
313 const char kContentSettingsSubPage
[] = "content";
314 const char kCreateProfileSubPage
[] = "createProfile";
315 const char kExtensionsSubPage
[] = "extensions";
316 const char kHandlerSettingsSubPage
[] = "handlers";
317 const char kImportDataSubPage
[] = "importData";
318 const char kLanguageOptionsSubPage
[] = "languages";
319 const char kManagedUserSettingsSubPage
[] = "managedUser";
320 const char kManageProfileSubPage
[] = "manageProfile";
321 const char kPasswordManagerSubPage
[] = "passwords";
322 const char kResetProfileSettingsSubPage
[] = "resetProfileSettings";
323 const char kSearchEnginesSubPage
[] = "searchEngines";
324 const char kSearchSubPage
[] = "search";
325 const char kSearchUsersSubPage
[] = "search#Users";
326 const char kSyncSetupSubPage
[] = "syncSetup";
327 #if defined(OS_CHROMEOS)
328 const char kInternetOptionsSubPage
[] = "internet";
329 const char kBluetoothAddDeviceSubPage
[] = "bluetooth";
330 const char kChangeProfilePictureSubPage
[] = "changePicture";
333 // Extension sub pages.
334 const char kExtensionConfigureCommandsSubPage
[] = "configureCommands";
336 const char kExtensionInvalidRequestURL
[] = "chrome-extension://invalid/";
337 const char kExtensionResourceInvalidRequestURL
[] =
338 "chrome-extension-resource://invalid/";
340 const char kSyncGoogleDashboardURL
[] =
341 "https://www.google.com/settings/chrome/sync/";
343 const char kAutoPasswordGenerationLearnMoreURL
[] =
344 "https://support.google.com/chrome/?p=ui_generate_password";
346 const char kPasswordManagerLearnMoreURL
[] =
347 #if defined(OS_CHROMEOS)
348 "https://support.google.com/chromeos/?p=settings_password";
350 "https://support.google.com/chrome/?p=settings_password";
353 const char kSettingsApiLearnMoreURL
[] =
354 "https://support.google.com/chrome/?p=ui_settings_api_extension";
356 const char kChromeHelpViaKeyboardURL
[] =
357 #if defined(OS_CHROMEOS)
358 #if defined(OFFICIAL_BUILD)
359 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
361 "https://support.google.com/chromeos/?p=help&ctx=keyboard";
362 #endif // defined(OFFICIAL_BUILD
364 "https://support.google.com/chrome/?p=help&ctx=keyboard";
365 #endif // defined(OS_CHROMEOS)
367 const char kChromeHelpViaMenuURL
[] =
368 #if defined(OS_CHROMEOS)
369 #if defined(OFFICIAL_BUILD)
370 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
372 "https://support.google.com/chromeos/?p=help&ctx=menu";
373 #endif // defined(OFFICIAL_BUILD
375 "https://support.google.com/chrome/?p=help&ctx=menu";
376 #endif // defined(OS_CHROMEOS)
378 const char kChromeHelpViaWebUIURL
[] =
379 #if defined(OS_CHROMEOS)
380 #if defined(OFFICIAL_BUILD)
381 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html";
383 "https://support.google.com/chromeos/?p=help&ctx=settings";
384 #endif // defined(OFFICIAL_BUILD
386 "https://support.google.com/chrome/?p=help&ctx=settings";
387 #endif // defined(OS_CHROMEOS)
389 #if defined(OS_CHROMEOS)
390 const char kChromeAccessibilityHelpURL
[] =
391 "https://support.google.com/chromeos/?p=accessibility_menu";
392 const char kChromeAccessibilitySettingsURL
[] =
393 "/chromevox/background/options.html";
394 #endif // defined(OS_CHROMEOS)
396 #if defined(ENABLE_ONE_CLICK_SIGNIN)
397 const char kChromeSyncLearnMoreURL
[] =
398 "http://support.google.com/chrome/bin/answer.py?answer=165139";
400 const char kChromeSyncMergeTroubleshootingURL
[] =
401 "https://support.google.com/chrome/answer/1181420#merge";
402 #endif // defined(ENABLE_ONE_CLICK_SIGNIN)
404 const char kChromeEnterpriseSignInLearnMoreURL
[] =
405 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549";
407 const char kResetProfileSettingsLearnMoreURL
[] =
408 "https://support.google.com/chrome/?p=ui_reset_settings";
410 const char kAutomaticSettingsResetLearnMoreURL
[] =
411 "https://support.google.com/chrome/?p=ui_automatic_settings_reset";
413 const char kSupervisedUserManagementURL
[] = "https://www.chrome.com/manage";
415 const char kSupervisedUserManagementDisplayURL
[] = "www.chrome.com/manage";
417 const char kSettingsSearchHelpURL
[] =
418 #if defined(OS_CHROMEOS)
419 "https://support.google.com/chromeos/?p=settings_search_help";
421 "https://support.google.com/chrome/?p=settings_search_help";
424 const char kAboutGoogleTranslateURL
[] =
425 #if defined(OS_CHROMEOS)
426 "https://support.google.com/chromeos/?p=ib_translation_bar";
428 "https://support.google.com/chrome/?p=ib_translation_bar";
431 const char kOmniboxLearnMoreURL
[] =
432 #if defined(OS_CHROMEOS)
433 "https://support.google.com/chromeos/?p=settings_omnibox";
435 "https://support.google.com/chrome/?p=settings_omnibox";
438 const char kPageInfoHelpCenterURL
[] =
439 #if defined(OS_CHROMEOS)
440 "https://support.google.com/chromeos/?p=ui_security_indicator";
442 "https://support.google.com/chrome/?p=ui_security_indicator";
445 const char kCrashReasonURL
[] =
446 #if defined(OS_CHROMEOS)
447 "https://support.google.com/chromeos/?p=e_awsnap";
449 "https://support.google.com/chrome/?p=e_awsnap";
452 const char kKillReasonURL
[] =
453 #if defined(OS_CHROMEOS)
454 "https://support.google.com/chromeos/?p=e_deadjim";
456 "https://support.google.com/chrome/?p=e_deadjim";
459 const char kPrivacyLearnMoreURL
[] =
460 #if defined(OS_CHROMEOS)
461 "https://support.google.com/chromeos/?p=settings_privacy";
463 "https://support.google.com/chrome/?p=settings_privacy";
466 const char kDoNotTrackLearnMoreURL
[] =
467 #if defined(OS_CHROMEOS)
468 "https://support.google.com/chromeos/?p=settings_do_not_track";
470 "https://support.google.com/chrome/?p=settings_do_not_track";
473 #if defined(OS_CHROMEOS)
474 const char kAttestationForContentProtectionLearnMoreURL
[] =
475 "https://support.google.com/chromebook/?p=verified_access";
477 const char kEnhancedPlaybackNotificationLearnMoreURL
[] =
478 "https://support.google.com/chromebook/?p=enhanced_playback";
481 const char kChromiumProjectURL
[] = "http://www.chromium.org/";
483 const char kLearnMoreReportingURL
[] =
484 "https://support.google.com/chrome/?p=ui_usagestat";
486 const char kOutdatedPluginLearnMoreURL
[] =
487 "https://support.google.com/chrome/?p=ib_outdated_plugin";
489 const char kBlockedPluginLearnMoreURL
[] =
490 "https://support.google.com/chrome/?p=ib_blocked_plugin";
492 const char kSpeechInputAboutURL
[] =
493 "https://support.google.com/chrome/?p=ui_speech_input";
495 const char kHotwordLearnMoreURL
[] =
496 "https://support.google.com/chrome/?p=ui_hotword_search";
498 const char kLearnMoreRegisterProtocolHandlerURL
[] =
499 "https://support.google.com/chrome/?p=ib_protocol_handler";
501 const char kSyncLearnMoreURL
[] =
502 "https://support.google.com/chrome/?p=settings_sign_in";
504 const char kDownloadScanningLearnMoreURL
[] =
505 "https://support.google.com/chrome/?p=ib_download_blocked";
507 const char kDownloadInterruptedLearnMoreURL
[] =
508 "https://support.google.com/chrome/?p=ui_download_errors";
510 const char kSyncEverythingLearnMoreURL
[] =
511 "https://support.google.com/chrome/?p=settings_sync_all";
513 const char kCloudPrintLearnMoreURL
[] =
514 #if defined(OS_CHROMEOS)
515 "https://support.google.com/chromeos/?p=settings_cloud_print";
517 "https://support.google.com/chrome/?p=settings_cloud_print";
520 const char kCloudPrintNoDestinationsLearnMoreURL
[] =
521 "https://www.google.com/cloudprint/learn/";
523 const char kAppLauncherHelpURL
[] =
524 "https://support.google.com/chrome_webstore/?p=cws_app_launcher";
526 const char kSyncEncryptionHelpURL
[] =
527 #if defined(OS_CHROMEOS)
528 "https://support.google.com/chromeos/?p=settings_encryption";
530 "https://support.google.com/chrome/?p=settings_encryption";
533 const char kSyncErrorsHelpURL
[] =
534 "https://support.google.com/chrome/?p=settings_sync_error";
536 const char kEnterpriseManagedAccountHelpURL
[] =
537 "https://support.google.com/chromebook/answer/1331549";
539 #if defined(OS_CHROMEOS)
540 const char kNaturalScrollHelpURL
[] =
541 "https://support.google.com/chromeos/?p=simple_scrolling";
544 #if defined(OS_CHROMEOS)
545 const char kLearnMoreEnterpriseURL
[] =
546 "https://support.google.com/chromeos/bin/answer.py?answer=2535613";
549 const char kRemoveNonCWSExtensionURL
[] =
550 "https://support.google.com/chrome/answer/2811969?"
551 "p=ui_remove_non_cws_extensions&rd=1";
553 const char kNotificationsHelpURL
[] =
554 "https://support.google.com/chrome/?p=ui_notifications";
556 const char kNotificationWelcomeLearnMoreURL
[] =
557 "https://support.google.com/chrome/?p=ib_google_now_welcome";
559 // Add hosts here to be included in chrome://chrome-urls (about:about).
560 // These hosts will also be suggested by BuiltinProvider.
561 const char* const kChromeHostURLs
[] = {
563 kChromeUIChromeURLsHost
,
564 kChromeUIComponentsHost
,
565 kChromeUICrashesHost
,
566 kChromeUICreditsHost
,
567 #if defined(ENABLE_SERVICE_DISCOVERY)
568 kChromeUIDevicesHost
,
572 kChromeUIGCMInternalsHost
,
574 kChromeUIHistoryHost
,
575 kChromeUIInvalidationsHost
,
578 kChromeUIMemoryInternalsHost
,
579 #if defined(OS_ANDROID) || defined(OS_IOS)
580 kChromeUINetExportHost
,
582 kChromeUINetInternalsHost
,
584 kChromeUIOmniboxHost
,
585 kChromeUIPredictorsHost
,
586 kChromeUIProfilerHost
,
587 kChromeUIQuotaInternalsHost
,
588 kChromeUISignInInternalsHost
,
590 kChromeUISyncInternalsHost
,
591 kChromeUISystemInfoHost
,
593 kChromeUITranslateInternalsHost
,
595 kChromeUIUserActionsHost
,
596 kChromeUIVersionHost
,
597 #if defined(OS_ANDROID)
598 kChromeUIWelcomeHost
,
600 kChromeUIAppLauncherPageHost
,
601 kChromeUIBookmarksHost
,
602 kChromeUIDownloadsHost
,
604 kChromeUIInspectHost
,
605 kChromeUIPluginsHost
,
606 kChromeUISettingsHost
,
609 kChromeUIConflictsHost
,
611 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
612 kChromeUILinuxProxyConfigHost
,
613 kChromeUISandboxHost
,
615 #if defined(OS_CHROMEOS)
616 kChromeUICertificateManagerHost
,
617 kChromeUIChooseMobileNetworkHost
,
618 kChromeUICryptohomeHost
,
619 kChromeUIDiscardsHost
,
620 kChromeUIDriveInternalsHost
,
621 kChromeUIFirstRunHost
,
622 kChromeUIImageBurnerHost
,
623 kChromeUIKeyboardOverlayHost
,
625 kChromeUINetworkHost
,
627 kChromeUIOSCreditsHost
,
629 kChromeUIProxySettingsHost
,
630 kChromeUITaskManagerHost
,
632 #if !defined(DISABLE_NACL)
635 #if defined(ENABLE_CONFIGURATION_POLICY)
638 #if defined(ENABLE_EXTENSIONS)
639 kChromeUIExtensionsHost
,
641 #if defined(ENABLE_FULL_PRINTING)
644 content::kChromeUIAccessibilityHost
,
645 content::kChromeUIAppCacheInternalsHost
,
646 content::kChromeUIBlobInternalsHost
,
647 content::kChromeUIGpuHost
,
648 content::kChromeUIHistogramHost
,
649 content::kChromeUIIndexedDBInternalsHost
,
650 content::kChromeUIMediaInternalsHost
,
651 content::kChromeUINetworkViewCacheHost
,
652 content::kChromeUIServiceWorkerInternalsHost
,
653 content::kChromeUITracingHost
,
654 content::kChromeUIWebRTCInternalsHost
,
655 #if defined(ENABLE_WEBRTC)
656 kChromeUIWebRtcLogsHost
,
659 const size_t kNumberOfChromeHostURLs
= arraysize(kChromeHostURLs
);
661 const char* const kChromeDebugURLs
[] = {
662 content::kChromeUICrashURL
,
663 content::kChromeUIKillURL
,
664 content::kChromeUIHangURL
,
665 content::kChromeUIShorthangURL
,
666 content::kChromeUIGpuCleanURL
,
667 content::kChromeUIGpuCrashURL
,
668 content::kChromeUIGpuHangURL
,
669 content::kChromeUIPpapiFlashCrashURL
,
670 content::kChromeUIPpapiFlashHangURL
,
671 chrome::kChromeUIQuitURL
,
672 chrome::kChromeUIRestartURL
674 const int kNumberOfChromeDebugURLs
=
675 static_cast<int>(arraysize(kChromeDebugURLs
));
677 const char kChromeNativeScheme
[] = "chrome-native";
679 const char kChromeSearchScheme
[] = "chrome-search";
680 const char kChromeSearchLocalNtpHost
[] = "local-ntp";
681 const char kChromeSearchLocalNtpUrl
[] =
682 "chrome-search://local-ntp/local-ntp.html";
683 const char kChromeSearchRemoteNtpHost
[] = "remote-ntp";
685 const char kChromeSearchMostVisitedHost
[] = "most-visited";
686 const char kChromeSearchMostVisitedUrl
[] = "chrome-search://most-visited/";
688 const char kDomDistillerScheme
[] = "chrome-distiller";
690 // Google SafeSearch query parameters.
691 const char kSafeSearchSafeParameter
[] = "safe=active";
692 const char kSafeSearchSsuiParameter
[] = "ssui=on";
694 const char kMediaAccessLearnMoreUrl
[] =
695 "https://support.google.com/chrome/?p=ib_access_cam_mic";
697 const char kLanguageSettingsLearnMoreUrl
[] =
698 #if defined(OS_CHROMEOS)
699 "https://support.google.com/chromebook/answer/1059490";
701 "https://support.google.com/chrome/topic/1678461";
704 #if defined(OS_MACOSX)
705 const char kMac32BitDeprecationURL
[] =
706 #if !defined(ARCH_CPU_64_BITS)
707 "https://support.google.com/chrome/?p=ui_mac_32bit_support";
713 // TODO(tengs): Replace with real URL when ready.
714 const char kEasyUnlockLearnMoreUrl
[] =
715 "https://support.google.com/chromebook/?p=easy_unlock";
716 const char kEasyUnlockManagementUrl
[] = "https://chrome.com";
718 } // namespace chrome