| Avi Drissman | 3e1a26c | 2022-09-15 20:26:03 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors |
| [email protected] | e8ca69c | 2014-05-07 15:31:19 | [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 | #ifndef URL_URL_CONSTANTS_H_ |
| 6 | #define URL_URL_CONSTANTS_H_ |
| 7 | |
| markdittmer | 67b71ea | 2016-03-03 22:40:03 | [diff] [blame] | 8 | #include <stddef.h> |
| 9 | |
| [email protected] | e8ca69c | 2014-05-07 15:31:19 | [diff] [blame] | 10 | namespace url { |
| 11 | |
| Daniel Cheng | 0a9fd9d | 2024-03-18 16:25:45 | [diff] [blame^] | 12 | inline constexpr char kAboutBlankURL[] = "about:blank"; |
| 13 | inline constexpr char16_t kAboutBlankURL16[] = u"about:blank"; |
| 14 | inline constexpr char kAboutSrcdocURL[] = "about:srcdoc"; |
| 15 | inline constexpr char16_t kAboutSrcdocURL16[] = u"about:srcdoc"; |
| [email protected] | 8e09c7af | 2014-06-10 11:46:17 | [diff] [blame] | 16 | |
| Daniel Cheng | 0a9fd9d | 2024-03-18 16:25:45 | [diff] [blame^] | 17 | inline constexpr char kAboutBlankPath[] = "blank"; |
| 18 | inline constexpr char16_t kAboutBlankPath16[] = u"blank"; |
| 19 | inline constexpr char kAboutSrcdocPath[] = "srcdoc"; |
| 20 | inline constexpr char16_t kAboutSrcdocPath16[] = u"srcdoc"; |
| clamy | eff9252 | 2017-01-23 22:48:56 | [diff] [blame] | 21 | |
| Daniel Cheng | 0a9fd9d | 2024-03-18 16:25:45 | [diff] [blame^] | 22 | inline constexpr char kAboutScheme[] = "about"; |
| 23 | inline constexpr char16_t kAboutScheme16[] = u"about"; |
| 24 | inline constexpr char kBlobScheme[] = "blob"; |
| 25 | inline constexpr char16_t kBlobScheme16[] = u"blob"; |
| 26 | inline constexpr char kContentScheme[] = "content"; |
| 27 | inline constexpr char16_t kContentScheme16[] = u"content"; |
| 28 | inline constexpr char kContentIDScheme[] = "cid"; |
| 29 | inline constexpr char16_t kContentIDScheme16[] = u"cid"; |
| 30 | inline constexpr char kDataScheme[] = "data"; |
| 31 | inline constexpr char16_t kDataScheme16[] = u"data"; |
| 32 | inline constexpr char kFileScheme[] = "file"; |
| 33 | inline constexpr char16_t kFileScheme16[] = u"file"; |
| 34 | inline constexpr char kFileSystemScheme[] = "filesystem"; |
| 35 | inline constexpr char16_t kFileSystemScheme16[] = u"filesystem"; |
| 36 | inline constexpr char kFtpScheme[] = "ftp"; |
| 37 | inline constexpr char16_t kFtpScheme16[] = u"ftp"; |
| 38 | inline constexpr char kHttpScheme[] = "http"; |
| 39 | inline constexpr char16_t kHttpScheme16[] = u"http"; |
| 40 | inline constexpr char kHttpsScheme[] = "https"; |
| 41 | inline constexpr char16_t kHttpsScheme16[] = u"https"; |
| 42 | inline constexpr char kJavaScriptScheme[] = "javascript"; |
| 43 | inline constexpr char16_t kJavaScriptScheme16[] = u"javascript"; |
| 44 | inline constexpr char kMailToScheme[] = "mailto"; |
| 45 | inline constexpr char16_t kMailToScheme16[] = u"mailto"; |
| 46 | inline constexpr char kTelScheme[] = "tel"; |
| 47 | inline constexpr char16_t kTelScheme16[] = u"tel"; |
| 48 | inline constexpr char kUrnScheme[] = "urn"; |
| 49 | inline constexpr char16_t kUrnScheme16[] = u"urn"; |
| 50 | inline constexpr char kUuidInPackageScheme[] = "uuid-in-package"; |
| 51 | inline constexpr char16_t kUuidInPackageScheme16[] = u"uuid-in-package"; |
| 52 | inline constexpr char kWebcalScheme[] = "webcal"; |
| 53 | inline constexpr char16_t kWebcalScheme16[] = u"webcal"; |
| 54 | inline constexpr char kWsScheme[] = "ws"; |
| 55 | inline constexpr char16_t kWsScheme16[] = u"ws"; |
| 56 | inline constexpr char kWssScheme[] = "wss"; |
| 57 | inline constexpr char16_t kWssScheme16[] = u"wss"; |
| [email protected] | e8ca69c | 2014-05-07 15:31:19 | [diff] [blame] | 58 | |
| [email protected] | fb4fe095 | 2014-06-05 09:44:24 | [diff] [blame] | 59 | // Used to separate a standard scheme and the hostname: "://". |
| Daniel Cheng | 0a9fd9d | 2024-03-18 16:25:45 | [diff] [blame^] | 60 | inline constexpr char kStandardSchemeSeparator[] = "://"; |
| 61 | inline constexpr char16_t kStandardSchemeSeparator16[] = u"://"; |
| [email protected] | fb4fe095 | 2014-06-05 09:44:24 | [diff] [blame] | 62 | |
| Daniel Cheng | 0a9fd9d | 2024-03-18 16:25:45 | [diff] [blame^] | 63 | inline constexpr size_t kMaxURLChars = 2 * 1024 * 1024; |
| markdittmer | 67b71ea | 2016-03-03 22:40:03 | [diff] [blame] | 64 | |
| [email protected] | e8ca69c | 2014-05-07 15:31:19 | [diff] [blame] | 65 | } // namespace url |
| 66 | |
| 67 | #endif // URL_URL_CONSTANTS_H_ |