OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/common/url_constants.h" | 5 #include "content/public/common/url_constants.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 const char kAboutScheme[] = "about"; | 9 const char kAboutScheme[] = "about"; |
10 const char kBlobScheme[] = "blob"; | 10 const char kBlobScheme[] = "blob"; |
11 | 11 |
12 // Before adding new chrome schemes please check with security@chromium.org. | 12 // Before adding new chrome schemes please check with security@chromium.org. |
13 // There are security implications associated with introducing new schemes. | 13 // There are security implications associated with introducing new schemes. |
14 const char kChromeDevToolsScheme[] = "chrome-devtools"; | 14 const char kChromeDevToolsScheme[] = "chrome-devtools"; |
15 const char kChromeUIScheme[] = "chrome"; | 15 const char kChromeUIScheme[] = "chrome"; |
16 const char kDataScheme[] = "data"; | 16 const char kDataScheme[] = "data"; |
17 const char kFileScheme[] = "file"; | 17 const char kFileScheme[] = "file"; |
18 const char kFileSystemScheme[] = "filesystem"; | 18 const char kFileSystemScheme[] = "filesystem"; |
19 const char kFtpScheme[] = "ftp"; | 19 const char kFtpScheme[] = "ftp"; |
20 const char kGuestScheme[] = "chrome-guest"; | 20 const char kGuestScheme[] = "chrome-guest"; |
21 const char kHttpScheme[] = "http"; | |
22 const char kHttpsScheme[] = "https"; | |
23 const char kJavaScriptScheme[] = "javascript"; | 21 const char kJavaScriptScheme[] = "javascript"; |
24 const char kMailToScheme[] = "mailto"; | 22 const char kMailToScheme[] = "mailto"; |
25 const char kMetadataScheme[] = "metadata"; | 23 const char kMetadataScheme[] = "metadata"; |
26 const char kSwappedOutScheme[] = "swappedout"; | 24 const char kSwappedOutScheme[] = "swappedout"; |
27 const char kViewSourceScheme[] = "view-source"; | 25 const char kViewSourceScheme[] = "view-source"; |
28 | 26 |
29 const char kAboutBlankURL[] = "about:blank"; | 27 const char kAboutBlankURL[] = "about:blank"; |
30 const char kAboutSrcDocURL[] = "about:srcdoc"; | 28 const char kAboutSrcDocURL[] = "about:srcdoc"; |
31 | 29 |
32 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 30 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
(...skipping 28 matching lines...) Expand all Loading... |
61 | 59 |
62 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 60 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
63 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 61 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
64 | 62 |
65 // This URL is loaded when a page is swapped out and replaced by a page in a | 63 // This URL is loaded when a page is swapped out and replaced by a page in a |
66 // different renderer process. It must have a unique origin that cannot be | 64 // different renderer process. It must have a unique origin that cannot be |
67 // scripted by other pages in the process. | 65 // scripted by other pages in the process. |
68 const char kSwappedOutURL[] = "swappedout://"; | 66 const char kSwappedOutURL[] = "swappedout://"; |
69 | 67 |
70 } // namespace content | 68 } // namespace content |
OLD | NEW |