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 kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 22 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
23 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; | 23 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; |
24 const char kChromeUIAccessibilityHost[] = "accessibility"; | 24 const char kChromeUIAccessibilityHost[] = "accessibility"; |
25 const char kChromeUIBlobInternalsHost[] = "blob-internals"; | 25 const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
26 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; | 26 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
27 const char kChromeUIGpuHost[] = "gpu"; | 27 const char kChromeUIGpuHost[] = "gpu"; |
28 const char kChromeUIHistogramHost[] = "histograms"; | 28 const char kChromeUIHistogramHost[] = "histograms"; |
29 const char kChromeUIMediaInternalsHost[] = "media-internals"; | 29 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
| 30 const char kChromeUIMemoryExhaustHost[] = "memory-exhaust"; |
30 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 31 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
31 const char kChromeUINetworkErrorHost[] = "network-error"; | 32 const char kChromeUINetworkErrorHost[] = "network-error"; |
32 const char kChromeUINetworkErrorsListingHost[] = "network-errors"; | 33 const char kChromeUINetworkErrorsListingHost[] = "network-errors"; |
33 const char kChromeUIResourcesHost[] = "resources"; | 34 const char kChromeUIResourcesHost[] = "resources"; |
34 const char kChromeUIServiceWorkerInternalsHost[] = "serviceworker-internals"; | 35 const char kChromeUIServiceWorkerInternalsHost[] = "serviceworker-internals"; |
35 const char kChromeUITracingHost[] = "tracing"; | 36 const char kChromeUITracingHost[] = "tracing"; |
36 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; | 37 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; |
37 | 38 |
38 const char kChromeUIBadCastCrashURL[] = "chrome://badcastcrash"; | 39 const char kChromeUIBadCastCrashURL[] = "chrome://badcastcrash"; |
39 const char kChromeUIBrowserCrashURL[] = "chrome://inducebrowsercrashforrealz"; | 40 const char kChromeUIBrowserCrashURL[] = "chrome://inducebrowsercrashforrealz"; |
40 const char kChromeUIBrowserUIHang[] = "chrome://uithreadhang"; | 41 const char kChromeUIBrowserUIHang[] = "chrome://uithreadhang"; |
41 const char kChromeUICrashURL[] = "chrome://crash"; | 42 const char kChromeUICrashURL[] = "chrome://crash"; |
42 const char kChromeUIDelayedBrowserUIHang[] = "chrome://delayeduithreadhang"; | 43 const char kChromeUIDelayedBrowserUIHang[] = "chrome://delayeduithreadhang"; |
43 const char kChromeUIDumpURL[] = "chrome://crashdump"; | 44 const char kChromeUIDumpURL[] = "chrome://crashdump"; |
44 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; | 45 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
45 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; | 46 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
46 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; | 47 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
47 const char kChromeUIHangURL[] = "chrome://hang"; | 48 const char kChromeUIHangURL[] = "chrome://hang"; |
48 const char kChromeUIKillURL[] = "chrome://kill"; | 49 const char kChromeUIKillURL[] = "chrome://kill"; |
| 50 const char kChromeUIMemoryExhaustURL[] = "chrome://memory-exhaust"; |
49 const char kChromeUINetworkErrorURL[] = "chrome://network-error"; | 51 const char kChromeUINetworkErrorURL[] = "chrome://network-error"; |
50 const char kChromeUINetworkErrorsListingURL[] = "chrome://network-errors"; | 52 const char kChromeUINetworkErrorsListingURL[] = "chrome://network-errors"; |
51 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; | 53 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; |
52 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; | 54 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; |
53 | 55 |
54 // This error URL is loaded in normal web renderer processes, so it should not | 56 // This error URL is loaded in normal web renderer processes, so it should not |
55 // have a chrome:// scheme that might let it be confused with a WebUI page. | 57 // have a chrome:// scheme that might let it be confused with a WebUI page. |
56 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; | 58 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; |
57 | 59 |
58 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 60 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
59 const char kChromeUIResourcesURL[] = "chrome://resources/"; | 61 const char kChromeUIResourcesURL[] = "chrome://resources/"; |
60 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 62 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
61 | 63 |
62 } // namespace content | 64 } // namespace content |
OLD | NEW |