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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const char kChromeUIResourcesHost[] = "resources"; | 43 const char kChromeUIResourcesHost[] = "resources"; |
44 const char kChromeUITcmallocHost[] = "tcmalloc"; | 44 const char kChromeUITcmallocHost[] = "tcmalloc"; |
45 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; | 45 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; |
46 | 46 |
47 const char kChromeUICrashURL[] = "chrome://crash"; | 47 const char kChromeUICrashURL[] = "chrome://crash"; |
48 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; | 48 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
49 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; | 49 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
50 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; | 50 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
51 const char kChromeUIHangURL[] = "chrome://hang"; | 51 const char kChromeUIHangURL[] = "chrome://hang"; |
52 const char kChromeUIKillURL[] = "chrome://kill"; | 52 const char kChromeUIKillURL[] = "chrome://kill"; |
| 53 const char kChromeUINewTabURL[] = "chrome://newtab"; |
53 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; | 54 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; |
54 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; | 55 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; |
55 | 56 |
56 } // namespace chrome | 57 } // namespace chrome |
57 | 58 |
58 namespace content { | 59 namespace content { |
59 | 60 |
60 const char kStandardSchemeSeparator[] = "://"; | 61 const char kStandardSchemeSeparator[] = "://"; |
61 | 62 |
62 // This error URL is loaded in normal web renderer processes, so it should not | 63 // This error URL is loaded in normal web renderer processes, so it should not |
(...skipping 15 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 |