| 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 kViewSourceScheme[] = "view-source"; | 15 const char kViewSourceScheme[] = "view-source"; |
| 16 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
| 17 const char kExternalFileScheme[] = "externalfile"; | 17 const char kExternalFileScheme[] = "externalfile"; |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 const char kAboutSrcDocURL[] = "about:srcdoc"; | 20 const char kAboutSrcDocURL[] = "about:srcdoc"; |
| 21 | 21 |
| 22 const char kAboutBlankPath[] = "blank"; |
| 23 const char kAboutBlankWithHashPath[] = "blank/"; |
| 24 |
| 22 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 25 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
| 23 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; | 26 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; |
| 24 const char kChromeUIAccessibilityHost[] = "accessibility"; | 27 const char kChromeUIAccessibilityHost[] = "accessibility"; |
| 25 const char kChromeUIBlobInternalsHost[] = "blob-internals"; | 28 const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
| 26 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; | 29 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
| 27 const char kChromeUIDinoHost[] = "dino"; | 30 const char kChromeUIDinoHost[] = "dino"; |
| 28 const char kChromeUIGpuHost[] = "gpu"; | 31 const char kChromeUIGpuHost[] = "gpu"; |
| 29 const char kChromeUIHistogramHost[] = "histograms"; | 32 const char kChromeUIHistogramHost[] = "histograms"; |
| 30 const char kChromeUIHistoryHost[] = "history"; | 33 const char kChromeUIHistoryHost[] = "history"; |
| 31 const char kChromeUIMediaInternalsHost[] = "media-internals"; | 34 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 58 | 61 |
| 59 // This error URL is loaded in normal web renderer processes, so it should not | 62 // This error URL is loaded in normal web renderer processes, so it should not |
| 60 // have a chrome:// scheme that might let it be confused with a WebUI page. | 63 // have a chrome:// scheme that might let it be confused with a WebUI page. |
| 61 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; | 64 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; |
| 62 | 65 |
| 63 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 66 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
| 64 const char kChromeUIResourcesURL[] = "chrome://resources/"; | 67 const char kChromeUIResourcesURL[] = "chrome://resources/"; |
| 65 const char kChromeUIShorthangURL[] = "chrome://shorthang/"; | 68 const char kChromeUIShorthangURL[] = "chrome://shorthang/"; |
| 66 | 69 |
| 67 } // namespace content | 70 } // namespace content |
| OLD | NEW |