1 // Copyright 2014 The Chromium Authors 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 8 #include <stddef.h> 9 10 namespace url { 11 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"; 16 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"; 21 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"; 58 59 // Used to separate a standard scheme and the hostname: "://". 60 inline constexpr char kStandardSchemeSeparator[] = "://"; 61 inline constexpr char16_t kStandardSchemeSeparator16[] = u"://"; 62 63 // Max GURL length passed between processes. See url::mojom::kMaxURLChars, which 64 // has the same value, for more details. 65 inline constexpr size_t kMaxURLChars = 2 * 1024 * 1024; 66 67 } // namespace url 68 69 #endif // URL_URL_CONSTANTS_H_ 70