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