blob: b201483ee7fa4f109b8747f40f17e8dff26f9941 [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";
24inline constexpr char kBlobScheme[] = "blob";
25inline constexpr char16_t kBlobScheme16[] = u"blob";
26inline constexpr char kContentScheme[] = "content";
27inline constexpr char16_t kContentScheme16[] = u"content";
28inline constexpr char kContentIDScheme[] = "cid";
29inline constexpr char16_t kContentIDScheme16[] = u"cid";
30inline constexpr char kDataScheme[] = "data";
31inline constexpr char16_t kDataScheme16[] = u"data";
32inline constexpr char kFileScheme[] = "file";
33inline constexpr char16_t kFileScheme16[] = u"file";
34inline constexpr char kFileSystemScheme[] = "filesystem";
35inline constexpr char16_t kFileSystemScheme16[] = u"filesystem";
36inline constexpr char kFtpScheme[] = "ftp";
37inline constexpr char16_t kFtpScheme16[] = u"ftp";
38inline constexpr char kHttpScheme[] = "http";
39inline constexpr char16_t kHttpScheme16[] = u"http";
40inline constexpr char kHttpsScheme[] = "https";
41inline constexpr char16_t kHttpsScheme16[] = u"https";
42inline constexpr char kJavaScriptScheme[] = "javascript";
43inline constexpr char16_t kJavaScriptScheme16[] = u"javascript";
44inline constexpr char kMailToScheme[] = "mailto";
45inline constexpr char16_t kMailToScheme16[] = u"mailto";
46inline constexpr char kTelScheme[] = "tel";
47inline constexpr char16_t kTelScheme16[] = u"tel";
48inline constexpr char kUrnScheme[] = "urn";
49inline constexpr char16_t kUrnScheme16[] = u"urn";
50inline constexpr char kUuidInPackageScheme[] = "uuid-in-package";
51inline constexpr char16_t kUuidInPackageScheme16[] = u"uuid-in-package";
52inline constexpr char kWebcalScheme[] = "webcal";
53inline constexpr char16_t kWebcalScheme16[] = u"webcal";
54inline constexpr char kWsScheme[] = "ws";
55inline constexpr char16_t kWsScheme16[] = u"ws";
56inline constexpr char kWssScheme[] = "wss";
57inline constexpr char16_t kWssScheme16[] = u"wss";
[email protected]e8ca69c2014-05-07 15:31:1958
[email protected]fb4fe0952014-06-05 09:44:2459// Used to separate a standard scheme and the hostname: "://".
Daniel Cheng0a9fd9d2024-03-18 16:25:4560inline constexpr char kStandardSchemeSeparator[] = "://";
61inline constexpr char16_t kStandardSchemeSeparator16[] = u"://";
[email protected]fb4fe0952014-06-05 09:44:2462
Daniel Cheng0a9fd9d2024-03-18 16:25:4563inline constexpr size_t kMaxURLChars = 2 * 1024 * 1024;
markdittmer67b71ea2016-03-03 22:40:0364
[email protected]e8ca69c2014-05-07 15:31:1965} // namespace url
66
67#endif // URL_URL_CONSTANTS_H_