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"; | |
11 | 10 |
12 // Before adding new chrome schemes please check with security@chromium.org. | 11 // Before adding new chrome schemes please check with security@chromium.org. |
13 // There are security implications associated with introducing new schemes. | 12 // There are security implications associated with introducing new schemes. |
14 const char kChromeDevToolsScheme[] = "chrome-devtools"; | 13 const char kChromeDevToolsScheme[] = "chrome-devtools"; |
15 const char kChromeUIScheme[] = "chrome"; | 14 const char kChromeUIScheme[] = "chrome"; |
16 const char kDataScheme[] = "data"; | |
17 const char kFileScheme[] = "file"; | |
18 const char kFileSystemScheme[] = "filesystem"; | |
19 const char kFtpScheme[] = "ftp"; | |
20 const char kGuestScheme[] = "chrome-guest"; | 15 const char kGuestScheme[] = "chrome-guest"; |
21 const char kJavaScriptScheme[] = "javascript"; | |
22 const char kMailToScheme[] = "mailto"; | |
23 const char kMetadataScheme[] = "metadata"; | 16 const char kMetadataScheme[] = "metadata"; |
24 const char kSwappedOutScheme[] = "swappedout"; | 17 const char kSwappedOutScheme[] = "swappedout"; |
25 const char kViewSourceScheme[] = "view-source"; | 18 const char kViewSourceScheme[] = "view-source"; |
26 | 19 |
27 const char kAboutBlankURL[] = "about:blank"; | 20 const char kAboutBlankURL[] = "about:blank"; |
28 const char kAboutSrcDocURL[] = "about:srcdoc"; | 21 const char kAboutSrcDocURL[] = "about:srcdoc"; |
29 | 22 |
30 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 23 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
31 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; | 24 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; |
32 const char kChromeUIAccessibilityHost[] = "accessibility"; | 25 const char kChromeUIAccessibilityHost[] = "accessibility"; |
(...skipping 26 matching lines...) Expand all Loading... |
59 | 52 |
60 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 53 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
61 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 54 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
62 | 55 |
63 // This URL is loaded when a page is swapped out and replaced by a page in a | 56 // This URL is loaded when a page is swapped out and replaced by a page in a |
64 // different renderer process. It must have a unique origin that cannot be | 57 // different renderer process. It must have a unique origin that cannot be |
65 // scripted by other pages in the process. | 58 // scripted by other pages in the process. |
66 const char kSwappedOutURL[] = "swappedout://"; | 59 const char kSwappedOutURL[] = "swappedout://"; |
67 | 60 |
68 } // namespace content | 61 } // namespace content |
OLD | NEW |