• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
10 // Contains constants for known URLs and portions thereof.
11 
12 // TODO(jam): rename this to content.
13 namespace chrome {
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.
18 CONTENT_EXPORT extern const char kAboutScheme[];
19 CONTENT_EXPORT extern const char kBlobScheme[];
20 CONTENT_EXPORT extern const char kChromeDevToolsScheme[];
21 CONTENT_EXPORT extern const char kChromeUIScheme[];  // Used for WebUIs.
22 CONTENT_EXPORT extern const char kDataScheme[];
23 CONTENT_EXPORT extern const char kFileScheme[];
24 CONTENT_EXPORT extern const char kFileSystemScheme[];
25 }  // namespace chrome
26 
27 namespace content {
28 
29 CONTENT_EXPORT extern const char kFtpScheme[];
30 CONTENT_EXPORT extern const char kGuestScheme[];
31 CONTENT_EXPORT extern const char kHttpScheme[];
32 CONTENT_EXPORT extern const char kHttpsScheme[];
33 CONTENT_EXPORT extern const char kJavaScriptScheme[];
34 CONTENT_EXPORT extern const char kMailToScheme[];
35 CONTENT_EXPORT extern const char kMetadataScheme[];
36 CONTENT_EXPORT extern const char kSwappedOutScheme[];
37 CONTENT_EXPORT extern const char kViewSourceScheme[];
38 
39 // Hosts for about URLs.
40 CONTENT_EXPORT extern const char kAboutBlankURL[];
41 CONTENT_EXPORT extern const char kAboutSrcDocURL[];
42 
43 CONTENT_EXPORT extern const char kChromeUIAccessibilityHost[];
44 CONTENT_EXPORT extern const char kChromeUIAppCacheInternalsHost[];
45 CONTENT_EXPORT extern const char kChromeUIBlobInternalsHost[];
46 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[];
47 CONTENT_EXPORT extern const char kChromeUIGpuHost[];
48 CONTENT_EXPORT extern const char kChromeUIHistogramHost[];
49 CONTENT_EXPORT extern const char kChromeUIIndexedDBInternalsHost[];
50 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[];
51 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheHost[];
52 CONTENT_EXPORT extern const char kChromeUIResourcesHost[];
53 CONTENT_EXPORT extern const char kChromeUITcmallocHost[];
54 CONTENT_EXPORT extern const char kChromeUITracingHost[];
55 CONTENT_EXPORT extern const char kChromeUIWebRTCInternalsHost[];
56 
57 // Full about URLs (including schemes).
58 CONTENT_EXPORT extern const char kChromeUICrashURL[];
59 CONTENT_EXPORT extern const char kChromeUIGpuCleanURL[];
60 CONTENT_EXPORT extern const char kChromeUIGpuCrashURL[];
61 CONTENT_EXPORT extern const char kChromeUIGpuHangURL[];
62 CONTENT_EXPORT extern const char kChromeUIHangURL[];
63 CONTENT_EXPORT extern const char kChromeUIKillURL[];
64 CONTENT_EXPORT extern const char kChromeUIPpapiFlashCrashURL[];
65 CONTENT_EXPORT extern const char kChromeUIPpapiFlashHangURL[];
66 
67 // Used to separate a standard scheme and the hostname: "://".
68 CONTENT_EXPORT extern const char kStandardSchemeSeparator[];
69 
70 // Special URL used to start a navigation to an error page.
71 CONTENT_EXPORT extern const char kUnreachableWebDataURL[];
72 
73 // Full about URLs (including schemes).
74 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[];
75 CONTENT_EXPORT extern const char kChromeUIShorthangURL[];
76 
77 // Special URL used to swap out a view being rendered by another process.
78 CONTENT_EXPORT extern const char kSwappedOutURL[];
79 
80 }  // namespace content
81 
82 #endif  // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_
83