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 30 matching lines...) Expand all Loading... |
41 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 41 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
42 const char kChromeUIResourcesHost[] = "resources"; | 42 const char kChromeUIResourcesHost[] = "resources"; |
43 const char kChromeUITcmallocHost[] = "tcmalloc"; | 43 const char kChromeUITcmallocHost[] = "tcmalloc"; |
44 | 44 |
45 const char kChromeUICrashURL[] = "chrome://crash"; | 45 const char kChromeUICrashURL[] = "chrome://crash"; |
46 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; | 46 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
47 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; | 47 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
48 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; | 48 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
49 const char kChromeUIHangURL[] = "chrome://hang"; | 49 const char kChromeUIHangURL[] = "chrome://hang"; |
50 const char kChromeUIKillURL[] = "chrome://kill"; | 50 const char kChromeUIKillURL[] = "chrome://kill"; |
| 51 const char kChromeUINewTabURL[] = "chrome://newtab"; |
51 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; | 52 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; |
52 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; | 53 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; |
53 | 54 |
54 } // namespace chrome | 55 } // namespace chrome |
55 | 56 |
56 namespace content { | 57 namespace content { |
57 | 58 |
58 const char kStandardSchemeSeparator[] = "://"; | 59 const char kStandardSchemeSeparator[] = "://"; |
59 | 60 |
60 // This error URL is loaded in normal web renderer processes, so it should not | 61 // This error URL is loaded in normal web renderer processes, so it should not |
(...skipping 15 matching lines...) Expand all Loading... |
76 bool HasWebUIScheme(const GURL& url) { | 77 bool HasWebUIScheme(const GURL& url) { |
77 return | 78 return |
78 #if !defined(OS_IOS) | 79 #if !defined(OS_IOS) |
79 url.SchemeIs(chrome::kChromeDevToolsScheme) || | 80 url.SchemeIs(chrome::kChromeDevToolsScheme) || |
80 url.SchemeIs(chrome::kChromeInternalScheme) || | 81 url.SchemeIs(chrome::kChromeInternalScheme) || |
81 #endif | 82 #endif |
82 url.SchemeIs(chrome::kChromeUIScheme); | 83 url.SchemeIs(chrome::kChromeUIScheme); |
83 } | 84 } |
84 | 85 |
85 } // namespace content | 86 } // namespace content |
OLD | NEW |