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 } // namespace chrome |
| 13 |
| 14 namespace content { |
| 15 |
12 // Before adding new chrome schemes please check with security@chromium.org. | 16 // Before adding new chrome schemes please check with security@chromium.org. |
13 // There are security implications associated with introducing new schemes. | 17 // There are security implications associated with introducing new schemes. |
14 const char kChromeDevToolsScheme[] = "chrome-devtools"; | 18 const char kChromeDevToolsScheme[] = "chrome-devtools"; |
15 } // namespace chrome | |
16 | |
17 namespace content { | |
18 | |
19 const char kChromeUIScheme[] = "chrome"; | 19 const char kChromeUIScheme[] = "chrome"; |
20 const char kDataScheme[] = "data"; | 20 const char kDataScheme[] = "data"; |
21 const char kFileScheme[] = "file"; | 21 const char kFileScheme[] = "file"; |
22 const char kFileSystemScheme[] = "filesystem"; | 22 const char kFileSystemScheme[] = "filesystem"; |
23 const char kFtpScheme[] = "ftp"; | 23 const char kFtpScheme[] = "ftp"; |
24 const char kGuestScheme[] = "chrome-guest"; | 24 const char kGuestScheme[] = "chrome-guest"; |
25 const char kHttpScheme[] = "http"; | 25 const char kHttpScheme[] = "http"; |
26 const char kHttpsScheme[] = "https"; | 26 const char kHttpsScheme[] = "https"; |
27 const char kJavaScriptScheme[] = "javascript"; | 27 const char kJavaScriptScheme[] = "javascript"; |
28 const char kMailToScheme[] = "mailto"; | 28 const char kMailToScheme[] = "mailto"; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 65 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
66 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 66 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
67 | 67 |
68 // This URL is loaded when a page is swapped out and replaced by a page in a | 68 // This URL is loaded when a page is swapped out and replaced by a page in a |
69 // different renderer process. It must have a unique origin that cannot be | 69 // different renderer process. It must have a unique origin that cannot be |
70 // scripted by other pages in the process. | 70 // scripted by other pages in the process. |
71 const char kSwappedOutURL[] = "swappedout://"; | 71 const char kSwappedOutURL[] = "swappedout://"; |
72 | 72 |
73 } // namespace content | 73 } // namespace content |
OLD | NEW |