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 #include "content/common/savable_url_schemes.h" | 7 #include "content/common/savable_url_schemes.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 | 9 |
10 namespace chrome { | 10 namespace chrome { |
(...skipping 24 matching lines...) Expand all Loading... |
35 const char kAboutSrcDocURL[] = "about:srcdoc"; | 35 const char kAboutSrcDocURL[] = "about:srcdoc"; |
36 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 36 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
37 const char kChromeUIBlobInternalsHost[] = "blob-internals"; | 37 const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
38 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; | 38 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
39 const char kChromeUIDevToolsHost[] = "devtools"; | 39 const char kChromeUIDevToolsHost[] = "devtools"; |
40 const char kChromeUIGpuHost[] = "gpu"; | 40 const char kChromeUIGpuHost[] = "gpu"; |
41 const char kChromeUIHistogramHost[] = "histograms"; | 41 const char kChromeUIHistogramHost[] = "histograms"; |
42 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 42 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
43 const char kChromeUIResourcesHost[] = "resources"; | 43 const char kChromeUIResourcesHost[] = "resources"; |
44 const char kChromeUITcmallocHost[] = "tcmalloc"; | 44 const char kChromeUITcmallocHost[] = "tcmalloc"; |
| 45 const char kChromeUITracingHost[] = "tracing"; |
45 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; | 46 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; |
46 | 47 |
47 const char kChromeUICrashURL[] = "chrome://crash"; | 48 const char kChromeUICrashURL[] = "chrome://crash"; |
48 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; | 49 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
49 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; | 50 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
50 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; | 51 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
51 const char kChromeUIHangURL[] = "chrome://hang"; | 52 const char kChromeUIHangURL[] = "chrome://hang"; |
52 const char kChromeUIKillURL[] = "chrome://kill"; | 53 const char kChromeUIKillURL[] = "chrome://kill"; |
53 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; | 54 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; |
54 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; | 55 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; |
(...skipping 23 matching lines...) Expand all Loading... |
78 bool HasWebUIScheme(const GURL& url) { | 79 bool HasWebUIScheme(const GURL& url) { |
79 return | 80 return |
80 #if !defined(OS_IOS) | 81 #if !defined(OS_IOS) |
81 url.SchemeIs(chrome::kChromeDevToolsScheme) || | 82 url.SchemeIs(chrome::kChromeDevToolsScheme) || |
82 url.SchemeIs(chrome::kChromeInternalScheme) || | 83 url.SchemeIs(chrome::kChromeInternalScheme) || |
83 #endif | 84 #endif |
84 url.SchemeIs(chrome::kChromeUIScheme); | 85 url.SchemeIs(chrome::kChromeUIScheme); |
85 } | 86 } |
86 | 87 |
87 } // namespace content | 88 } // namespace content |
OLD | NEW |