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 13 namespace 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. 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 25 // Hosts for about URLs. 26 CONTENT_EXPORT extern const char kAboutSrcDocURL[]; 27 28 CONTENT_EXPORT extern const char kChromeUIAccessibilityHost[]; 29 CONTENT_EXPORT extern const char kChromeUIAppCacheInternalsHost[]; 30 CONTENT_EXPORT extern const char kChromeUIBlobInternalsHost[]; 31 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[]; 32 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; 33 CONTENT_EXPORT extern const char kChromeUIHistogramHost[]; 34 CONTENT_EXPORT extern const char kChromeUIIndexedDBInternalsHost[]; 35 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[]; 36 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheHost[]; 37 CONTENT_EXPORT extern const char kChromeUIResourcesHost[]; 38 CONTENT_EXPORT extern const char kChromeUIServiceWorkerInternalsHost[]; 39 CONTENT_EXPORT extern const char kChromeUITcmallocHost[]; 40 CONTENT_EXPORT extern const char kChromeUITracingHost[]; 41 CONTENT_EXPORT extern const char kChromeUIWebRTCInternalsHost[]; 42 43 // Full about URLs (including schemes). 44 CONTENT_EXPORT extern const char kChromeUICrashURL[]; 45 CONTENT_EXPORT extern const char kChromeUIDumpURL[]; 46 CONTENT_EXPORT extern const char kChromeUIGpuCleanURL[]; 47 CONTENT_EXPORT extern const char kChromeUIGpuCrashURL[]; 48 CONTENT_EXPORT extern const char kChromeUIGpuHangURL[]; 49 CONTENT_EXPORT extern const char kChromeUIHangURL[]; 50 CONTENT_EXPORT extern const char kChromeUIKillURL[]; 51 CONTENT_EXPORT extern const char kChromeUIPpapiFlashCrashURL[]; 52 CONTENT_EXPORT extern const char kChromeUIPpapiFlashHangURL[]; 53 CONTENT_EXPORT extern const char kChromeUIServiceWorkerInternalsURL[]; 54 55 // Special URL used to start a navigation to an error page. 56 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; 57 58 // Full about URLs (including schemes). 59 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; 60 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; 61 62 // Special URL used to swap out a view being rendered by another process. 63 CONTENT_EXPORT extern const char kSwappedOutURL[]; 64 65 } // namespace content 66 67 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ 68