OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Contains constants for known URLs and portions thereof. | 5 // Contains constants for known URLs and portions thereof. |
6 | 6 |
7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ | 7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ |
8 #define CHROME_COMMON_URL_CONSTANTS_H_ | 8 #define CHROME_COMMON_URL_CONSTANTS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 namespace chrome { | 11 namespace chrome { |
12 | 12 |
13 // Canonical schemes you can use as input to GURL.SchemeIs(). | 13 // Canonical schemes you can use as input to GURL.SchemeIs(). |
14 extern const char kAboutScheme[]; | 14 extern const char kAboutScheme[]; |
15 extern const char kBlobScheme[]; | 15 extern const char kBlobScheme[]; |
16 extern const char kChromeDevToolsScheme[]; | 16 extern const char kChromeDevToolsScheme[]; |
17 extern const char kChromeInternalScheme[]; | 17 extern const char kChromeInternalScheme[]; |
18 extern const char kChromeUIScheme[]; // The scheme used for DOMUIs. | 18 extern const char kChromeUIScheme[]; // The scheme used for DOMUIs. |
19 extern const char kCrosScheme[]; // The scheme used for ChromeOS. | 19 extern const char kCrosScheme[]; // The scheme used for ChromeOS. |
20 extern const char kDataScheme[]; | 20 extern const char kDataScheme[]; |
21 extern const char kExtensionScheme[]; | 21 extern const char kExtensionScheme[]; |
22 extern const char kFileScheme[]; | 22 extern const char kFileScheme[]; |
23 extern const char kFtpScheme[]; | 23 extern const char kFtpScheme[]; |
24 extern const char kGearsScheme[]; | 24 extern const char kGearsScheme[]; |
25 extern const char kHttpScheme[]; | 25 extern const char kHttpScheme[]; |
26 extern const char kHttpsScheme[]; | 26 extern const char kHttpsScheme[]; |
| 27 extern const char kHttpsvScheme[]; |
27 extern const char kJavaScriptScheme[]; | 28 extern const char kJavaScriptScheme[]; |
28 extern const char kMailToScheme[]; | 29 extern const char kMailToScheme[]; |
29 extern const char kMetadataScheme[]; | 30 extern const char kMetadataScheme[]; |
30 extern const char kUserScriptScheme[]; | 31 extern const char kUserScriptScheme[]; |
31 extern const char kViewSourceScheme[]; | 32 extern const char kViewSourceScheme[]; |
32 | 33 |
33 // Used to separate a standard scheme and the hostname: "://". | 34 // Used to separate a standard scheme and the hostname: "://". |
34 extern const char kStandardSchemeSeparator[]; | 35 extern const char kStandardSchemeSeparator[]; |
35 | 36 |
36 // Null terminated list of schemes that are savable. | 37 // Null terminated list of schemes that are savable. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // first run dialog. | 212 // first run dialog. |
212 extern const char kLearnMoreReportingURL[]; | 213 extern const char kLearnMoreReportingURL[]; |
213 | 214 |
214 // Call near the beginning of startup to register Chrome's internal URLs that | 215 // Call near the beginning of startup to register Chrome's internal URLs that |
215 // should be parsed as "standard" with the googleurl library. | 216 // should be parsed as "standard" with the googleurl library. |
216 void RegisterChromeSchemes(); | 217 void RegisterChromeSchemes(); |
217 | 218 |
218 } // namespace chrome | 219 } // namespace chrome |
219 | 220 |
220 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 221 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |