Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / browser / frame_host / debug_urls.h
blob413cd0f33871ca66f7a9d8e663c0879c61b2472e
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.
5 #ifndef CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_
6 #define CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_
8 #include "ui/base/page_transition_types.h"
10 class GURL;
12 namespace content {
14 // Checks if the given url is a url used for debugging purposes, and if so
15 // handles it and returns true.
16 bool HandleDebugURL(const GURL& url, ui::PageTransition transition);
18 // Returns whether the given url is either a debugging url handled in the
19 // renderer process, such as one that crashes or hangs the renderer, or a
20 // javascript: URL that operates on the current page in the renderer. Such URLs
21 // do not represent actual navigations and can be loaded in any SiteInstance.
22 bool IsRendererDebugURL(const GURL& url);
24 } // namespace content
26 #endif // CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_