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 kChromeUIBrowserCrashURL[]; 45CONTENT_EXPORT extern const char kChromeUICrashURL[]; 46CONTENT_EXPORT extern const char kChromeUIDumpURL[]; 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