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.
5 #include "content/public/common/url_constants.h"
9 const char kAboutScheme
[] = "about";
10 const char kBlobScheme
[] = "blob";
12 // Before adding new chrome schemes please check with security@chromium.org.
13 // There are security implications associated with introducing new schemes.
14 const char kChromeDevToolsScheme
[] = "chrome-devtools";
15 const char kChromeUIScheme
[] = "chrome";
16 const char kDataScheme
[] = "data";
17 const char kFileScheme
[] = "file";
18 const char kFileSystemScheme
[] = "filesystem";
19 const char kFtpScheme
[] = "ftp";
20 const char kGuestScheme
[] = "chrome-guest";
21 const char kHttpScheme
[] = "http";
22 const char kHttpsScheme
[] = "https";
23 const char kJavaScriptScheme
[] = "javascript";
24 const char kMailToScheme
[] = "mailto";
25 const char kMetadataScheme
[] = "metadata";
26 const char kSwappedOutScheme
[] = "swappedout";
27 const char kViewSourceScheme
[] = "view-source";
29 const char kAboutBlankURL
[] = "about:blank";
30 const char kAboutSrcDocURL
[] = "about:srcdoc";
32 const char kChromeUIAppCacheInternalsHost
[] = "appcache-internals";
33 const char kChromeUIIndexedDBInternalsHost
[] = "indexeddb-internals";
34 const char kChromeUIAccessibilityHost
[] = "accessibility";
35 const char kChromeUIBlobInternalsHost
[] = "blob-internals";
36 const char kChromeUIBrowserCrashHost
[] = "inducebrowsercrashforrealz";
37 const char kChromeUIGpuHost
[] = "gpu";
38 const char kChromeUIHistogramHost
[] = "histograms";
39 const char kChromeUIMediaInternalsHost
[] = "media-internals";
40 const char kChromeUINetworkViewCacheHost
[] = "view-http-cache";
41 const char kChromeUIResourcesHost
[] = "resources";
42 const char kChromeUIServiceWorkerInternalsHost
[] = "serviceworker-internals";
43 const char kChromeUITcmallocHost
[] = "tcmalloc";
44 const char kChromeUITracingHost
[] = "tracing";
45 const char kChromeUIWebRTCInternalsHost
[] = "webrtc-internals";
47 const char kChromeUICrashURL
[] = "chrome://crash";
48 const char kChromeUIGpuCleanURL
[] = "chrome://gpuclean";
49 const char kChromeUIGpuCrashURL
[] = "chrome://gpucrash";
50 const char kChromeUIGpuHangURL
[] = "chrome://gpuhang";
51 const char kChromeUIHangURL
[] = "chrome://hang";
52 const char kChromeUIKillURL
[] = "chrome://kill";
53 const char kChromeUIPpapiFlashCrashURL
[] = "chrome://ppapiflashcrash";
54 const char kChromeUIPpapiFlashHangURL
[] = "chrome://ppapiflashhang";
56 const char kStandardSchemeSeparator
[] = "://";
58 // This error URL is loaded in normal web renderer processes, so it should not
59 // have a chrome:// scheme that might let it be confused with a WebUI page.
60 const char kUnreachableWebDataURL
[] = "data:text/html,chromewebdata";
62 const char kChromeUINetworkViewCacheURL
[] = "chrome://view-http-cache/";
63 const char kChromeUIShorthangURL
[] = "chrome://shorthang";
65 // This URL is loaded when a page is swapped out and replaced by a page in a
66 // different renderer process. It must have a unique origin that cannot be
67 // scripted by other pages in the process.
68 const char kSwappedOutURL
[] = "swappedout://";
70 } // namespace content