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