OLD | NEW |
---|---|
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 // Checks if the given URL is a url used for debugging purposes. | |
jam
2014/05/09 22:47:46
nit: expand this comment since it's a bit confusin
Ken Russell (switch to Gerrit)
2014/05/09 23:43:05
Done.
| |
19 bool IsDebugURL(const GURL& url); | |
20 | |
18 // Returns whether the given url is either a debugging url handled in the | 21 // 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 | 22 // 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 | 23 // 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. | 24 // do not represent actual navigations and can be loaded in any SiteInstance. |
22 bool IsRendererDebugURL(const GURL& url); | 25 bool IsRendererDebugURL(const GURL& url); |
23 | 26 |
24 } // namespace content | 27 } // namespace content |
25 | 28 |
26 #endif // CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ | 29 #endif // CONTENT_BROWSER_FRAME_HOST_DEBUG_URLS_H_ |
OLD | NEW |