• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 kAndroidScheme[] = "android";
25 inline constexpr char kBlobScheme[] = "blob";
26 inline constexpr char16_t kBlobScheme16[] = u"blob";
27 inline constexpr char kChromeosSteamScheme[] = "chromeos-steam";
28 inline constexpr char kContentScheme[] = "content";
29 inline constexpr char16_t kContentScheme16[] = u"content";
30 inline constexpr char kContentIDScheme[] = "cid";
31 inline constexpr char16_t kContentIDScheme16[] = u"cid";
32 inline constexpr char kDataScheme[] = "data";
33 inline constexpr char16_t kDataScheme16[] = u"data";
34 inline constexpr char kDrivefsScheme[] = "drivefs";
35 inline constexpr char kFileScheme[] = "file";
36 inline constexpr char16_t kFileScheme16[] = u"file";
37 inline constexpr char kFileSystemScheme[] = "filesystem";
38 inline constexpr char16_t kFileSystemScheme16[] = u"filesystem";
39 inline constexpr char kFtpScheme[] = "ftp";
40 inline constexpr char16_t kFtpScheme16[] = u"ftp";
41 inline constexpr char kHttpScheme[] = "http";
42 inline constexpr char16_t kHttpScheme16[] = u"http";
43 inline constexpr char kHttpsScheme[] = "https";
44 inline constexpr char16_t kHttpsScheme16[] = u"https";
45 inline constexpr char kJavaScriptScheme[] = "javascript";
46 inline constexpr char16_t kJavaScriptScheme16[] = u"javascript";
47 inline constexpr char kMailToScheme[] = "mailto";
48 inline constexpr char16_t kMailToScheme16[] = u"mailto";
49 inline constexpr char kMaterializedViewScheme[] = "materialized-view";
50 inline constexpr char kSteamScheme[] = "steam";
51 inline constexpr char kTelScheme[] = "tel";
52 inline constexpr char16_t kTelScheme16[] = u"tel";
53 inline constexpr char kUrnScheme[] = "urn";
54 inline constexpr char16_t kUrnScheme16[] = u"urn";
55 inline constexpr char kUuidInPackageScheme[] = "uuid-in-package";
56 inline constexpr char16_t kUuidInPackageScheme16[] = u"uuid-in-package";
57 inline constexpr char kWebcalScheme[] = "webcal";
58 inline constexpr char16_t kWebcalScheme16[] = u"webcal";
59 inline constexpr char kWsScheme[] = "ws";
60 inline constexpr char16_t kWsScheme16[] = u"ws";
61 inline constexpr char kWssScheme[] = "wss";
62 inline constexpr char16_t kWssScheme16[] = u"wss";
63 
64 // Used to separate a standard scheme and the hostname: "://".
65 inline constexpr char kStandardSchemeSeparator[] = "://";
66 inline constexpr char16_t kStandardSchemeSeparator16[] = u"://";
67 
68 // Max GURL length passed between processes. See url::mojom::kMaxURLChars, which
69 // has the same value, for more details.
70 inline constexpr size_t kMaxURLChars = 2 * 1024 * 1024;
71 
72 }  // namespace url
73 
74 #endif  // URL_URL_CONSTANTS_H_
75