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

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

Issue 13513004: content: Move more constants into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
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/browser/web_contents/debug_urls.h" 5 #include "content/browser/web_contents/debug_urls.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/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 24 matching lines...) Expand all
35 #endif 35 #endif
36 } 36 }
37 37
38 } // namespace 38 } // namespace
39 39
40 bool HandleDebugURL(const GURL& url, PageTransition transition) { 40 bool HandleDebugURL(const GURL& url, PageTransition transition) {
41 // Ensure that the user explicitly navigated to this URL. 41 // Ensure that the user explicitly navigated to this URL.
42 if (!(transition & PAGE_TRANSITION_FROM_ADDRESS_BAR)) 42 if (!(transition & PAGE_TRANSITION_FROM_ADDRESS_BAR))
43 return false; 43 return false;
44 44
45 if (url.host() == chrome::kChromeUIBrowserCrashHost) { 45 if (url.host() == kChromeUIBrowserCrashHost) {
46 // Induce an intentional crash in the browser process. 46 // Induce an intentional crash in the browser process.
47 CHECK(false); 47 CHECK(false);
48 return true; 48 return true;
49 } 49 }
50 50
51 if (url == GURL(kChromeUIGpuCleanURL)) { 51 if (url == GURL(kChromeUIGpuCleanURL)) {
52 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); 52 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
53 if (shim) 53 if (shim)
54 shim->SimulateRemoveAllContext(); 54 shim->SimulateRemoveAllContext();
55 return true; 55 return true;
(...skipping 17 matching lines...) Expand all
73 url == GURL(kChromeUIPpapiFlashHangURL)) { 73 url == GURL(kChromeUIPpapiFlashHangURL)) {
74 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, 74 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
75 base::Bind(&HandlePpapiFlashDebugURL, url)); 75 base::Bind(&HandlePpapiFlashDebugURL, url));
76 return true; 76 return true;
77 } 77 }
78 78
79 return false; 79 return false;
80 } 80 }
81 81
82 } // namespace content 82 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | content/browser/webui/content_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698