Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(821)

Side by Side Diff: content/browser/frame_host/debug_urls.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.cc ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698