[email protected] | 864a0907 | 2011-02-09 13:59:01 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 6aad4bd | 2009-02-26 22:55:17 | [diff] [blame] | 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" |
[email protected] | 692c534 | 2011-05-25 19:16:21 | [diff] [blame] | 6 | |
[email protected] | 7fc13ed | 2010-03-06 05:06:20 | [diff] [blame] | 7 | #include "googleurl/src/url_util.h" |
[email protected] | 6aad4bd | 2009-02-26 22:55:17 | [diff] [blame] | 8 | |
[email protected] | 2a80aee | 2011-10-07 16:06:03 | [diff] [blame] | 9 | namespace { |
| 10 | const char* kSavableSchemes[] = { |
| 11 | chrome::kExtensionScheme, |
| 12 | NULL |
| 13 | }; |
| 14 | } // namespace |
| 15 | |
[email protected] | 6aad4bd | 2009-02-26 22:55:17 | [diff] [blame] | 16 | namespace chrome { |
| 17 | |
[email protected] | 49699e8f | 2010-05-28 15:30:20 | [diff] [blame] | 18 | #if defined(OS_CHROMEOS) |
| 19 | const char kCrosScheme[] = "cros"; |
| 20 | #endif |
| 21 | |
[email protected] | cd8c9058 | 2010-03-24 06:36:19 | [diff] [blame] | 22 | const char kAboutPluginsURL[] = "about:plugins"; |
[email protected] | 4895ce8 | 2010-06-28 20:25:59 | [diff] [blame] | 23 | const char kAboutVersionURL[] = "about:version"; |
[email protected] | cd3d789 | 2009-03-04 23:55:06 | [diff] [blame] | 24 | |
[email protected] | 62794f46 | 2011-07-19 05:50:16 | [diff] [blame] | 25 | // Add Chrome UI URLs as necessary, in alphabetical order. |
| 26 | // Be sure to add the corresponding kChromeUI*Host constant below. |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 27 | const char kChromeUIAboutURL[] = "chrome://about/"; |
[email protected] | 6404197b | 2010-03-03 00:40:40 | [diff] [blame] | 28 | const char kChromeUIBookmarksURL[] = "chrome://bookmarks/"; |
[email protected] | ac1894a | 2010-08-22 10:38:54 | [diff] [blame] | 29 | const char kChromeUIBugReportURL[] = "chrome://bugreport/"; |
[email protected] | 8ebc9b4 | 2011-07-14 15:22:18 | [diff] [blame] | 30 | const char kChromeUICertificateViewerURL[] = "chrome://view-cert/"; |
[email protected] | 4e8655d | 2011-06-16 17:20:17 | [diff] [blame] | 31 | const char kChromeUIChromeURLsURL[] = "chrome://chrome-urls/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 32 | const char kChromeUICloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
[email protected] | c1bbaa8 | 2010-11-08 11:17:05 | [diff] [blame] | 33 | const char kChromeUIConflictsURL[] = "chrome://conflicts/"; |
[email protected] | aa7f290 | 2010-10-19 20:59:04 | [diff] [blame] | 34 | const char kChromeUIConstrainedHTMLTestURL[] = "chrome://constrained-test/"; |
[email protected] | c8717adf7 | 2011-02-18 21:07:16 | [diff] [blame] | 35 | const char kChromeUICrashesURL[] = "chrome://crashes/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 36 | const char kChromeUICrashURL[] = "chrome://crash/"; |
| 37 | const char kChromeUICreditsURL[] = "chrome://credits/"; |
[email protected] | 27c790d4 | 2010-10-22 09:28:43 | [diff] [blame] | 38 | const char kChromeUIDevToolsURL[] = "chrome-devtools://devtools/"; |
[email protected] | 60e44898 | 2009-05-06 04:21:16 | [diff] [blame] | 39 | const char kChromeUIDownloadsURL[] = "chrome://downloads/"; |
[email protected] | 02b07597 | 2011-10-19 18:39:00 | [diff] [blame] | 40 | const char kChromeUIEditSearchEngineDialogURL[] = "chrome://editsearchengine/"; |
[email protected] | f83773f | 2011-03-02 19:15:21 | [diff] [blame] | 41 | const char kChromeUIExtensionIconURL[] = "chrome://extension-icon/"; |
[email protected] | 60e44898 | 2009-05-06 04:21:16 | [diff] [blame] | 42 | const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
[email protected] | f16039d2 | 2011-03-16 18:54:05 | [diff] [blame] | 43 | const char kChromeUIFaviconURL[] = "chrome://favicon/"; |
[email protected] | 9486c1f | 2010-10-14 19:52:12 | [diff] [blame] | 44 | const char kChromeUIFlagsURL[] = "chrome://flags/"; |
[email protected] | fca58f0 | 2011-05-27 19:45:39 | [diff] [blame] | 45 | const char kChromeUIFlashURL[] = "chrome://flash/"; |
[email protected] | 3cf7c298 | 2011-08-20 05:48:13 | [diff] [blame] | 46 | const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
[email protected] | 37ae3f2 | 2011-07-12 03:56:14 | [diff] [blame] | 47 | const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
[email protected] | 3cf7c298 | 2011-08-20 05:48:13 | [diff] [blame] | 48 | const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 49 | const char kChromeUIHangURL[] = "chrome://hang/"; |
[email protected] | 5272851 | 2010-08-27 11:44:36 | [diff] [blame] | 50 | const char kChromeUIHistory2URL[] = "chrome://history2/"; |
[email protected] | ad2a3ded | 2010-08-27 13:19:05 | [diff] [blame] | 51 | const char kChromeUIHistoryURL[] = "chrome://history/"; |
[email protected] | 1b0b20f | 2011-08-22 21:51:29 | [diff] [blame] | 52 | const char kChromeUIHungRendererDialogURL[] = "chrome://hung-renderer/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 53 | const char kChromeUIIPCURL[] = "chrome://ipc/"; |
[email protected] | 9c88d475 | 2010-09-16 20:59:42 | [diff] [blame] | 54 | const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 55 | const char kChromeUIKillURL[] = "chrome://kill/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 56 | const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 57 | const char kChromeUIMemoryURL[] = "chrome://memory/"; |
[email protected] | ff8ac0f | 2011-08-04 16:59:11 | [diff] [blame] | 58 | const char kChromeUINetInternalsURL[] = "chrome://net-internals/"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 59 | const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
[email protected] | ff8ac0f | 2011-08-04 16:59:11 | [diff] [blame] | 60 | const char kChromeUINewProfile[] = "chrome://newprofile/"; |
[email protected] | 692c534 | 2011-05-25 19:16:21 | [diff] [blame] | 61 | const char kChromeUINewTabURL[] = "chrome://newtab/"; |
[email protected] | 1cd5f75f | 2010-06-23 22:36:43 | [diff] [blame] | 62 | const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
[email protected] | a8171203 | 2011-08-31 16:10:04 | [diff] [blame] | 63 | const char kChromeUIPolicyURL[] = "chrome://policy/"; |
[email protected] | 1cd5f75f | 2010-06-23 22:36:43 | [diff] [blame] | 64 | const char kChromeUIPrintURL[] = "chrome://print/"; |
[email protected] | e16f0c0 | 2011-06-08 18:13:34 | [diff] [blame] | 65 | const char kChromeUISessionsURL[] = "chrome://sessions/"; |
[email protected] | e50eeee | 2010-09-22 00:33:30 | [diff] [blame] | 66 | const char kChromeUISettingsURL[] = "chrome://settings/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 67 | const char kChromeUIShorthangURL[] = "chrome://shorthang/"; |
[email protected] | 07792859 | 2011-09-29 18:56:41 | [diff] [blame] | 68 | const char kChromeUISyncPromoURL[] = "chrome://syncpromo/"; |
[email protected] | 37ae3f2 | 2011-07-12 03:56:14 | [diff] [blame] | 69 | const char kChromeUITaskManagerURL[] = "chrome://tasks/"; |
| 70 | const char kChromeUITermsURL[] = "chrome://terms/"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 71 | const char kChromeUIVersionURL[] = "chrome://version/"; |
[email protected] | 62794f46 | 2011-07-19 05:50:16 | [diff] [blame] | 72 | const char kChromeUIWorkersURL[] = "chrome://workers/"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 73 | |
| 74 | #if defined(OS_CHROMEOS) |
[email protected] | ddd4284 | 2011-02-03 00:00:22 | [diff] [blame] | 75 | const char kChromeUIActivationMessage[] = "chrome://activationmessage/"; |
[email protected] | ecba514d | 2011-04-17 03:47:46 | [diff] [blame] | 76 | const char kChromeUIActiveDownloadsURL[] = "chrome://active-downloads/"; |
[email protected] | 8d250bb | 2011-04-14 14:21:22 | [diff] [blame] | 77 | const char kChromeUIChooseMobileNetworkURL[] = |
| 78 | "chrome://choose-mobile-network/"; |
[email protected] | b228ecf1 | 2011-09-08 17:06:59 | [diff] [blame] | 79 | const char kChromeUIDiscardsURL[] = "chrome://discards/"; |
[email protected] | 62794f46 | 2011-07-19 05:50:16 | [diff] [blame] | 80 | const char kChromeUIEnterpriseEnrollmentURL[] = |
| 81 | "chrome://enterprise-enrollment/"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 82 | const char kChromeUIImageBurnerURL[] = "chrome://imageburner/"; |
[email protected] | d1d150f | 2010-11-04 05:41:39 | [diff] [blame] | 83 | const char kChromeUIKeyboardOverlayURL[] = "chrome://keyboardoverlay/"; |
[email protected] | d411c01d | 2011-10-18 16:00:27 | [diff] [blame] | 84 | const char kChromeUILockScreenURL[] = "chrome://lock/"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 85 | const char kChromeUIMediaplayerURL[] = "chrome://mediaplayer/"; |
| 86 | const char kChromeUIMobileSetupURL[] = "chrome://mobilesetup/"; |
[email protected] | 4de8252 | 2011-09-08 19:37:59 | [diff] [blame] | 87 | const char kChromeUIOobeURL[] = "chrome://oobe/"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 88 | const char kChromeUIOSCreditsURL[] = "chrome://os-credits/"; |
[email protected] | 942af4a0 | 2011-03-22 02:27:56 | [diff] [blame] | 89 | const char kChromeUIProxySettingsURL[] = "chrome://proxy-settings/"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 90 | const char kChromeUIRegisterPageURL[] = "chrome://register/"; |
[email protected] | 9b78cfd | 2011-03-23 11:15:36 | [diff] [blame] | 91 | const char kChromeUISimUnlockURL[] = "chrome://sim-unlock/"; |
[email protected] | 4de8252 | 2011-09-08 19:37:59 | [diff] [blame] | 92 | const char kChromeUISlideshowURL[] = "chrome://slideshow/"; |
[email protected] | 9c0a5800 | 2010-09-17 23:18:55 | [diff] [blame] | 93 | const char kChromeUISystemInfoURL[] = "chrome://system/"; |
[email protected] | 1f4d7b26 | 2011-08-26 09:05:18 | [diff] [blame] | 94 | const char kChromeUITermsOemURL[] = "chrome://terms/oem"; |
[email protected] | 5ef189ef | 2011-02-22 14:42:13 | [diff] [blame] | 95 | const char kChromeUIUserImageURL[] = "chrome://userimage/"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 96 | #endif |
[email protected] | 0ed164e | 2009-03-05 20:17:00 | [diff] [blame] | 97 | |
[email protected] | 45c52c9d | 2011-07-19 12:08:14 | [diff] [blame] | 98 | #if defined(FILE_MANAGER_EXTENSION) |
| 99 | const char kChromeUIFileManagerURL[] = "chrome://files/"; |
| 100 | #endif |
| 101 | |
[email protected] | c4f188e | 2011-10-14 03:12:52 | [diff] [blame] | 102 | #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
[email protected] | bb99a6e | 2011-09-28 01:29:50 | [diff] [blame] | 103 | const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; |
| 104 | const char kChromeUIHttpAuthURL[] = "chrome://http-auth/"; |
| 105 | const char kChromeUIRepostFormWarningURL[] = "chrome://repost-form-warning/"; |
| 106 | #endif |
| 107 | |
[email protected] | 62794f46 | 2011-07-19 05:50:16 | [diff] [blame] | 108 | // Add Chrome UI hosts here, in alphabetical order. |
| 109 | // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
| 110 | // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 111 | const char kChromeUIAboutHost[] = "about"; |
| 112 | const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
| 113 | const char kChromeUIBlankHost[] = "blank"; |
| 114 | const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
[email protected] | 6404197b | 2010-03-03 00:40:40 | [diff] [blame] | 115 | const char kChromeUIBookmarksHost[] = "bookmarks"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 116 | const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
[email protected] | ac1894a | 2010-08-22 10:38:54 | [diff] [blame] | 117 | const char kChromeUIBugReportHost[] = "bugreport"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 118 | const char kChromeUICacheHost[] = "cache"; |
[email protected] | 8ebc9b4 | 2011-07-14 15:22:18 | [diff] [blame] | 119 | const char kChromeUICertificateViewerHost[] = "view-cert"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 120 | const char kChromeUIChromeURLsHost[] = "chrome-urls"; |
| 121 | const char kChromeUICloudPrintResourcesHost[] = "cloudprintresources"; |
| 122 | const char kChromeUICloudPrintSetupHost[] = "cloudprintsetup"; |
[email protected] | c1bbaa8 | 2010-11-08 11:17:05 | [diff] [blame] | 123 | const char kChromeUIConflictsHost[] = "conflicts"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 124 | const char kChromeUIConstrainedHTMLTestHost[] = "constrained-test"; |
[email protected] | c8717adf7 | 2011-02-18 21:07:16 | [diff] [blame] | 125 | const char kChromeUICrashesHost[] = "crashes"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 126 | const char kChromeUICrashHost[] = "crash"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 127 | const char kChromeUICreditsHost[] = "credits"; |
| 128 | const char kChromeUIDefaultHost[] = "version"; |
[email protected] | b689fce7 | 2009-03-17 22:45:34 | [diff] [blame] | 129 | const char kChromeUIDevToolsHost[] = "devtools"; |
[email protected] | 4acc19a6 | 2009-04-03 03:05:11 | [diff] [blame] | 130 | const char kChromeUIDialogHost[] = "dialog"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 131 | const char kChromeUIDNSHost[] = "dns"; |
[email protected] | b689fce7 | 2009-03-17 22:45:34 | [diff] [blame] | 132 | const char kChromeUIDownloadsHost[] = "downloads"; |
[email protected] | 02b07597 | 2011-10-19 18:39:00 | [diff] [blame] | 133 | const char kChromeUIEditSearchEngineDialogHost[] = "editsearchengine"; |
[email protected] | f83773f | 2011-03-02 19:15:21 | [diff] [blame] | 134 | const char kChromeUIExtensionIconHost[] = "extension-icon"; |
[email protected] | b689fce7 | 2009-03-17 22:45:34 | [diff] [blame] | 135 | const char kChromeUIExtensionsHost[] = "extensions"; |
[email protected] | 16835e6 | 2011-03-16 14:13:08 | [diff] [blame] | 136 | const char kChromeUIFaviconHost[] = "favicon"; |
[email protected] | 9486c1f | 2010-10-14 19:52:12 | [diff] [blame] | 137 | const char kChromeUIFlagsHost[] = "flags"; |
[email protected] | fca58f0 | 2011-05-27 19:45:39 | [diff] [blame] | 138 | const char kChromeUIFlashHost[] = "flash"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 139 | const char kChromeUIGpuCleanHost[] = "gpuclean"; |
| 140 | const char kChromeUIGpuCrashHost[] = "gpucrash"; |
| 141 | const char kChromeUIGpuHangHost[] = "gpuhang"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 142 | const char kChromeUIGpuHost[] = "gpu"; |
[email protected] | 9a128b0 | 2010-12-15 00:52:00 | [diff] [blame] | 143 | const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 144 | const char kChromeUIHangHost[] = "hang"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 145 | const char kChromeUIHistogramsHost[] = "histograms"; |
[email protected] | 13ed8da | 2011-06-07 19:01:45 | [diff] [blame] | 146 | const char kChromeUIHistory2Host[] = "history2"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 147 | const char kChromeUIHistoryHost[] = "history"; |
[email protected] | 1b0b20f | 2011-08-22 21:51:29 | [diff] [blame] | 148 | const char kChromeUIHungRendererDialogHost[] = "hung-renderer"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 149 | const char kChromeUIIPCHost[] = "ipc"; |
[email protected] | 9c88d475 | 2010-09-16 20:59:42 | [diff] [blame] | 150 | const char kChromeUIKeyboardHost[] = "keyboard"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 151 | const char kChromeUIKillHost[] = "kill"; |
[email protected] | d582d13 | 2011-06-21 00:25:49 | [diff] [blame] | 152 | const char kChromeUIMediaInternalsHost[] = "media-internals"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 153 | const char kChromeUIMemoryHost[] = "memory"; |
| 154 | const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; |
[email protected] | 6e76d8d | 2010-05-10 23:13:56 | [diff] [blame] | 155 | const char kChromeUINetInternalsHost[] = "net-internals"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 156 | const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
[email protected] | b689fce7 | 2009-03-17 22:45:34 | [diff] [blame] | 157 | const char kChromeUINewTabHost[] = "newtab"; |
[email protected] | 1cd5f75f | 2010-06-23 22:36:43 | [diff] [blame] | 158 | const char kChromeUIPluginsHost[] = "plugins"; |
[email protected] | a8171203 | 2011-08-31 16:10:04 | [diff] [blame] | 159 | const char kChromeUIPolicyHost[] = "policy"; |
[email protected] | 1cd5f75f | 2010-06-23 22:36:43 | [diff] [blame] | 160 | const char kChromeUIPrintHost[] = "print"; |
[email protected] | bc3f2a78 | 2011-06-27 19:49:31 | [diff] [blame] | 161 | const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
[email protected] | 1cd5f75f | 2010-06-23 22:36:43 | [diff] [blame] | 162 | const char kChromeUIResourcesHost[] = "resources"; |
[email protected] | e16f0c0 | 2011-06-08 18:13:34 | [diff] [blame] | 163 | const char kChromeUISessionsHost[] = "sessions"; |
[email protected] | e50eeee | 2010-09-22 00:33:30 | [diff] [blame] | 164 | const char kChromeUISettingsHost[] = "settings"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 165 | const char kChromeUIShorthangHost[] = "shorthang"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 166 | const char kChromeUIStatsHost[] = "stats"; |
| 167 | const char kChromeUISyncHost[] = "sync"; |
[email protected] | e0e4d72 | 2011-01-14 12:16:06 | [diff] [blame] | 168 | const char kChromeUISyncInternalsHost[] = "sync-internals"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 169 | const char kChromeUISyncPromoHost[] = "syncpromo"; |
[email protected] | 64268ce | 2010-07-15 17:53:05 | [diff] [blame] | 170 | const char kChromeUISyncResourcesHost[] = "syncresources"; |
[email protected] | 37ae3f2 | 2011-07-12 03:56:14 | [diff] [blame] | 171 | const char kChromeUITaskManagerHost[] = "tasks"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 172 | const char kChromeUITCMallocHost[] = "tcmalloc"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 173 | const char kChromeUITermsHost[] = "terms"; |
| 174 | const char kChromeUITouchIconHost[] = "touch-icon"; |
[email protected] | 53dcc5c | 2011-08-09 15:40:31 | [diff] [blame] | 175 | const char kChromeUITracingHost[] = "tracing"; |
[email protected] | ca186367 | 2011-10-07 18:26:02 | [diff] [blame] | 176 | const char kChromeUITrackingHost[] = "tracking"; |
[email protected] | 4663771 | 2011-10-20 21:55:29 | [diff] [blame^] | 177 | const char kChromeUITrackingHost2[] = "tracking2"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 178 | const char kChromeUIVersionHost[] = "version"; |
[email protected] | fd1ef0a0 | 2011-07-04 10:23:42 | [diff] [blame] | 179 | const char kChromeUIWorkersHost[] = "workers"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 180 | |
| 181 | const char kChromeUIScreenshotPath[] = "screenshots"; |
[email protected] | 4a19063 | 2009-05-09 01:07:42 | [diff] [blame] | 182 | const char kChromeUIThemePath[] = "theme"; |
[email protected] | 1cd5f75f | 2010-06-23 22:36:43 | [diff] [blame] | 183 | const char kChromeUIThumbnailPath[] = "thumb"; |
[email protected] | 6aad4bd | 2009-02-26 22:55:17 | [diff] [blame] | 184 | |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 185 | #if defined(OS_LINUX) |
| 186 | const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; |
| 187 | const char kChromeUISandboxHost[] = "sandbox"; |
| 188 | #endif |
| 189 | |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 190 | #if defined(OS_CHROMEOS) |
[email protected] | 13ed8da | 2011-06-07 19:01:45 | [diff] [blame] | 191 | const char kChromeUIActivationMessageHost[] = "activationmessage"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 192 | const char kChromeUIActiveDownloadsHost[] = "active-downloads"; |
[email protected] | 8d250bb | 2011-04-14 14:21:22 | [diff] [blame] | 193 | const char kChromeUIChooseMobileNetworkHost[] = "choose-mobile-network"; |
[email protected] | ebdc6698 | 2011-06-15 21:22:36 | [diff] [blame] | 194 | const char kChromeUICryptohomeHost[] = "cryptohome"; |
[email protected] | b228ecf1 | 2011-09-08 17:06:59 | [diff] [blame] | 195 | const char kChromeUIDiscardsHost[] = "discards"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 196 | const char kChromeUIEnterpriseEnrollmentHost[] = "enterprise-enrollment"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 197 | const char kChromeUIImageBurnerHost[] = "imageburner"; |
[email protected] | d1d150f | 2010-11-04 05:41:39 | [diff] [blame] | 198 | const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay"; |
[email protected] | d411c01d | 2011-10-18 16:00:27 | [diff] [blame] | 199 | const char kChromeUILockScreenHost[] = "lock"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 200 | const char kChromeUILoginContainerHost[] = "login-container"; |
| 201 | const char kChromeUILoginHost[] = "login"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 202 | const char kChromeUIMediaplayerHost[] = "mediaplayer"; |
| 203 | const char kChromeUIMobileSetupHost[] = "mobilesetup"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 204 | const char kChromeUINetworkHost[] = "network"; |
[email protected] | 4de8252 | 2011-09-08 19:37:59 | [diff] [blame] | 205 | const char kChromeUIOobeHost[] = "oobe"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 206 | const char kChromeUIOSCreditsHost[] = "os-credits"; |
[email protected] | 942af4a0 | 2011-03-22 02:27:56 | [diff] [blame] | 207 | const char kChromeUIProxySettingsHost[] = "proxy-settings"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 208 | const char kChromeUIRegisterPageHost[] = "register"; |
[email protected] | a8f2115 | 2011-09-08 15:30:02 | [diff] [blame] | 209 | const char kChromeUIRotateHost[] = "rotate"; |
[email protected] | 9b78cfd | 2011-03-23 11:15:36 | [diff] [blame] | 210 | const char kChromeUISimUnlockHost[] = "sim-unlock"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 211 | const char kChromeUISlideshowHost[] = "slideshow"; |
[email protected] | 9d3f7d5e | 2010-09-25 06:17:04 | [diff] [blame] | 212 | const char kChromeUISystemInfoHost[] = "system"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 213 | const char kChromeUIUserImageHost[] = "userimage"; |
| 214 | |
[email protected] | 6777a57 | 2010-10-08 18:07:17 | [diff] [blame] | 215 | const char kChromeUIMenu[] = "menu"; |
[email protected] | 89ccd24 | 2010-10-12 08:58:27 | [diff] [blame] | 216 | const char kChromeUINetworkMenu[] = "network-menu"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 217 | const char kChromeUIWrenchMenu[] = "wrench-menu"; |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 218 | |
| 219 | const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html"; |
[email protected] | b19f53e | 2011-07-13 13:28:57 | [diff] [blame] | 220 | const char kOemEulaURLPath[] = "oem"; |
[email protected] | af1c080 | 2011-03-04 07:58:31 | [diff] [blame] | 221 | #endif |
| 222 | |
[email protected] | 45c52c9d | 2011-07-19 12:08:14 | [diff] [blame] | 223 | #if defined(FILE_MANAGER_EXTENSION) |
| 224 | const char kChromeUIFileManagerHost[] = "files"; |
| 225 | #endif |
| 226 | |
[email protected] | c4f188e | 2011-10-14 03:12:52 | [diff] [blame] | 227 | #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
[email protected] | bb99a6e | 2011-09-28 01:29:50 | [diff] [blame] | 228 | const char kChromeUICollectedCookiesHost[] = "collected-cookies"; |
| 229 | const char kChromeUIHttpAuthHost[] = "http-auth"; |
| 230 | const char kChromeUIRepostFormWarningHost[] = "repost-form-warning"; |
| 231 | #endif |
| 232 | |
[email protected] | 024617a | 2010-08-20 05:08:05 | [diff] [blame] | 233 | // Option sub pages. |
[email protected] | 62794f46 | 2011-07-19 05:50:16 | [diff] [blame] | 234 | // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be |
| 235 | // listed by the built-in AutocompleteProvider. |
[email protected] | 692c534 | 2011-05-25 19:16:21 | [diff] [blame] | 236 | const char kAdvancedOptionsSubPage[] = "advanced"; |
[email protected] | 663bd9e | 2011-03-21 01:07:01 | [diff] [blame] | 237 | const char kAutofillSubPage[] = "autofill"; |
[email protected] | 692c534 | 2011-05-25 19:16:21 | [diff] [blame] | 238 | const char kBrowserOptionsSubPage[] = "browser"; |
[email protected] | ebe11a5c | 2011-03-02 22:47:06 | [diff] [blame] | 239 | const char kClearBrowserDataSubPage[] = "clearBrowserData"; |
[email protected] | f9607f2 | 2011-02-05 02:18:51 | [diff] [blame] | 240 | const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 241 | const char kContentSettingsSubPage[] = "content"; |
[email protected] | dd86ba30 | 2011-09-19 20:10:37 | [diff] [blame] | 242 | const char kExtensionsSubPage[] = "extensions"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 243 | const char kHandlerSettingsSubPage[] = "handlers"; |
[email protected] | ebe11a5c | 2011-03-02 22:47:06 | [diff] [blame] | 244 | const char kImportDataSubPage[] = "importData"; |
[email protected] | b99081b | 2011-03-10 17:43:47 | [diff] [blame] | 245 | const char kInstantConfirmPage[] = "instantConfirm"; |
[email protected] | 78600f4 | 2011-03-15 20:53:24 | [diff] [blame] | 246 | const char kLanguageOptionsSubPage[] = "languages"; |
[email protected] | 7a26219 | 2011-10-05 19:46:41 | [diff] [blame] | 247 | const char kManageProfileSubPage[] = "manageProfile"; |
[email protected] | 692c534 | 2011-05-25 19:16:21 | [diff] [blame] | 248 | const char kPasswordManagerSubPage[] = "passwords"; |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 249 | const char kPersonalOptionsSubPage[] = "personal"; |
[email protected] | 1023c86 | 2010-10-21 00:29:10 | [diff] [blame] | 250 | const char kSearchEnginesSubPage[] = "searchEngines"; |
[email protected] | a159596 | 2011-04-22 21:56:24 | [diff] [blame] | 251 | const char kSyncSetupSubPage[] = "syncSetup"; |
[email protected] | 024617a | 2010-08-20 05:08:05 | [diff] [blame] | 252 | #if defined(OS_CHROMEOS) |
[email protected] | 01c3857e | 2011-06-09 04:35:48 | [diff] [blame] | 253 | const char kAboutOptionsSubPage[] = "about"; |
[email protected] | 024617a | 2010-08-20 05:08:05 | [diff] [blame] | 254 | const char kInternetOptionsSubPage[] = "internet"; |
[email protected] | 1023c86 | 2010-10-21 00:29:10 | [diff] [blame] | 255 | const char kSystemOptionsSubPage[] = "system"; |
[email protected] | 024617a | 2010-08-20 05:08:05 | [diff] [blame] | 256 | #endif |
| 257 | |
[email protected] | 89f550b | 2011-06-08 18:34:03 | [diff] [blame] | 258 | const char kSyncGoogleDashboardURL[] = "https://www.google.com/dashboard/"; |
| 259 | |
[email protected] | 6fbf02f | 2011-03-28 23:59:10 | [diff] [blame] | 260 | const char kPasswordManagerLearnMoreURL[] = |
| 261 | #if defined(OS_CHROMEOS) |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 262 | "https://www.google.com/support/chromeos/bin/answer.py?answer=95606"; |
[email protected] | 6fbf02f | 2011-03-28 23:59:10 | [diff] [blame] | 263 | #else |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 264 | "https://www.google.com/support/chrome/bin/answer.py?answer=95606"; |
[email protected] | 6fbf02f | 2011-03-28 23:59:10 | [diff] [blame] | 265 | #endif |
| 266 | |
[email protected] | 0f4758f | 2010-11-19 18:17:50 | [diff] [blame] | 267 | const char kChromeHelpURL[] = |
| 268 | #if defined(OS_CHROMEOS) |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 269 | "https://www.google.com/support/chromeos/"; |
[email protected] | 0f4758f | 2010-11-19 18:17:50 | [diff] [blame] | 270 | #else |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 271 | "https://www.google.com/support/chrome/"; |
[email protected] | 0f4758f | 2010-11-19 18:17:50 | [diff] [blame] | 272 | #endif |
| 273 | |
[email protected] | ba3b476 | 2011-10-20 20:07:43 | [diff] [blame] | 274 | const char kPageInfoHelpCenterURL[] = |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 275 | #if defined(OS_CHROMEOS) |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 276 | "https://www.google.com/support/chromeos/bin/answer.py?answer=95617"; |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 277 | #else |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 278 | "https://www.google.com/support/chrome/bin/answer.py?answer=95617"; |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 279 | #endif |
| 280 | |
| 281 | const char kCrashReasonURL[] = |
| 282 | #if defined(OS_CHROMEOS) |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 283 | "https://www.google.com/support/chromeos/bin/answer.py?answer=1047340"; |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 284 | #else |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 285 | "https://www.google.com/support/chrome/bin/answer.py?answer=95669"; |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 286 | #endif |
| 287 | |
[email protected] | a8f02439 | 2011-01-13 21:50:16 | [diff] [blame] | 288 | const char kKillReasonURL[] = |
[email protected] | 2517bb7 | 2011-08-12 00:02:28 | [diff] [blame] | 289 | "http://www.google.com/support/chrome/bin/answer.py?answer=1270364"; |
[email protected] | a8f02439 | 2011-01-13 21:50:16 | [diff] [blame] | 290 | |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 291 | const char kPrivacyLearnMoreURL[] = |
| 292 | #if defined(OS_CHROMEOS) |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 293 | "https://www.google.com/support/chromeos/bin/answer.py?answer=1047334"; |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 294 | #else |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 295 | "https://www.google.com/support/chrome/bin/answer.py?answer=114836"; |
[email protected] | 91a7923 | 2010-11-10 18:15:08 | [diff] [blame] | 296 | #endif |
| 297 | |
[email protected] | d39f70b | 2011-01-04 00:08:25 | [diff] [blame] | 298 | const char kChromiumProjectURL[] = "http://code.google.com/chromium/"; |
| 299 | |
[email protected] | c34f644 | 2011-01-05 01:02:51 | [diff] [blame] | 300 | const char kLearnMoreReportingURL[] = |
[email protected] | 463c3fc | 2011-04-05 23:35:11 | [diff] [blame] | 301 | "https://www.google.com/support/chrome/bin/answer.py?answer=96817"; |
[email protected] | 864a0907 | 2011-02-09 13:59:01 | [diff] [blame] | 302 | |
| 303 | const char kOutdatedPluginLearnMoreURL[] = |
[email protected] | ff268ff | 2011-04-05 19:50:20 | [diff] [blame] | 304 | "https://www.google.com/support/chrome/bin/answer.py?answer=1181003"; |
| 305 | |
| 306 | const char kBlockedPluginLearnMoreURL[] = |
| 307 | "https://www.google.com/support/chrome/bin/answer.py?answer=1247383"; |
[email protected] | c34f644 | 2011-01-05 01:02:51 | [diff] [blame] | 308 | |
[email protected] | 508d103 | 2011-07-26 05:08:34 | [diff] [blame] | 309 | const char kSpeechInputAboutURL[] = |
[email protected] | acda4763 | 2011-09-02 03:51:26 | [diff] [blame] | 310 | "https://www.google.com/support/chrome/bin/answer.py?answer=1407892"; |
[email protected] | 508d103 | 2011-07-26 05:08:34 | [diff] [blame] | 311 | |
[email protected] | 076084a | 2011-07-18 08:04:59 | [diff] [blame] | 312 | const char kLearnMoreRegisterProtocolHandlerURL[] = |
| 313 | "http://www.google.com/support/chrome/bin/answer.py?answer=1382847"; |
| 314 | |
[email protected] | ddf5209 | 2011-10-05 01:35:49 | [diff] [blame] | 315 | const char kSyncLearnMoreURL[] = |
| 316 | "http://www.google.com/support/chrome/bin/answer.py?answer=165139"; |
| 317 | |
[email protected] | 4a383555 | 2011-07-22 03:09:19 | [diff] [blame] | 318 | #if defined(OS_CHROMEOS) |
| 319 | const char kCloudPrintLearnMoreURL[] = |
| 320 | "https://www.google.com/support/chromeos/bin/topic.py?topic=29023"; |
| 321 | #endif |
| 322 | |
[email protected] | 3cf7c298 | 2011-08-20 05:48:13 | [diff] [blame] | 323 | const char* const kChromeDebugURLs[] = { |
| 324 | kChromeUICrashURL, |
| 325 | kChromeUIKillURL, |
| 326 | kChromeUIHangURL, |
| 327 | kChromeUIShorthangURL, |
| 328 | kChromeUIGpuCleanURL, |
| 329 | kChromeUIGpuCrashURL, |
| 330 | kChromeUIGpuHangURL, |
| 331 | }; |
| 332 | int kNumberOfChromeDebugURLs = static_cast<int>(arraysize(kChromeDebugURLs)); |
| 333 | |
[email protected] | 2a80aee | 2011-10-07 16:06:03 | [diff] [blame] | 334 | const char kExtensionScheme[] = "chrome-extension"; |
| 335 | |
[email protected] | 7fc13ed | 2010-03-06 05:06:20 | [diff] [blame] | 336 | void RegisterChromeSchemes() { |
[email protected] | 7fc13ed | 2010-03-06 05:06:20 | [diff] [blame] | 337 | url_util::AddStandardScheme(kExtensionScheme); |
[email protected] | 49699e8f | 2010-05-28 15:30:20 | [diff] [blame] | 338 | #if defined(OS_CHROMEOS) |
| 339 | url_util::AddStandardScheme(kCrosScheme); |
| 340 | #endif |
[email protected] | 3fea6c5 | 2010-04-14 15:34:54 | [diff] [blame] | 341 | |
[email protected] | 2a80aee | 2011-10-07 16:06:03 | [diff] [blame] | 342 | // This call will also lock the list of standard schemes. |
| 343 | RegisterContentSchemes(kSavableSchemes); |
[email protected] | 7fc13ed | 2010-03-06 05:06:20 | [diff] [blame] | 344 | } |
| 345 | |
[email protected] | 6aad4bd | 2009-02-26 22:55:17 | [diff] [blame] | 346 | } // namespace chrome |