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