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_PUBLIC_COMMON_URL_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_URL_UTILS_H_ |
6 #define CONTENT_PUBLIC_COMMON_URL_UTILS_H_ | 6 #define CONTENT_PUBLIC_COMMON_URL_UTILS_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // Returns true if the url has a scheme for WebUI. See also | 14 // Returns true if the url has a scheme for WebUI. See also |
15 // WebUIControllerFactory::UseWebUIForURL in the browser process. | 15 // WebUIControllerFactory::UseWebUIForURL in the browser process. |
16 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); | 16 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); |
17 | 17 |
18 // Check whether we can do the saving page operation for the specified URL. | 18 // Check whether we can do the saving page operation for the specified URL. |
19 CONTENT_EXPORT bool IsSavableURL(const GURL& url); | 19 CONTENT_EXPORT bool IsSavableURL(const GURL& url); |
20 | 20 |
| 21 // Check whether the url is of the form about:blank, about:blank?foo or |
| 22 // about:blank/#foo. |
| 23 CONTENT_EXPORT bool IsAboutBlankURL(const GURL& url); |
| 24 |
21 } // namespace content | 25 } // namespace content |
22 | 26 |
23 #endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_ | 27 #endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_ |
OLD | NEW |