| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/frame_host/debug_urls.h" | 5 #include "content/browser/frame_host/debug_urls.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 10 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 url == GURL(kChromeUIGpuCrashURL) || | 93 url == GURL(kChromeUIGpuCrashURL) || |
| 94 url == GURL(kChromeUIGpuHangURL) || | 94 url == GURL(kChromeUIGpuHangURL) || |
| 95 url == GURL(kChromeUIPpapiFlashCrashURL) || | 95 url == GURL(kChromeUIPpapiFlashCrashURL) || |
| 96 url == GURL(kChromeUIPpapiFlashHangURL))); | 96 url == GURL(kChromeUIPpapiFlashHangURL))); |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool IsRendererDebugURL(const GURL& url) { | 99 bool IsRendererDebugURL(const GURL& url) { |
| 100 if (!url.is_valid()) | 100 if (!url.is_valid()) |
| 101 return false; | 101 return false; |
| 102 | 102 |
| 103 if (url.SchemeIs(kJavaScriptScheme)) | 103 if (url.SchemeIs(url::kJavaScriptScheme)) |
| 104 return true; | 104 return true; |
| 105 | 105 |
| 106 return url == GURL(kChromeUICrashURL) || | 106 return url == GURL(kChromeUICrashURL) || |
| 107 url == GURL(kChromeUIKillURL) || | 107 url == GURL(kChromeUIKillURL) || |
| 108 url == GURL(kChromeUIHangURL) || | 108 url == GURL(kChromeUIHangURL) || |
| 109 url == GURL(kChromeUIShorthangURL); | 109 url == GURL(kChromeUIShorthangURL); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace content | 112 } // namespace content |
| OLD | NEW |