url_constants.h revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
1// Copyright (c) 2010 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 11namespace chrome { 12 13// Canonical schemes you can use as input to GURL.SchemeIs(). 14extern const char kAboutScheme[]; 15extern const char kBlobScheme[]; 16extern const char kChromeInternalScheme[]; 17extern const char kChromeUIScheme[]; // The scheme used for DOMUIs. 18extern const char kCrosScheme[]; // The scheme used for ChromeOS. 19extern const char kDataScheme[]; 20extern const char kExtensionScheme[]; 21extern const char kFileScheme[]; 22extern const char kFtpScheme[]; 23extern const char kGearsScheme[]; 24extern const char kHttpScheme[]; 25extern const char kHttpsScheme[]; 26extern const char kJavaScriptScheme[]; 27extern const char kMailToScheme[]; 28extern const char kMetadataScheme[]; 29extern const char kUserScriptScheme[]; 30extern const char kViewSourceScheme[]; 31 32// Used to separate a standard scheme and the hostname: "://". 33extern const char kStandardSchemeSeparator[]; 34 35// Null terminated list of schemes that are savable. 36extern const char* kSavableSchemes[]; 37 38// About URLs (including schemes). 39extern const char kAboutAboutURL[]; 40extern const char kAboutAppCacheInternalsURL[]; 41extern const char kAboutBlankURL[]; 42extern const char kAboutBrowserCrash[]; 43extern const char kAboutCacheURL[]; 44extern const char kAboutCrashURL[]; 45extern const char kAboutCreditsURL[]; 46extern const char kAboutDNSURL[]; 47extern const char kAboutGpuCrashURL[]; 48extern const char kAboutGpuHangURL[]; 49extern const char kAboutHangURL[]; 50extern const char kAboutHistogramsURL[]; 51extern const char kAboutLabsURL[]; 52extern const char kAboutMemoryURL[]; 53extern const char kAboutNetInternalsURL[]; 54extern const char kAboutPluginsURL[]; 55extern const char kAboutShorthangURL[]; 56extern const char kAboutTermsURL[]; 57extern const char kAboutVaporwareURL[]; 58extern const char kAboutVersionURL[]; 59 60// chrome: URLs (including schemes). Should be kept in sync with the 61// components below. 62extern const char kChromeUIAboutURL[]; 63extern const char kChromeUIAppLauncherURL[]; 64extern const char kChromeUIBookmarksURL[]; 65extern const char kChromeUIBugReportURL[]; 66extern const char kChromeUIDevToolsURL[]; 67extern const char kChromeUIDownloadsURL[]; 68extern const char kChromeUIExtensionsURL[]; 69extern const char kChromeUIFavIconURL[]; 70extern const char kChromeUIHistory2URL[]; 71extern const char kChromeUIHistoryURL[]; 72extern const char kChromeUIIPCURL[]; 73extern const char kChromeUIKeyboardURL[]; 74extern const char kChromeUILabsURL[]; 75extern const char kChromeUINewTabURL[]; 76extern const char kChromeUIPluginsURL[]; 77extern const char kChromeUIPrintURL[]; 78extern const char kChromeUISettingsURL[]; 79 80#if defined(OS_CHROMEOS) 81extern const char kChromeUIFileBrowseURL[]; 82extern const char kChromeUIImageBurnerURL[]; 83extern const char kChromeUIMediaplayerURL[]; 84extern const char kChromeUIMobileSetupURL[]; 85extern const char kChromeUIRegisterPageURL[]; 86extern const char kChromeUISlideshowURL[]; 87extern const char kChromeUISystemInfoURL[]; 88#endif 89 90// chrome components of URLs. Should be kept in sync with the full URLs 91// above. 92extern const char kChromeUIBookmarksHost[]; 93extern const char kChromeUIBugReportHost[]; 94extern const char kChromeUIDevToolsHost[]; 95extern const char kChromeUIDialogHost[]; 96extern const char kChromeUIDownloadsHost[]; 97extern const char kChromeUIExtensionsHost[]; 98extern const char kChromeUIFavIconHost[]; 99extern const char kChromeUIHistory2Host[]; 100extern const char kChromeUIHistoryHost[]; 101extern const char kChromeUIInspectorHost[]; 102extern const char kChromeUIKeyboardHost[]; 103extern const char kChromeUILabsHost[]; 104extern const char kChromeUINetInternalsHost[]; 105extern const char kChromeUINewTabHost[]; 106extern const char kChromeUIPluginsHost[]; 107extern const char kChromeUIPrintHost[]; 108extern const char kChromeUIRemotingHost[]; 109extern const char kChromeUIRemotingResourcesHost[]; 110extern const char kChromeUIResourcesHost[]; 111extern const char kChromeUIScreenshotPath[]; 112extern const char kChromeUISettingsHost[]; 113extern const char kChromeUISyncResourcesHost[]; 114extern const char kChromeUIThemePath[]; 115extern const char kChromeUIThumbnailPath[]; 116 117#if defined(OS_CHROMEOS) 118extern const char kChromeUIFileBrowseHost[]; 119extern const char kChromeUIImageBurnerHost[]; 120extern const char kChromeUIMediaplayerHost[]; 121extern const char kChromeUIMobileSetupHost[]; 122extern const char kChromeUIRegisterPageHost[]; 123extern const char kChromeUISlideshowHost[]; 124extern const char kChromeUISystemInfoHost[]; 125#endif 126 127// AppCache related URL. 128extern const char kAppCacheViewInternalsURL[]; 129 130// Cloud Print dialog URL components. 131extern const char kCloudPrintResourcesURL[]; 132extern const char kCloudPrintResourcesHost[]; 133 134// Network related URLs. 135extern const char kNetworkViewCacheURL[]; 136extern const char kNetworkViewInternalsURL[]; 137 138// Options sub-pages. 139extern const char kDefaultOptionsSubPage[]; 140extern const char kBrowserOptionsSubPage[]; 141extern const char kPersonalOptionsSubPage[]; 142extern const char kAdvancedOptionsSubPage[]; 143extern const char kAutoFillSubPage[]; 144extern const char kSearchEnginesOptionsSubPage[]; 145extern const char kClearBrowserDataSubPage[]; 146extern const char kImportDataSubPage[]; 147extern const char kContentSettingsSubPage[]; 148#if defined(OS_CHROMEOS) 149extern const char kSystemOptionsSubPage[]; 150extern const char kLanguageOptionsSubPage[]; 151extern const char kInternetOptionsSubPage[]; 152#endif 153 154// Call near the beginning of startup to register Chrome's internal URLs that 155// should be parsed as "standard" with the googleurl library. 156void RegisterChromeSchemes(); 157 158} // namespace chrome 159 160#endif // CHROME_COMMON_URL_CONSTANTS_H_ 161