• 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 #include "content/public/common/url_constants.h"
6 
7 namespace chrome {
8 
9 const char kAboutScheme[] = "about";
10 const char kBlobScheme[] = "blob";
11 
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 }  // namespace chrome
20 
21 namespace content {
22 
23 const char kFtpScheme[] = "ftp";
24 const char kGuestScheme[] = "chrome-guest";
25 const char kHttpScheme[] = "http";
26 const char kHttpsScheme[] = "https";
27 const char kJavaScriptScheme[] = "javascript";
28 const char kMailToScheme[] = "mailto";
29 const char kMetadataScheme[] = "metadata";
30 const char kSwappedOutScheme[] = "swappedout";
31 const char kViewSourceScheme[] = "view-source";
32 
33 const char kAboutBlankURL[] = "about:blank";
34 const char kAboutSrcDocURL[] = "about:srcdoc";
35 
36 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals";
37 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals";
38 const char kChromeUIAccessibilityHost[] = "accessibility";
39 const char kChromeUIBlobInternalsHost[] = "blob-internals";
40 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz";
41 const char kChromeUIGpuHost[] = "gpu";
42 const char kChromeUIHistogramHost[] = "histograms";
43 const char kChromeUIMediaInternalsHost[] = "media-internals";
44 const char kChromeUINetworkViewCacheHost[] = "view-http-cache";
45 const char kChromeUIResourcesHost[] = "resources";
46 const char kChromeUITcmallocHost[] = "tcmalloc";
47 const char kChromeUITracingHost[] = "tracing";
48 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals";
49 
50 const char kChromeUICrashURL[] = "chrome://crash";
51 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean";
52 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash";
53 const char kChromeUIGpuHangURL[] = "chrome://gpuhang";
54 const char kChromeUIHangURL[] = "chrome://hang";
55 const char kChromeUIKillURL[] = "chrome://kill";
56 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash";
57 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang";
58 
59 const char kStandardSchemeSeparator[] = "://";
60 
61 // This error URL is loaded in normal web renderer processes, so it should not
62 // have a chrome:// scheme that might let it be confused with a WebUI page.
63 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata";
64 
65 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/";
66 const char kChromeUIShorthangURL[] = "chrome://shorthang";
67 
68 // This URL is loaded when a page is swapped out and replaced by a page in a
69 // different renderer process.  It must have a unique origin that cannot be
70 // scripted by other pages in the process.
71 const char kSwappedOutURL[] = "swappedout://";
72 
73 }  // namespace content
74