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