OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "url/url_constants.h" | 5 #include "url/url_constants.h" |
6 | 6 |
7 namespace url { | 7 namespace url { |
8 | 8 |
9 const char kAboutBlankURL[] = "about:blank"; | 9 const char kAboutBlankURL[] = "about:blank"; |
10 | 10 |
11 const char kAboutScheme[] = "about"; | 11 const char kAboutScheme[] = "about"; |
12 const char kBlobScheme[] = "blob"; | 12 const char kBlobScheme[] = "blob"; |
13 const char kContentScheme[] = "content"; | 13 const char kContentScheme[] = "content"; |
14 const char kContentIDScheme[] = "cid"; | 14 const char kContentIDScheme[] = "cid"; |
15 const char kDataScheme[] = "data"; | 15 const char kDataScheme[] = "data"; |
16 const char kFileScheme[] = "file"; | 16 const char kFileScheme[] = "file"; |
17 const char kFileSystemScheme[] = "filesystem"; | 17 const char kFileSystemScheme[] = "filesystem"; |
18 const char kFtpScheme[] = "ftp"; | 18 const char kFtpScheme[] = "ftp"; |
19 const char kGopherScheme[] = "gopher"; | 19 const char kGopherScheme[] = "gopher"; |
20 const char kHttpScheme[] = "http"; | 20 const char kHttpScheme[] = "http"; |
21 const char kHttpSuboriginScheme[] = "http-so"; | |
Mike West
2016/09/13 18:00:18
Perhaps not for this CL, but WDYT about locking su
jww
2016/09/13 18:36:04
I think that since they're purely restrictive, I d
| |
21 const char kHttpsScheme[] = "https"; | 22 const char kHttpsScheme[] = "https"; |
23 const char kHttpsSuboriginScheme[] = "https-so"; | |
22 const char kJavaScriptScheme[] = "javascript"; | 24 const char kJavaScriptScheme[] = "javascript"; |
23 const char kMailToScheme[] = "mailto"; | 25 const char kMailToScheme[] = "mailto"; |
24 const char kWsScheme[] = "ws"; | 26 const char kWsScheme[] = "ws"; |
25 const char kWssScheme[] = "wss"; | 27 const char kWssScheme[] = "wss"; |
26 | 28 |
27 const char kStandardSchemeSeparator[] = "://"; | 29 const char kStandardSchemeSeparator[] = "://"; |
28 | 30 |
29 const size_t kMaxURLChars = 2 * 1024 * 1024; | 31 const size_t kMaxURLChars = 2 * 1024 * 1024; |
30 | 32 |
31 } // namespace url | 33 } // namespace url |
OLD | NEW |