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

Unified Diff: content/browser/web_contents/debug_urls.cc

Issue 49823002: Move navigation and frame tree classes to a new frame_host/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing gyp and adding TODO. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/debug_urls.h ('k') | content/browser/web_contents/interstitial_page_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/debug_urls.cc
diff --git a/content/browser/web_contents/debug_urls.cc b/content/browser/web_contents/debug_urls.cc
deleted file mode 100644
index 1f1222ccfe8106351a6054688ec00206f16ef88c..0000000000000000000000000000000000000000
--- a/content/browser/web_contents/debug_urls.cc
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/web_contents/debug_urls.h"
-
-#include <vector>
-
-#include "base/strings/utf_string_conversions.h"
-#include "content/browser/gpu/gpu_process_host_ui_shim.h"
-#include "content/browser/ppapi_plugin_process_host.h"
-#include "content/public/browser/browser_thread.h"
-#include "content/public/common/content_constants.h"
-#include "content/public/common/url_constants.h"
-#include "ppapi/proxy/ppapi_messages.h"
-#include "url/gurl.h"
-
-namespace content {
-
-namespace {
-
-void HandlePpapiFlashDebugURL(const GURL& url) {
-#if defined(ENABLE_PLUGINS)
- bool crash = url == GURL(kChromeUIPpapiFlashCrashURL);
-
- std::vector<PpapiPluginProcessHost*> hosts;
- PpapiPluginProcessHost::FindByName(UTF8ToUTF16(kFlashPluginName), &hosts);
- for (std::vector<PpapiPluginProcessHost*>::iterator iter = hosts.begin();
- iter != hosts.end(); ++iter) {
- if (crash)
- (*iter)->Send(new PpapiMsg_Crash());
- else
- (*iter)->Send(new PpapiMsg_Hang());
- }
-#endif
-}
-
-} // namespace
-
-bool HandleDebugURL(const GURL& url, PageTransition transition) {
- // Ensure that the user explicitly navigated to this URL.
- if (!(transition & PAGE_TRANSITION_FROM_ADDRESS_BAR))
- return false;
-
- if (url.host() == kChromeUIBrowserCrashHost) {
- // Induce an intentional crash in the browser process.
- CHECK(false);
- return true;
- }
-
- if (url == GURL(kChromeUIGpuCleanURL)) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateRemoveAllContext();
- return true;
- }
-
- if (url == GURL(kChromeUIGpuCrashURL)) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateCrash();
- return true;
- }
-
- if (url == GURL(kChromeUIGpuHangURL)) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateHang();
- return true;
- }
-
- if (url == GURL(kChromeUIPpapiFlashCrashURL) ||
- url == GURL(kChromeUIPpapiFlashHangURL)) {
- BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
- base::Bind(&HandlePpapiFlashDebugURL, url));
- return true;
- }
-
- return false;
-}
-
-} // namespace content
« no previous file with comments | « content/browser/web_contents/debug_urls.h ('k') | content/browser/web_contents/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698