1 // Copyright (c) 2011 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 // Contains constants for known URLs and portions thereof. 6 7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ 8 #define CHROME_COMMON_URL_CONSTANTS_H_ 9 #pragma once 10 11 #include "content/common/url_constants.h" 12 13 namespace chrome { 14 15 // Null terminated list of schemes that are savable. 16 extern const char* kSavableSchemes[]; 17 18 // About URLs (including schemes). 19 extern const char kAboutAboutURL[]; 20 extern const char kAboutAppCacheInternalsURL[]; 21 extern const char kAboutBrowserCrash[]; 22 extern const char kAboutConflicts[]; 23 extern const char kAboutCacheURL[]; 24 extern const char kAboutKillURL[]; 25 extern const char kAboutCreditsURL[]; 26 extern const char kAboutDNSURL[]; 27 extern const char kAboutFlagsURL[]; 28 extern const char kAboutGpuURL[]; 29 extern const char kAboutGpuCrashURL[]; 30 extern const char kAboutGpuHangURL[]; 31 extern const char kAboutHangURL[]; 32 extern const char kAboutHistogramsURL[]; 33 extern const char kAboutMemoryURL[]; 34 extern const char kAboutNetInternalsURL[]; 35 extern const char kAboutPluginsURL[]; 36 extern const char kAboutShorthangURL[]; 37 extern const char kAboutSyncURL[]; 38 extern const char kAboutSyncInternalsURL[]; 39 extern const char kAboutTermsURL[]; 40 extern const char kAboutVersionURL[]; 41 42 // chrome: URLs (including schemes). Should be kept in sync with the 43 // components below. 44 extern const char kChromeUIAboutAboutURL[]; 45 extern const char kChromeUIAboutCreditsURL[]; 46 extern const char kChromeUIAboutURL[]; 47 extern const char kChromeUIAppLauncherURL[]; 48 extern const char kChromeUIBookmarksURL[]; 49 extern const char kChromeUIBugReportURL[]; 50 extern const char kChromeUIConflictsURL[]; 51 extern const char kChromeUIConstrainedHTMLTestURL[]; 52 extern const char kChromeUICrashesURL[]; 53 extern const char kChromeUIDevToolsURL[]; 54 extern const char kChromeUIDownloadsURL[]; 55 extern const char kChromeUIExtensionIconURL[]; 56 extern const char kChromeUIExtensionsURL[]; 57 extern const char kChromeUIFlagsURL[]; 58 extern const char kChromeUIFaviconURL[]; 59 extern const char kChromeUIHistory2URL[]; 60 extern const char kChromeUIHistoryURL[]; 61 extern const char kChromeUIIPCURL[]; 62 extern const char kChromeUIKeyboardURL[]; 63 extern const char kChromeUINewTabURL[]; 64 extern const char kChromeUIPluginsURL[]; 65 extern const char kChromeUIPrintURL[]; 66 extern const char kChromeUISettingsURL[]; 67 extern const char kChromeUITextfieldsURL[]; 68 69 #if defined(OS_CHROMEOS) 70 extern const char kChromeUIAboutOSCreditsURL[]; 71 extern const char kChromeUIActivationMessage[]; 72 extern const char kChromeUIActiveDownloadsURL[]; 73 extern const char kChromeUIChooseMobileNetworkURL[]; 74 extern const char kChromeUICollectedCookiesURL[]; 75 extern const char kChromeUIFileBrowseURL[]; 76 extern const char kChromeUIHttpAuthURL[]; 77 extern const char kChromeUIImageBurnerURL[]; 78 extern const char kChromeUIKeyboardOverlayURL[]; 79 extern const char kChromeUIMediaplayerURL[]; 80 extern const char kChromeUIMobileSetupURL[]; 81 extern const char kChromeUIProxySettingsURL[]; 82 extern const char kChromeUIRegisterPageURL[]; 83 extern const char kChromeUISlideshowURL[]; 84 extern const char kChromeUISimUnlockURL[]; 85 extern const char kChromeUISystemInfoURL[]; 86 extern const char kChromeUIUserImageURL[]; 87 extern const char kChromeUIEnterpriseEnrollmentURL[]; 88 #endif 89 90 // chrome components of URLs. Should be kept in sync with the full URLs 91 // above. 92 extern const char kChromeUIBookmarksHost[]; 93 extern const char kChromeUIBugReportHost[]; 94 extern const char kChromeUIConflictsHost[]; 95 extern const char kChromeUICrashesHost[]; 96 extern const char kChromeUIDevToolsHost[]; 97 extern const char kChromeUIDialogHost[]; 98 extern const char kChromeUIDownloadsHost[]; 99 extern const char kChromeUIExtensionIconHost[]; 100 extern const char kChromeUIExtensionsHost[]; 101 extern const char kChromeUIFaviconHost[]; 102 extern const char kChromeUIFlagsHost[]; 103 extern const char kChromeUIGpuInternalsHost[]; 104 extern const char kChromeUIHistory2Host[]; 105 extern const char kChromeUIHistoryHost[]; 106 extern const char kChromeUIKeyboardHost[]; 107 extern const char kChromeUINetInternalsHost[]; 108 extern const char kChromeUINewTabHost[]; 109 extern const char kChromeUIPluginsHost[]; 110 extern const char kChromeUIPrintHost[]; 111 extern const char kChromeUIRemotingHost[]; 112 extern const char kChromeUIRemotingResourcesHost[]; 113 extern const char kChromeUIResourcesHost[]; 114 extern const char kChromeUIScreenshotPath[]; 115 extern const char kChromeUISettingsHost[]; 116 extern const char kChromeUISyncInternalsHost[]; 117 extern const char kChromeUISyncResourcesHost[]; 118 extern const char kChromeUITextfieldsHost[]; 119 extern const char kChromeUIThemePath[]; 120 extern const char kChromeUIThumbnailPath[]; 121 122 #if defined(OS_CHROMEOS) 123 extern const char kChromeUIActiveDownloadsHost[]; 124 extern const char kChromeUIActivationMessageHost[]; 125 extern const char kChromeUIChooseMobileNetworkHost[]; 126 extern const char kChromeUICollectedCookiesHost[]; 127 extern const char kChromeUIHttpAuthHost[]; 128 extern const char kChromeUIImageBurnerHost[]; 129 extern const char kChromeUIKeyboardOverlayHost[]; 130 extern const char kChromeUIMediaplayerHost[]; 131 extern const char kChromeUIMobileSetupHost[]; 132 extern const char kChromeUIProxySettingsHost[]; 133 extern const char kChromeUIRegisterPageHost[]; 134 extern const char kChromeUISlideshowHost[]; 135 extern const char kChromeUISimUnlockHost[]; 136 extern const char kChromeUISystemInfoHost[]; 137 extern const char kChromeUIMenu[]; 138 extern const char kChromeUIWrenchMenu[]; 139 extern const char kChromeUINetworkMenu[]; 140 extern const char kChromeUIUserImageHost[]; 141 extern const char kChromeUIEnterpriseEnrollmentHost[]; 142 #endif 143 144 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) 145 extern const char kChromeUILoginContainerHost[]; 146 extern const char kChromeUILoginHost[]; 147 #endif 148 149 // AppCache related URL. 150 extern const char kAppCacheViewInternalsURL[]; 151 152 // Blob related URL. 153 extern const char kBlobViewInternalsURL[]; 154 155 // Cloud Print dialog URL components. 156 extern const char kCloudPrintResourcesURL[]; 157 extern const char kCloudPrintResourcesHost[]; 158 extern const char kCloudPrintSetupHost[]; 159 160 // Network related URLs. 161 extern const char kNetworkViewCacheURL[]; 162 extern const char kNetworkViewInternalsURL[]; 163 164 // Sync related URLs. 165 extern const char kSyncViewInternalsURL[]; 166 167 // GPU related URLs 168 extern const char kGpuInternalsURL[]; 169 170 // Options sub-pages. 171 extern const char kAdvancedOptionsSubPage[]; 172 extern const char kAutofillSubPage[]; 173 extern const char kBrowserOptionsSubPage[]; 174 extern const char kClearBrowserDataSubPage[]; 175 extern const char kContentSettingsSubPage[]; 176 extern const char kContentSettingsExceptionsSubPage[]; 177 extern const char kImportDataSubPage[]; 178 extern const char kInstantConfirmPage[]; 179 extern const char kLanguageOptionsSubPage[]; 180 extern const char kPersonalOptionsSubPage[]; 181 extern const char kPasswordManagerSubPage[]; 182 extern const char kSearchEnginesSubPage[]; 183 extern const char kSyncSetupSubPage[]; 184 #if defined(OS_CHROMEOS) 185 extern const char kInternetOptionsSubPage[]; 186 extern const char kSystemOptionsSubPage[]; 187 #endif 188 189 extern const char kPasswordManagerLearnMoreURL[]; 190 191 // General help link for Chrome. 192 extern const char kChromeHelpURL[]; 193 194 // "What do these mean?" URL for the Page Info bubble. 195 extern const char kPageInfoHelpCenterURL[]; 196 197 // "Learn more" URL for "Aw snap" page. 198 extern const char kCrashReasonURL[]; 199 200 // "Learn more" URL for killed tab page. 201 extern const char kKillReasonURL[]; 202 203 // "Learn more" URL for the Privacy section under Options. 204 extern const char kPrivacyLearnMoreURL[]; 205 206 // The URL for the Chromium project used in the About dialog. 207 extern const char kChromiumProjectURL[]; 208 209 // The URL for the "Learn more" page for the usage/crash reporting option in the 210 // first run dialog. 211 extern const char kLearnMoreReportingURL[]; 212 213 // The URL for the "Learn more" page for the outdated plugin infobar. 214 extern const char kOutdatedPluginLearnMoreURL[]; 215 216 // The URL for the "Learn more" page for the blocked plugin infobar. 217 extern const char kBlockedPluginLearnMoreURL[]; 218 219 // Call near the beginning of startup to register Chrome's internal URLs that 220 // should be parsed as "standard" with the googleurl library. 221 void RegisterChromeSchemes(); 222 223 } // namespace chrome 224 225 #endif // CHROME_COMMON_URL_CONSTANTS_H_ 226