| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONSTANTS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 // Contains constants for known URLs and portions thereof. | 10 // Contains constants for known URLs and portions thereof. |
| 11 | 11 |
| 12 class GURL; | |
| 13 | |
| 14 // TODO(jam): rename this to content. | 12 // TODO(jam): rename this to content. |
| 15 namespace chrome { | 13 namespace chrome { |
| 16 | 14 |
| 17 // Canonical schemes you can use as input to GURL.SchemeIs(). | 15 // Canonical schemes you can use as input to GURL.SchemeIs(). |
| 18 // TODO(jam): some of these don't below in the content layer, but are accessed | 16 // TODO(jam): some of these don't below in the content layer, but are accessed |
| 19 // from there. | 17 // from there. |
| 20 CONTENT_EXPORT extern const char kAboutScheme[]; | 18 CONTENT_EXPORT extern const char kAboutScheme[]; |
| 21 CONTENT_EXPORT extern const char kBlobScheme[]; | 19 CONTENT_EXPORT extern const char kBlobScheme[]; |
| 22 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; | 20 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; |
| 23 CONTENT_EXPORT extern const char kChromeInternalScheme[]; | 21 CONTENT_EXPORT extern const char kChromeInternalScheme[]; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Special URL used to start a navigation to an error page. | 71 // Special URL used to start a navigation to an error page. |
| 74 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; | 72 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; |
| 75 | 73 |
| 76 // Full about URLs (including schemes). | 74 // Full about URLs (including schemes). |
| 77 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; | 75 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; |
| 78 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; | 76 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; |
| 79 | 77 |
| 80 // Special URL used to swap out a view being rendered by another process. | 78 // Special URL used to swap out a view being rendered by another process. |
| 81 extern const char kSwappedOutURL[]; | 79 extern const char kSwappedOutURL[]; |
| 82 | 80 |
| 83 // Null terminated list of schemes that are savable. This function can be | |
| 84 // invoked on any thread. | |
| 85 CONTENT_EXPORT const char* const* GetSavableSchemes(); | |
| 86 | |
| 87 // Returns true if the url has a scheme for WebUI. See also | |
| 88 // WebUIControllerFactory::UseWebUIForURL in the browser process. | |
| 89 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); | |
| 90 | |
| 91 } // namespace content | 81 } // namespace content |
| 92 | 82 |
| 93 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 83 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |