blob: 1c6960391431dccfe747cf2561e9066fad12c32d [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031// Copyright 2014 The Chromium Authors
[email protected]e8ca69c2014-05-07 15:31:192// 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
markdittmer67b71ea2016-03-03 22:40:038#include <stddef.h>
9
[email protected]e8ca69c2014-05-07 15:31:1910namespace url {
11
Daniel Cheng0a9fd9d2024-03-18 16:25:4512inline constexpr char kAboutBlankURL[] = "about:blank";
13inline constexpr char16_t kAboutBlankURL16[] = u"about:blank";
14inline constexpr char kAboutSrcdocURL[] = "about:srcdoc";
15inline constexpr char16_t kAboutSrcdocURL16[] = u"about:srcdoc";
[email protected]8e09c7af2014-06-10 11:46:1716
Daniel Cheng0a9fd9d2024-03-18 16:25:4517inline constexpr char kAboutBlankPath[] = "blank";
18inline constexpr char16_t kAboutBlankPath16[] = u"blank";
19inline constexpr char kAboutSrcdocPath[] = "srcdoc";
20inline constexpr char16_t kAboutSrcdocPath16[] = u"srcdoc";
clamyeff92522017-01-23 22:48:5621
Daniel Cheng0a9fd9d2024-03-18 16:25:4522inline constexpr char kAboutScheme[] = "about";
23inline constexpr char16_t kAboutScheme16[] = u"about";
Hayato Ito5ed87db032024-05-13 07:54:4424inline constexpr char kAndroidScheme[] = "android";
Daniel Cheng0a9fd9d2024-03-18 16:25:4525inline constexpr char kBlobScheme[] = "blob";
26inline constexpr char16_t kBlobScheme16[] = u"blob";
Hayato Ito207d4282024-05-31 02:56:3127inline constexpr char kChromeosSteamScheme[] = "chromeos-steam";
Daniel Cheng0a9fd9d2024-03-18 16:25:4528inline constexpr char kContentScheme[] = "content";
29inline constexpr char16_t kContentScheme16[] = u"content";
30inline constexpr char kContentIDScheme[] = "cid";
31inline constexpr char16_t kContentIDScheme16[] = u"cid";
32inline constexpr char kDataScheme[] = "data";
33inline constexpr char16_t kDataScheme16[] = u"data";
Hayato Ito207d4282024-05-31 02:56:3134inline constexpr char kDrivefsScheme[] = "drivefs";
Daniel Cheng0a9fd9d2024-03-18 16:25:4535inline constexpr char kFileScheme[] = "file";
36inline constexpr char16_t kFileScheme16[] = u"file";
37inline constexpr char kFileSystemScheme[] = "filesystem";
38inline constexpr char16_t kFileSystemScheme16[] = u"filesystem";
39inline constexpr char kFtpScheme[] = "ftp";
40inline constexpr char16_t kFtpScheme16[] = u"ftp";
41inline constexpr char kHttpScheme[] = "http";
42inline constexpr char16_t kHttpScheme16[] = u"http";
43inline constexpr char kHttpsScheme[] = "https";
44inline constexpr char16_t kHttpsScheme16[] = u"https";
45inline constexpr char kJavaScriptScheme[] = "javascript";
46inline constexpr char16_t kJavaScriptScheme16[] = u"javascript";
47inline constexpr char kMailToScheme[] = "mailto";
48inline constexpr char16_t kMailToScheme16[] = u"mailto";
Hayato Itoa17acca2024-05-31 06:08:4949inline constexpr char kMaterializedViewScheme[] = "materialized-view";
Hayato Ito207d4282024-05-31 02:56:3150inline constexpr char kSteamScheme[] = "steam";
Daniel Cheng0a9fd9d2024-03-18 16:25:4551inline constexpr char kTelScheme[] = "tel";
52inline constexpr char16_t kTelScheme16[] = u"tel";
53inline constexpr char kUrnScheme[] = "urn";
54inline constexpr char16_t kUrnScheme16[] = u"urn";
55inline constexpr char kUuidInPackageScheme[] = "uuid-in-package";
56inline constexpr char16_t kUuidInPackageScheme16[] = u"uuid-in-package";
57inline constexpr char kWebcalScheme[] = "webcal";
58inline constexpr char16_t kWebcalScheme16[] = u"webcal";
59inline constexpr char kWsScheme[] = "ws";
60inline constexpr char16_t kWsScheme16[] = u"ws";
61inline constexpr char kWssScheme[] = "wss";
62inline constexpr char16_t kWssScheme16[] = u"wss";
[email protected]e8ca69c2014-05-07 15:31:1963
[email protected]fb4fe0952014-06-05 09:44:2464// Used to separate a standard scheme and the hostname: "://".
Daniel Cheng0a9fd9d2024-03-18 16:25:4565inline constexpr char kStandardSchemeSeparator[] = "://";
66inline constexpr char16_t kStandardSchemeSeparator16[] = u"://";
[email protected]fb4fe0952014-06-05 09:44:2467
Matt Menke7e4e4022024-04-12 18:42:0268// Max GURL length passed between processes. See url::mojom::kMaxURLChars, which
69// has the same value, for more details.
Daniel Cheng0a9fd9d2024-03-18 16:25:4570inline constexpr size_t kMaxURLChars = 2 * 1024 * 1024;
markdittmer67b71ea2016-03-03 22:40:0371
[email protected]e8ca69c2014-05-07 15:31:1972} // namespace url
73
74#endif // URL_URL_CONSTANTS_H_