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 // Null terminated list of schemes that are savable. This function can be | |
15 // invoked on any thread. | |
16 CONTENT_EXPORT const char* const* GetSavableSchemes(); | |
17 | |
18 // 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 |
19 // WebUIControllerFactory::UseWebUIForURL in the browser process. | 15 // WebUIControllerFactory::UseWebUIForURL in the browser process. |
20 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); | 16 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); |
21 | 17 |
22 // 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. |
23 CONTENT_EXPORT bool IsSavableURL(const GURL& url); | 19 CONTENT_EXPORT bool IsSavableURL(const GURL& url); |
24 | 20 |
25 } // namespace content | 21 } // namespace content |
26 | 22 |
27 #endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_ | 23 #endif // CONTENT_PUBLIC_COMMON_URL_UTILS_H_ |
OLD | NEW |