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 chrome { | 7 namespace chrome { |
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 kChromeInternalScheme[] = "chrome-internal"; | 15 const char kChromeInternalScheme[] = "chrome-internal"; |
16 const char kChromeUIScheme[] = "chrome"; | 16 const char kChromeUIScheme[] = "chrome"; |
17 const char kDataScheme[] = "data"; | 17 const char kDataScheme[] = "data"; |
18 const char kFileScheme[] = "file"; | 18 const char kFileScheme[] = "file"; |
19 const char kFileSystemScheme[] = "filesystem"; | 19 const char kFileSystemScheme[] = "filesystem"; |
20 const char kFtpScheme[] = "ftp"; | 20 const char kFtpScheme[] = "ftp"; |
21 const char kGuestScheme[] = "chrome-guest"; | 21 const char kGuestScheme[] = "chrome-guest"; |
22 const char kHttpScheme[] = "http"; | 22 const char kHttpScheme[] = "http"; |
23 const char kHttpsScheme[] = "https"; | 23 const char kHttpsScheme[] = "https"; |
24 const char kJavaScriptScheme[] = "javascript"; | 24 const char kJavaScriptScheme[] = "javascript"; |
25 const char kMailToScheme[] = "mailto"; | |
26 const char kMetadataScheme[] = "metadata"; | |
27 } // namespace chrome | 25 } // namespace chrome |
28 | 26 |
29 namespace content { | 27 namespace content { |
30 | 28 |
| 29 const char kMailToScheme[] = "mailto"; |
| 30 const char kMetadataScheme[] = "metadata"; |
31 const char kSwappedOutScheme[] = "swappedout"; | 31 const char kSwappedOutScheme[] = "swappedout"; |
32 const char kViewSourceScheme[] = "view-source"; | 32 const char kViewSourceScheme[] = "view-source"; |
33 | 33 |
34 const char kAboutBlankURL[] = "about:blank"; | 34 const char kAboutBlankURL[] = "about:blank"; |
35 const char kAboutSrcDocURL[] = "about:srcdoc"; | 35 const char kAboutSrcDocURL[] = "about:srcdoc"; |
36 | 36 |
37 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 37 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
38 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; | 38 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; |
39 const char kChromeUIAccessibilityHost[] = "accessibility"; | 39 const char kChromeUIAccessibilityHost[] = "accessibility"; |
40 const char kChromeUIBlobInternalsHost[] = "blob-internals"; | 40 const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
(...skipping 24 matching lines...) Expand all Loading... |
65 | 65 |
66 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 66 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
67 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 67 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
68 | 68 |
69 // This URL is loaded when a page is swapped out and replaced by a page in a | 69 // This URL is loaded when a page is swapped out and replaced by a page in a |
70 // different renderer process. It must have a unique origin that cannot be | 70 // different renderer process. It must have a unique origin that cannot be |
71 // scripted by other pages in the process. | 71 // scripted by other pages in the process. |
72 const char kSwappedOutURL[] = "swappedout://"; | 72 const char kSwappedOutURL[] = "swappedout://"; |
73 | 73 |
74 } // namespace content | 74 } // namespace content |
OLD | NEW |