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 kChromeUIBrowserCrashURL
[];
48 CONTENT_EXPORT
extern const char kChromeUICrashURL
[];
49 CONTENT_EXPORT
extern const char kChromeUIDumpURL
[];
50 CONTENT_EXPORT
extern const char kChromeUIGpuCleanURL
[];
51 CONTENT_EXPORT
extern const char kChromeUIGpuCrashURL
[];
52 CONTENT_EXPORT
extern const char kChromeUIGpuHangURL
[];
53 CONTENT_EXPORT
extern const char kChromeUIHangURL
[];
54 CONTENT_EXPORT
extern const char kChromeUIKillURL
[];
55 CONTENT_EXPORT
extern const char kChromeUIPpapiFlashCrashURL
[];
56 CONTENT_EXPORT
extern const char kChromeUIPpapiFlashHangURL
[];
57 CONTENT_EXPORT
extern const char kChromeUIServiceWorkerInternalsURL
[];
59 // Special URL used to start a navigation to an error page.
60 CONTENT_EXPORT
extern const char kUnreachableWebDataURL
[];
62 // Full about URLs (including schemes).
63 CONTENT_EXPORT
extern const char kChromeUINetworkViewCacheURL
[];
64 CONTENT_EXPORT
extern const char kChromeUIShorthangURL
[];
66 // Special URL used to swap out a view being rendered by another process.
67 CONTENT_EXPORT
extern const char kSwappedOutURL
[];
69 } // namespace content
71 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_