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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
8 #include "content/common/content_export.h"
9 #include "url/url_constants.h"
11 // Contains constants for known URLs and portions thereof.
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
18 CONTENT_EXPORT
extern const char kChromeDevToolsScheme
[];
19 CONTENT_EXPORT
extern const char kChromeUIScheme
[]; // Used for WebUIs.
20 CONTENT_EXPORT
extern const char kGuestScheme
[];
21 CONTENT_EXPORT
extern const char kMetadataScheme
[];
22 CONTENT_EXPORT
extern const char kSwappedOutScheme
[];
23 CONTENT_EXPORT
extern const char kViewSourceScheme
[];
24 #if defined(OS_CHROMEOS)
25 CONTENT_EXPORT
extern const char kExternalFileScheme
[];
28 // Hosts for about URLs.
29 CONTENT_EXPORT
extern const char kAboutSrcDocURL
[];
31 CONTENT_EXPORT
extern const char kChromeUIAccessibilityHost
[];
32 CONTENT_EXPORT
extern const char kChromeUIAppCacheInternalsHost
[];
33 CONTENT_EXPORT
extern const char kChromeUIBlobInternalsHost
[];
34 CONTENT_EXPORT
extern const char kChromeUIBrowserCrashHost
[];
35 CONTENT_EXPORT
extern const char kChromeUIGpuHost
[];
36 CONTENT_EXPORT
extern const char kChromeUIHistogramHost
[];
37 CONTENT_EXPORT
extern const char kChromeUIIndexedDBInternalsHost
[];
38 CONTENT_EXPORT
extern const char kChromeUIMediaInternalsHost
[];
39 CONTENT_EXPORT
extern const char kChromeUINetworkViewCacheHost
[];
40 CONTENT_EXPORT
extern const char kChromeUIResourcesHost
[];
41 CONTENT_EXPORT
extern const char kChromeUIServiceWorkerInternalsHost
[];
42 CONTENT_EXPORT
extern const char kChromeUITcmallocHost
[];
43 CONTENT_EXPORT
extern const char kChromeUITracingHost
[];
44 CONTENT_EXPORT
extern const char kChromeUIWebRTCInternalsHost
[];
46 // Full about URLs (including schemes).
47 CONTENT_EXPORT
extern const char kChromeUIBadCastCrashURL
[];
48 CONTENT_EXPORT
extern const char kChromeUIBrowserCrashURL
[];
49 CONTENT_EXPORT
extern const char kChromeUIBrowserUIHang
[];
50 CONTENT_EXPORT
extern const char kChromeUICrashURL
[];
51 CONTENT_EXPORT
extern const char kChromeUIDumpURL
[];
52 CONTENT_EXPORT
extern const char kChromeUIGpuCleanURL
[];
53 CONTENT_EXPORT
extern const char kChromeUIGpuCrashURL
[];
54 CONTENT_EXPORT
extern const char kChromeUIGpuHangURL
[];
55 CONTENT_EXPORT
extern const char kChromeUIHangURL
[];
56 CONTENT_EXPORT
extern const char kChromeUIKillURL
[];
57 CONTENT_EXPORT
extern const char kChromeUIPpapiFlashCrashURL
[];
58 CONTENT_EXPORT
extern const char kChromeUIPpapiFlashHangURL
[];
59 CONTENT_EXPORT
extern const char kChromeUIServiceWorkerInternalsURL
[];
61 // Special URL used to start a navigation to an error page.
62 CONTENT_EXPORT
extern const char kUnreachableWebDataURL
[];
64 // Full about URLs (including schemes).
65 CONTENT_EXPORT
extern const char kChromeUINetworkViewCacheURL
[];
66 CONTENT_EXPORT
extern const char kChromeUIShorthangURL
[];
68 // Special URL used to swap out a view being rendered by another process.
69 CONTENT_EXPORT
extern const char kSwappedOutURL
[];
71 } // namespace content
73 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_