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 #include "url/url_constants.h" | 9 #include "url/url_constants.h" |
10 | 10 |
11 // Contains constants for known URLs and portions thereof. | 11 // Contains constants for known URLs and portions thereof. |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // Canonical schemes you can use as input to GURL.SchemeIs(). | 15 // Canonical schemes you can use as input to GURL.SchemeIs(). |
16 // 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 |
17 // from there. | 17 // from there. |
18 CONTENT_EXPORT extern const char kAboutScheme[]; | |
19 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; | 18 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; |
20 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. | 19 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. |
21 CONTENT_EXPORT extern const char kGuestScheme[]; | 20 CONTENT_EXPORT extern const char kGuestScheme[]; |
22 CONTENT_EXPORT extern const char kMetadataScheme[]; | 21 CONTENT_EXPORT extern const char kMetadataScheme[]; |
23 CONTENT_EXPORT extern const char kSwappedOutScheme[]; | 22 CONTENT_EXPORT extern const char kSwappedOutScheme[]; |
24 CONTENT_EXPORT extern const char kViewSourceScheme[]; | 23 CONTENT_EXPORT extern const char kViewSourceScheme[]; |
25 | 24 |
26 // Hosts for about URLs. | 25 // Hosts for about URLs. |
27 CONTENT_EXPORT extern const char kAboutBlankURL[]; | |
28 CONTENT_EXPORT extern const char kAboutSrcDocURL[]; | 26 CONTENT_EXPORT extern const char kAboutSrcDocURL[]; |
29 | 27 |
30 CONTENT_EXPORT extern const char kChromeUIAccessibilityHost[]; | 28 CONTENT_EXPORT extern const char kChromeUIAccessibilityHost[]; |
31 CONTENT_EXPORT extern const char kChromeUIAppCacheInternalsHost[]; | 29 CONTENT_EXPORT extern const char kChromeUIAppCacheInternalsHost[]; |
32 CONTENT_EXPORT extern const char kChromeUIBlobInternalsHost[]; | 30 CONTENT_EXPORT extern const char kChromeUIBlobInternalsHost[]; |
33 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[]; | 31 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[]; |
34 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; | 32 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; |
35 CONTENT_EXPORT extern const char kChromeUIHistogramHost[]; | 33 CONTENT_EXPORT extern const char kChromeUIHistogramHost[]; |
36 CONTENT_EXPORT extern const char kChromeUIIndexedDBInternalsHost[]; | 34 CONTENT_EXPORT extern const char kChromeUIIndexedDBInternalsHost[]; |
37 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[]; | 35 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[]; |
(...skipping 21 matching lines...) Expand all Loading... |
59 // Full about URLs (including schemes). | 57 // Full about URLs (including schemes). |
60 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; | 58 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; |
61 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; | 59 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; |
62 | 60 |
63 // Special URL used to swap out a view being rendered by another process. | 61 // Special URL used to swap out a view being rendered by another process. |
64 CONTENT_EXPORT extern const char kSwappedOutURL[]; | 62 CONTENT_EXPORT extern const char kSwappedOutURL[]; |
65 | 63 |
66 } // namespace content | 64 } // namespace content |
67 | 65 |
68 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 66 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |