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. 4 5 #include "chrome/common/url_constants.h" 6 7 #include <algorithm> 8 9 #include "base/basictypes.h" 10 #include "content/public/common/url_constants.h" 11 #include "url/url_util.h" 12 13 namespace chrome { 14 15 #if defined(OS_CHROMEOS) 16 const char kCrosScheme[] = "cros"; 17 const char kDriveScheme[] = "drive"; 18 #endif 19 20 const char kAboutPluginsURL[] = "about:plugins"; 21 const char kAboutVersionURL[] = "about:version"; 22 23 // Add Chrome UI URLs as necessary, in alphabetical order. 24 // Be sure to add the corresponding kChromeUI*Host constant below. 25 // This is a WebUI page that lists other WebUI pages. 26 const char kChromeUIAboutURL[] = "chrome://about/"; 27 const char kChromeUIAppsURL[] = "chrome://apps/"; 28 const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; 29 const char kChromeUICertificateViewerURL[] = "chrome://view-cert/"; 30 const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/"; 31 const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/"; 32 const char kChromeUIConflictsURL[] = "chrome://conflicts/"; 33 const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; 34 const char kChromeUICrashesURL[] = "chrome://crashes/"; 35 const char kChromeUICreditsURL[] = "chrome://credits/"; 36 const char kChromeUIDevicesURL[] = "chrome://devices/"; 37 const char kChromeUIDevToolsURL[] = 38 "chrome-devtools://devtools/bundled/devtools.html"; 39 const char kChromeUIDownloadsURL[] = "chrome://downloads/"; 40 const char kChromeUIEditSearchEngineDialogURL[] = "chrome://editsearchengine/"; 41 const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/"; 42 const char kChromeUIExtensionInfoURL[] = "chrome://extension-info/"; 43 const char kChromeUIExtensionsFrameURL[] = "chrome://extensions-frame/"; 44 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; 45 const char kChromeUIFaviconURL[] = "chrome://favicon/"; 46 const char kChromeUIFeedbackURL[] = "chrome://feedback/"; 47 const char kChromeUIFlagsURL[] = "chrome://flags/"; 48 const char kChromeUIFlashURL[] = "chrome://flash/"; 49 const char kChromeUIHelpFrameURL[] = "chrome://help-frame/"; 50 const char kChromeUIHistoryURL[] = "chrome://history/"; 51 const char kChromeUIHistoryFrameURL[] = "chrome://history-frame/"; 52 const char kChromeUIIdentityInternalsURL[] = "chrome://identity-internals/"; 53 const char kChromeUIInlineLoginURL[] = "chrome://inline-login/"; 54 const char kChromeUIInspectURL[] = "chrome://inspect/"; 55 const char kChromeUIInstantURL[] = "chrome://instant/"; 56 const char kChromeUIIPCURL[] = "chrome://ipc/"; 57 const char kChromeUIManagedUserPassphrasePageURL[] = 58 "chrome://managed-user-passphrase/"; 59 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/"; 60 const char kChromeUIMemoryURL[] = "chrome://memory/"; 61 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/"; 62 const char kChromeUINaClURL[] = "chrome://nacl/"; 63 const char kChromeUINetInternalsURL[] = "chrome://net-internals/"; 64 const char kChromeUINewProfile[] = "chrome://newprofile/"; 65 const char kChromeUINewTabURL[] = "chrome://newtab/"; 66 const char kChromeUIOmniboxURL[] = "chrome://omnibox/"; 67 const char kChromeUIPerformanceMonitorURL[] = "chrome://performance/"; 68 const char kChromeUIPluginsURL[] = "chrome://plugins/"; 69 const char kChromeUIPolicyURL[] = "chrome://policy/"; 70 const char kChromeUIProfileSigninConfirmationURL[] = 71 "chrome://profile-signin-confirmation/"; 72 const char kChromeUIUserManagerURL[] = "chrome://user-manager/"; 73 const char kChromeUIPrintURL[] = "chrome://print/"; 74 const char kChromeUIRestartURL[] = "chrome://restart/"; 75 const char kChromeUISettingsURL[] = "chrome://settings/"; 76 const char kChromeUISettingsFrameURL[] = "chrome://settings-frame/"; 77 const char kChromeUISuggestionsInternalsURL[] = 78 "chrome://suggestions-internals/"; 79 const char kChromeUISSLClientCertificateSelectorURL[] = "chrome://select-cert/"; 80 const char kChromeUITaskManagerURL[] = "chrome://tasks/"; 81 const char kChromeUITermsURL[] = "chrome://terms/"; 82 const char kChromeUIThemeURL[] = "chrome://theme/"; 83 const char kChromeUIThumbnailURL[] = "chrome://thumb/"; 84 const char kChromeUIUberURL[] = "chrome://chrome/"; 85 const char kChromeUIUberFrameURL[] = "chrome://uber-frame/"; 86 const char kChromeUIUserActionsURL[] = "chrome://user-actions/"; 87 const char kChromeUIVersionURL[] = "chrome://version/"; 88 89 #if defined(OS_ANDROID) 90 const char kChromeUIWelcomeURL[] = "chrome://welcome/"; 91 #endif 92 93 #if defined(OS_CHROMEOS) 94 const char kChromeUIActivationMessage[] = "chrome://activationmessage/"; 95 const char kChromeUIAppLaunchURL[] = "chrome://app-launch/"; 96 const char kChromeUIBluetoothPairingURL[] = "chrome://bluetooth-pairing/"; 97 const char kChromeUIChooseMobileNetworkURL[] = 98 "chrome://choose-mobile-network/"; 99 const char kChromeUIDiagnosticsURL[] = "chrome://diagnostics/"; 100 const char kChromeUIDiscardsURL[] = "chrome://discards/"; 101 const char kChromeUIIdleLogoutDialogURL[] = "chrome://idle-logout/"; 102 const char kChromeUIImageBurnerURL[] = "chrome://imageburner/"; 103 const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/"; 104 const char kChromeUILockScreenURL[] = "chrome://lock/"; 105 const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; 106 const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/"; 107 const char kChromeUIOobeURL[] = "chrome://oobe/"; 108 const char kChromeUIOSCreditsURL[] = "chrome://os-credits/"; 109 const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/"; 110 const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/"; 111 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; 112 const char kChromeUISlowURL[] = "chrome://slow/"; 113 const char kChromeUISystemInfoURL[] = "chrome://system/"; 114 const char kChromeUITermsOemURL[] = "chrome://terms/oem"; 115 const char kChromeUIUserImageURL[] = "chrome://userimage/"; 116 #endif 117 118 #if defined(USE_ASH) 119 const char kChromeUITransparencyURL[] = "chrome://transparency/"; 120 #endif 121 122 #if defined(FILE_MANAGER_EXTENSION) 123 const char kChromeUIFileManagerURL[] = "chrome://files/"; 124 #endif 125 126 #if defined(USE_AURA) 127 const char kChromeUIGestureConfigURL[] = "chrome://gesture/"; 128 const char kChromeUIGestureConfigHost[] = "gesture"; 129 const char kChromeUISalsaURL[] = "chrome://salsa/"; 130 const char kChromeUISalsaHost[] = "salsa"; 131 #endif 132 133 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) 134 const char kChromeUITabModalConfirmDialogURL[] = 135 "chrome://tab-modal-confirm-dialog/"; 136 #endif 137 138 #if defined(ENABLE_WEBRTC) 139 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; 140 #endif 141 142 // Add Chrome UI hosts here, in alphabetical order. 143 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by 144 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. 145 const char kChromeUIAboutHost[] = "about"; 146 const char kChromeUIBlankHost[] = "blank"; 147 const char kChromeUIAppLauncherPageHost[] = "apps"; 148 const char kChromeUIBookmarksHost[] = "bookmarks"; 149 const char kChromeUICacheHost[] = "cache"; 150 const char kChromeUICertificateViewerHost[] = "view-cert"; 151 const char kChromeUIChromeURLsHost[] = "chrome-urls"; 152 const char kChromeUICloudPrintResourcesHost[] = "cloudprintresources"; 153 const char kChromeUICloudPrintSetupHost[] = "cloudprintsetup"; 154 const char kChromeUIConflictsHost[] = "conflicts"; 155 const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test"; 156 const char kChromeUICrashesHost[] = "crashes"; 157 const char kChromeUICrashHost[] = "crash"; 158 const char kChromeUICreditsHost[] = "credits"; 159 const char kChromeUIDefaultHost[] = "version"; 160 const char kChromeUIDevicesHost[] = "devices"; 161 const char kChromeUIDevToolsHost[] = "devtools"; 162 const char kChromeUIDevToolsBundledPath[] = "bundled"; 163 const char kChromeUIDevToolsRemotePath[] = "remote"; 164 const char kChromeUIDNSHost[] = "dns"; 165 const char kChromeUIDownloadsHost[] = "downloads"; 166 const char kChromeUIDriveInternalsHost[] = "drive-internals"; 167 const char kChromeUIEditSearchEngineDialogHost[] = "editsearchengine"; 168 const char kChromeUIExtensionIconHost[] = "extension-icon"; 169 const char kChromeUIExtensionInfoHost[] = "extension-info"; 170 const char kChromeUIExtensionsFrameHost[] = "extensions-frame"; 171 const char kChromeUIExtensionsHost[] = "extensions"; 172 const char kChromeUIFaviconHost[] = "favicon"; 173 const char kChromeUIFeedbackHost[] = "feedback"; 174 const char kChromeUIFlagsHost[] = "flags"; 175 const char kChromeUIFlashHost[] = "flash"; 176 const char kChromeUIHangHost[] = "hang"; 177 const char kChromeUIHelpFrameHost[] = "help-frame"; 178 const char kChromeUIHelpHost[] = "help"; 179 const char kChromeUIHistoryHost[] = "history"; 180 const char kChromeUIHistoryFrameHost[] = "history-frame"; 181 const char kChromeUIIdentityInternalsHost[] = "identity-internals"; 182 const char kChromeUIInlineLoginHost[] = "inline-login"; 183 const char kChromeUIInspectHost[] = "inspect"; 184 const char kChromeUIInstantHost[] = "instant"; 185 const char kChromeUIIPCHost[] = "ipc"; 186 const char kChromeUIKillHost[] = "kill"; 187 const char kChromeUIManagedUserPassphrasePageHost[] = "managed-user-passphrase"; 188 const char kChromeUIMemoryHost[] = "memory"; 189 const char kChromeUIMemoryInternalsHost[] = "memory-internals"; 190 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; 191 const char kChromeUIMetroFlowHost[] = "make-metro"; 192 const char kChromeUINaClHost[] = "nacl"; 193 const char kChromeUINetExportHost[] = "net-export"; 194 const char kChromeUINetInternalsHost[] = "net-internals"; 195 const char kChromeUINewTabHost[] = "newtab"; 196 const char kChromeUIOmniboxHost[] = "omnibox"; 197 const char kChromeUIPerformanceMonitorHost[] = "performance"; 198 const char kChromeUIPluginsHost[] = "plugins"; 199 const char kChromeUIPolicyHost[] = "policy"; 200 const char kChromeUIProfileSigninConfirmationHost[] = 201 "profile-signin-confirmation"; 202 const char kChromeUIUserManagerHost[] = "user-manager"; 203 const char kChromeUIPredictorsHost[] = "predictors"; 204 const char kChromeUIPrintHost[] = "print"; 205 const char kChromeUIProfilerHost[] = "profiler"; 206 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; 207 const char kChromeUIRestartHost[] = "restart"; 208 const char kChromeUISettingsHost[] = "settings"; 209 const char kChromeUISettingsFrameHost[] = "settings-frame"; 210 const char kChromeUIShorthangHost[] = "shorthang"; 211 const char kChromeUISignInInternalsHost[] = "signin-internals"; 212 const char kChromeUISuggestionsInternalsHost[] = "suggestions-internals"; 213 const char kChromeUISSLClientCertificateSelectorHost[] = "select-cert"; 214 const char kChromeUIStatsHost[] = "stats"; 215 const char kChromeUISyncHost[] = "sync"; 216 const char kChromeUISyncFileSystemInternalsHost[] = "syncfs-internals"; 217 const char kChromeUISyncInternalsHost[] = "sync-internals"; 218 const char kChromeUISyncResourcesHost[] = "syncresources"; 219 const char kChromeUITaskManagerHost[] = "tasks"; 220 const char kChromeUITermsHost[] = "terms"; 221 const char kChromeUIThemeHost[] = "theme"; 222 const char kChromeUIThumbnailHost[] = "thumb"; 223 const char kChromeUITouchIconHost[] = "touch-icon"; 224 const char kChromeUITranslateInternalsHost[] = "translate-internals"; 225 const char kChromeUIUberFrameHost[] = "uber-frame"; 226 const char kChromeUIUberHost[] = "chrome"; 227 const char kChromeUIUserActionsHost[] = "user-actions"; 228 const char kChromeUIVersionHost[] = "version"; 229 const char kChromeUIWorkersHost[] = "workers"; 230 231 const char kChromeUIScreenshotPath[] = "screenshots"; 232 const char kChromeUIThemePath[] = "theme"; 233 234 #if defined(OS_ANDROID) 235 const char kChromeUIWelcomeHost[] = "welcome"; 236 #endif 237 238 #if defined(OS_LINUX) || defined(OS_OPENBSD) 239 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; 240 const char kChromeUISandboxHost[] = "sandbox"; 241 #endif 242 243 #if defined(OS_CHROMEOS) 244 const char kChromeUIActivationMessageHost[] = "activationmessage"; 245 const char kChromeUIAppLaunchHost[] = "app-launch"; 246 const char kChromeUIBluetoothPairingHost[] = "bluetooth-pairing"; 247 const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network"; 248 const char kChromeUICryptohomeHost[] = "cryptohome"; 249 const char kChromeUIDiagnosticsHost[] = "diagnostics"; 250 const char kChromeUIDiscardsHost[] = "discards"; 251 const char kChromeUIIdleLogoutDialogHost[] = "idle-logout"; 252 const char kChromeUIImageBurnerHost[] = "imageburner"; 253 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay"; 254 const char kChromeUILockScreenHost[] = "lock"; 255 const char kChromeUILoginContainerHost[] = "login-container"; 256 const char kChromeUILoginHost[] = "login"; 257 const char kChromeUIMediaplayerHost[] = "mediaplayer"; 258 const char kChromeUIMobileSetupHost[] = "mobilesetup"; 259 const char kChromeUINetworkHost[] = "network"; 260 const char kChromeUIOobeHost[] = "oobe"; 261 const char kChromeUIOSCreditsHost[] = "os-credits"; 262 const char kChromeUIProxySettingsHost[] = "proxy-settings"; 263 const char kChromeUIRotateHost[] = "rotate"; 264 const char kChromeUISimUnlockHost[] = "sim-unlock"; 265 const char kChromeUISlideshowHost[] = "slideshow"; 266 const char kChromeUISlowHost[] = "slow"; 267 const char kChromeUISystemInfoHost[] = "system"; 268 const char kChromeUIUserImageHost[] = "userimage"; 269 270 const char kChromeUIMenu[] = "menu"; 271 const char kChromeUINetworkMenu[] = "network-menu"; 272 const char kChromeUIWrenchMenu[] = "wrench-menu"; 273 274 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html"; 275 const char kOemEulaURLPath[] = "oem"; 276 const char kOnlineEulaURLPath[] = 277 "https://www.google.com/intl/%s/chrome/eula_text.html"; 278 #endif 279 280 #if defined(USE_ASH) 281 const char kChromeUITransparencyHost[] = "transparency"; 282 #endif 283 284 #if defined(FILE_MANAGER_EXTENSION) 285 const char kChromeUIFileManagerHost[] = "files"; 286 #endif 287 288 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) 289 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; 290 #endif 291 292 #if defined(ENABLE_WEBRTC) 293 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; 294 #endif 295 296 // Option sub pages. 297 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be 298 // listed by the built-in AutocompleteProvider. 299 const char kAutofillSubPage[] = "autofill"; 300 const char kClearBrowserDataSubPage[] = "clearBrowserData"; 301 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; 302 const char kContentSettingsSubPage[] = "content"; 303 const char kCreateProfileSubPage[] = "createProfile"; 304 const char kExtensionsSubPage[] = "extensions"; 305 const char kHandlerSettingsSubPage[] = "handlers"; 306 const char kImportDataSubPage[] = "importData"; 307 const char kLanguageOptionsSubPage[] = "languages"; 308 const char kManagedUserSettingsSubPage[] = "managedUser"; 309 const char kManageProfileSubPage[] = "manageProfile"; 310 const char kPasswordManagerSubPage[] = "passwords"; 311 const char kSearchEnginesSubPage[] = "searchEngines"; 312 const char kSearchSubPage[] = "search"; 313 const char kSearchUsersSubPage[] = "search#Users"; 314 const char kSyncSetupSubPage[] = "syncSetup"; 315 #if defined(OS_CHROMEOS) 316 const char kInternetOptionsSubPage[] = "internet"; 317 const char kBluetoothAddDeviceSubPage[] = "bluetooth"; 318 const char kChangeProfilePictureSubPage[] = "changePicture"; 319 #endif 320 321 // Extension sub pages. 322 const char kExtensionConfigureCommandsSubPage[] = "configureCommands"; 323 324 const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/"; 325 const char kExtensionResourceInvalidRequestURL[] = 326 "chrome-extension-resource://invalid/"; 327 328 const char kSyncGoogleDashboardURL[] = 329 "https://www.google.com/settings/chrome/sync/"; 330 331 const char kAutoPasswordGenerationLearnMoreURL[] = 332 "https://support.google.com/chrome/?p=ui_generate_password"; 333 334 335 const char kPasswordManagerLearnMoreURL[] = 336 #if defined(OS_CHROMEOS) 337 "https://support.google.com/chromeos/?p=settings_password"; 338 #else 339 "https://support.google.com/chrome/?p=settings_password"; 340 #endif 341 342 const char kChromeHelpViaKeyboardURL[] = 343 #if defined(OS_CHROMEOS) 344 #if defined(OFFICIAL_BUILD) 345 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"; 346 #else 347 "https://support.google.com/chromeos/?p=help&ctx=keyboard"; 348 #endif // defined(OFFICIAL_BUILD 349 #else 350 "https://support.google.com/chrome/?p=help&ctx=keyboard"; 351 #endif // defined(OS_CHROMEOS) 352 353 const char kChromeHelpViaMenuURL[] = 354 #if defined(OS_CHROMEOS) 355 #if defined(OFFICIAL_BUILD) 356 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"; 357 #else 358 "https://support.google.com/chromeos/?p=help&ctx=menu"; 359 #endif // defined(OFFICIAL_BUILD 360 #else 361 "https://support.google.com/chrome/?p=help&ctx=menu"; 362 #endif // defined(OS_CHROMEOS) 363 364 const char kChromeHelpViaWebUIURL[] = 365 #if defined(OS_CHROMEOS) 366 #if defined(OFFICIAL_BUILD) 367 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"; 368 #else 369 "https://support.google.com/chromeos/?p=help&ctx=settings"; 370 #endif // defined(OFFICIAL_BUILD 371 #else 372 "https://support.google.com/chrome/?p=help&ctx=settings"; 373 #endif // defined(OS_CHROMEOS) 374 375 #if defined(OS_CHROMEOS) 376 const char kChromeAccessibilityHelpURL[] = 377 "https://support.google.com/chromeos/?p=accessibility_menu"; 378 #endif // defined(OS_CHROMEOS) 379 380 const char kChromeSyncLearnMoreURL[] = 381 #if defined(OS_CHROMEOS) 382 "http://support.google.com/chromeos/bin/answer.py?answer=165139"; 383 #else 384 "http://support.google.com/chrome/bin/answer.py?answer=165139"; 385 #endif 386 387 const char kChromeEnterpriseSignInLearnMoreURL[] = 388 "http://support.google.com/chromeos/bin/answer.py?hl=en&answer=1331549"; 389 390 const char kSupervisedUserManagementURL[] = "https://www.chrome.com/manage"; 391 392 const char kSupervisedUserManagementDisplayURL[] = "www.chrome.com/manage"; 393 394 const char kSettingsSearchHelpURL[] = 395 #if defined(OS_CHROMEOS) 396 "https://support.google.com/chromeos/?p=settings_search_help"; 397 #else 398 "https://support.google.com/chrome/?p=settings_search_help"; 399 #endif 400 401 const char kAboutGoogleTranslateURL[] = 402 #if defined(OS_CHROMEOS) 403 "https://support.google.com/chromeos/?p=ib_translation_bar"; 404 #else 405 "https://support.google.com/chrome/?p=ib_translation_bar"; 406 #endif 407 408 const char kOmniboxLearnMoreURL[] = 409 #if defined(OS_CHROMEOS) 410 "https://support.google.com/chromeos/?p=settings_omnibox"; 411 #else 412 "https://support.google.com/chrome/?p=settings_omnibox"; 413 #endif 414 415 const char kPageInfoHelpCenterURL[] = 416 #if defined(OS_CHROMEOS) 417 "https://support.google.com/chromeos/?p=ui_security_indicator"; 418 #else 419 "https://support.google.com/chrome/?p=ui_security_indicator"; 420 #endif 421 422 const char kCrashReasonURL[] = 423 #if defined(OS_CHROMEOS) 424 "https://support.google.com/chromeos/?p=e_awsnap"; 425 #else 426 "https://support.google.com/chrome/?p=e_awsnap"; 427 #endif 428 429 const char kKillReasonURL[] = 430 #if defined(OS_CHROMEOS) 431 "https://support.google.com/chromeos/?p=e_deadjim"; 432 #else 433 "https://support.google.com/chrome/?p=e_deadjim"; 434 #endif 435 436 const char kPrivacyLearnMoreURL[] = 437 #if defined(OS_CHROMEOS) 438 "https://support.google.com/chromeos/?p=settings_privacy"; 439 #else 440 "https://support.google.com/chrome/?p=settings_privacy"; 441 #endif 442 443 const char kDoNotTrackLearnMoreURL[] = 444 #if defined(OS_CHROMEOS) 445 "https://support.google.com/chromeos/?p=settings_do_not_track"; 446 #else 447 "https://support.google.com/chrome/?p=settings_do_not_track"; 448 #endif 449 450 const char kChromiumProjectURL[] = "http://www.chromium.org/"; 451 452 const char kLearnMoreReportingURL[] = 453 "https://support.google.com/chrome/?p=ui_usagestat"; 454 455 const char kOutdatedPluginLearnMoreURL[] = 456 "https://support.google.com/chrome/?p=ib_outdated_plugin"; 457 458 const char kBlockedPluginLearnMoreURL[] = 459 "https://support.google.com/chrome/?p=ib_blocked_plugin"; 460 461 const char kSpeechInputAboutURL[] = 462 "https://support.google.com/chrome/?p=ui_speech_input"; 463 464 const char kLearnMoreRegisterProtocolHandlerURL[] = 465 "https://support.google.com/chrome/?p=ib_protocol_handler"; 466 467 const char kSyncLearnMoreURL[] = 468 "https://support.google.com/chrome/?p=settings_sign_in"; 469 470 const char kDownloadScanningLearnMoreURL[] = 471 "https://support.google.com/chrome/?p=ib_download_scan"; 472 473 const char kDownloadPotentiallyUnwantedLearnMoreURL[] = 474 "https://support.google.com/chrome/?p=ui_protect_settings"; 475 476 const char kDownloadInterruptedLearnMoreURL[] = 477 "https://support.google.com/chrome/?p=ui_download_errors"; 478 479 const char kSyncEverythingLearnMoreURL[] = 480 "https://support.google.com/chrome/?p=settings_sync_all"; 481 482 const char kCloudPrintLearnMoreURL[] = 483 #if defined(OS_CHROMEOS) 484 "https://support.google.com/chromeos/?p=settings_cloud_print"; 485 #else 486 "https://support.google.com/chrome/?p=settings_cloud_print"; 487 #endif 488 489 const char kAppLauncherHelpURL[] = 490 "https://support.google.com/chrome_webstore/?p=cws_app_launcher"; 491 492 const char kSyncEncryptionHelpURL[] = 493 #if defined(OS_CHROMEOS) 494 "https://support.google.com/chromeos/?p=settings_encryption"; 495 #else 496 "https://support.google.com/chrome/?p=settings_encryption"; 497 #endif 498 499 const char kSyncErrorsHelpURL[] = 500 "https://support.google.com/chrome/?p=settings_sync_error"; 501 502 const char kSideloadWipeoutHelpURL[] = 503 "https://support.google.com/chrome/?p=ui_remove_non_cws_extensions"; 504 505 #if defined(OS_CHROMEOS) 506 const char kNaturalScrollHelpURL[] = 507 "https://support.google.com/chromeos/?p=simple_scrolling"; 508 #endif 509 510 #if defined(OS_CHROMEOS) 511 const char kLearnMoreEnterpriseURL[] = 512 "https://support.google.com/chromeos/bin/answer.py?answer=2535613"; 513 #endif 514 515 const char kNotificationsHelpURL[] = 516 "https://support.google.com/chrome/?p=ui_notifications"; 517 518 // Add hosts here to be included in chrome://chrome-urls (about:about). 519 // These hosts will also be suggested by BuiltinProvider. 520 const char* const kChromeHostURLs[] = { 521 kChromeUICacheHost, 522 kChromeUIChromeURLsHost, 523 kChromeUICrashesHost, 524 kChromeUICreditsHost, 525 kChromeUIDNSHost, 526 kChromeUIFlagsHost, 527 kChromeUIHistoryHost, 528 kChromeUIIPCHost, 529 kChromeUIMemoryHost, 530 kChromeUIMemoryInternalsHost, 531 #if defined(OS_ANDROID) || defined(OS_IOS) 532 kChromeUINetExportHost, 533 #endif 534 kChromeUINetInternalsHost, 535 kChromeUINewTabHost, 536 kChromeUIOmniboxHost, 537 kChromeUIPredictorsHost, 538 kChromeUIProfilerHost, 539 kChromeUIQuotaInternalsHost, 540 kChromeUISignInInternalsHost, 541 kChromeUIStatsHost, 542 kChromeUISyncInternalsHost, 543 kChromeUITermsHost, 544 kChromeUITranslateInternalsHost, 545 kChromeUIUserActionsHost, 546 kChromeUIVersionHost, 547 #if defined(OS_ANDROID) 548 kChromeUIWelcomeHost, 549 #else 550 kChromeUIBookmarksHost, 551 kChromeUIDownloadsHost, 552 kChromeUIFlashHost, 553 kChromeUIInspectHost, 554 kChromeUIPluginsHost, 555 kChromeUISettingsHost, 556 #endif 557 #if defined(OS_WIN) 558 kChromeUIConflictsHost, 559 #endif 560 #if defined(OS_LINUX) || defined(OS_OPENBSD) 561 kChromeUILinuxProxyConfigHost, 562 kChromeUISandboxHost, 563 #endif 564 #if defined(OS_CHROMEOS) 565 kChromeUIChooseMobileNetworkHost, 566 kChromeUICryptohomeHost, 567 kChromeUIDiagnosticsHost, 568 kChromeUIDiscardsHost, 569 kChromeUIDriveInternalsHost, 570 kChromeUIImageBurnerHost, 571 kChromeUIKeyboardOverlayHost, 572 kChromeUILoginHost, 573 kChromeUINetworkHost, 574 kChromeUIOobeHost, 575 kChromeUIOSCreditsHost, 576 kChromeUIProxySettingsHost, 577 kChromeUISystemInfoHost, 578 kChromeUITaskManagerHost, 579 #endif 580 #if !defined(DISABLE_NACL) 581 kChromeUINaClHost, 582 #endif 583 #if defined(ENABLE_CONFIGURATION_POLICY) 584 kChromeUIPolicyHost, 585 #endif 586 #if defined(ENABLE_EXTENSIONS) 587 kChromeUIExtensionsHost, 588 #endif 589 #if defined(ENABLE_FULL_PRINTING) 590 kChromeUIPrintHost, 591 #endif 592 content::kChromeUIAccessibilityHost, 593 content::kChromeUIAppCacheInternalsHost, 594 content::kChromeUIBlobInternalsHost, 595 content::kChromeUIGpuHost, 596 content::kChromeUIHistogramHost, 597 content::kChromeUIIndexedDBInternalsHost, 598 content::kChromeUIMediaInternalsHost, 599 content::kChromeUINetworkViewCacheHost, 600 content::kChromeUITracingHost, 601 content::kChromeUIWebRTCInternalsHost, 602 #if defined(ENABLE_WEBRTC) 603 kChromeUIWebRtcLogsHost, 604 #endif 605 }; 606 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); 607 608 const char* const kChromeDebugURLs[] = { 609 content::kChromeUICrashURL, 610 content::kChromeUIKillURL, 611 content::kChromeUIHangURL, 612 content::kChromeUIShorthangURL, 613 content::kChromeUIGpuCleanURL, 614 content::kChromeUIGpuCrashURL, 615 content::kChromeUIGpuHangURL, 616 content::kChromeUIPpapiFlashCrashURL, 617 content::kChromeUIPpapiFlashHangURL, 618 chrome::kChromeUIRestartURL 619 }; 620 const int kNumberOfChromeDebugURLs = 621 static_cast<int>(arraysize(kChromeDebugURLs)); 622 623 const char kExtensionResourceScheme[] = "chrome-extension-resource"; 624 const char kChromeNativeScheme[] = "chrome-native"; 625 626 const char kChromeSearchScheme[] = "chrome-search"; 627 const char kChromeSearchLocalNtpHost[] = "local-ntp"; 628 const char kChromeSearchLocalNtpUrl[] = 629 "chrome-search://local-ntp/local-ntp.html"; 630 const char kChromeSearchOnlineNtpHost[] = "online-ntp"; 631 632 const char kChromeSearchMostVisitedHost[] = "most-visited"; 633 const char kChromeSearchMostVisitedUrl[] = "chrome-search://most-visited/"; 634 635 // Google SafeSearch query parameters. 636 const char kSafeSearchSafeParameter[] = "safe=active"; 637 const char kSafeSearchSsuiParameter[] = "ssui=on"; 638 639 const char kMediaAccessLearnMoreUrl[] = 640 "https://support.google.com/chrome/?p=ib_access_cam_mic"; 641 642 } // namespace chrome 643