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

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

Issue 151593004: Fix bugs with renderer-side debug URLs, like chrome://crash or javascript:. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests Created 6 years, 10 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 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 #ifndef CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_
6 #define CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_
7 7
8 #include "content/public/common/page_transition_types.h" 8 #include "content/public/common/page_transition_types.h"
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace content { 12 namespace content {
13 13
14 // Checks if the given url is a url used for debugging purposes, and if so 14 // Checks if the given url is a url used for debugging purposes, and if so
15 // handles it and returns true. 15 // handles it and returns true.
16 bool HandleDebugURL(const GURL& url, PageTransition transition); 16 bool HandleDebugURL(const GURL& url, PageTransition transition);
17 17
18 // Returns whether the given url is either a renderer-side debugging url, such
19 // as one that crashes or hangs the renderer, or a JavaScript URL that operates
20 // on the current page in the renderer. Such URLs do not represent actual
21 // navigations and can be loaded in any SiteInstance.
22 bool IsRendererDebugURL(const GURL& url);
23
18 } // namespace content 24 } // namespace content
19 25
20 #endif // CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ 26 #endif // CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/debug_urls.cc » ('j') | content/browser/frame_host/debug_urls.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698