debug_urls.h revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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 3// found in the LICENSE file. 4 5#ifndef CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ 6#define CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ 7 8#include "content/public/common/page_transition_types.h" 9 10class GURL; 11 12namespace content { 13 14// Checks if the given url is a url used for debugging purposes, and if so 15// handles it and returns true. 16bool HandleDebugURL(const GURL& url, PageTransition transition); 17 18// Returns whether this given url is a debugging url. It is a superset 19// of IsRendererDebugURL, below, and debugging urls that are handled 20// in the browser process. 21bool IsDebugURL(const GURL& url); 22 23// Returns whether the given url is either a debugging url handled in the 24// renderer process, such as one that crashes or hangs the renderer, or a 25// javascript: URL that operates on the current page in the renderer. Such URLs 26// do not represent actual navigations and can be loaded in any SiteInstance. 27bool IsRendererDebugURL(const GURL& url); 28 29} // namespace content 30 31#endif // CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ 32