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