| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "content/public/common/url_constants.h" | 6 #include "content/public/common/url_constants.h" |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 // Before adding new chrome schemes please check with security@chromium.org. | 10 // Before adding new chrome schemes please check with security@chromium.org. |
| 11 // There are security implications associated with introducing new schemes. | 11 // There are security implications associated with introducing new schemes. |
| 12 const char kChromeDevToolsScheme[] = "chrome-devtools"; | 12 const char kChromeDevToolsScheme[] = "chrome-devtools"; |
| 13 const char kChromeUIScheme[] = "chrome"; | 13 const char kChromeUIScheme[] = "chrome"; |
| 14 const char kGuestScheme[] = "chrome-guest"; | 14 const char kGuestScheme[] = "chrome-guest"; |
| 15 const char kSwappedOutScheme[] = "swappedout"; | |
| 16 const char kViewSourceScheme[] = "view-source"; | 15 const char kViewSourceScheme[] = "view-source"; |
| 17 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
| 18 const char kExternalFileScheme[] = "externalfile"; | 17 const char kExternalFileScheme[] = "externalfile"; |
| 19 #endif | 18 #endif |
| 20 | 19 |
| 21 const char kAboutSrcDocURL[] = "about:srcdoc"; | 20 const char kAboutSrcDocURL[] = "about:srcdoc"; |
| 22 | 21 |
| 23 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 22 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
| 24 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; | 23 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; |
| 25 const char kChromeUIAccessibilityHost[] = "accessibility"; | 24 const char kChromeUIAccessibilityHost[] = "accessibility"; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 | 53 |
| 55 // This error URL is loaded in normal web renderer processes, so it should not | 54 // This error URL is loaded in normal web renderer processes, so it should not |
| 56 // have a chrome:// scheme that might let it be confused with a WebUI page. | 55 // have a chrome:// scheme that might let it be confused with a WebUI page. |
| 57 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; | 56 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; |
| 58 | 57 |
| 59 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 58 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
| 60 const char kChromeUIResourcesURL[] = "chrome://resources/"; | 59 const char kChromeUIResourcesURL[] = "chrome://resources/"; |
| 61 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 60 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
| 62 | 61 |
| 63 } // namespace content | 62 } // namespace content |
| OLD | NEW |