Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: content/public/common/url_constants.cc

Issue 595993002: Only quit or restart with chrome:// or about:. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: inducebrowsercrashforrealz Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/common/url_constants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/url_constants.h" 5 #include "content/public/common/url_constants.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 // Before adding new chrome schemes please check with security@chromium.org. 9 // Before adding new chrome schemes please check with security@chromium.org.
10 // There are security implications associated with introducing new schemes. 10 // There are security implications associated with introducing new schemes.
(...skipping 14 matching lines...) Expand all
25 const char kChromeUIGpuHost[] = "gpu"; 25 const char kChromeUIGpuHost[] = "gpu";
26 const char kChromeUIHistogramHost[] = "histograms"; 26 const char kChromeUIHistogramHost[] = "histograms";
27 const char kChromeUIMediaInternalsHost[] = "media-internals"; 27 const char kChromeUIMediaInternalsHost[] = "media-internals";
28 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; 28 const char kChromeUINetworkViewCacheHost[] = "view-http-cache";
29 const char kChromeUIResourcesHost[] = "resources"; 29 const char kChromeUIResourcesHost[] = "resources";
30 const char kChromeUIServiceWorkerInternalsHost[] = "serviceworker-internals"; 30 const char kChromeUIServiceWorkerInternalsHost[] = "serviceworker-internals";
31 const char kChromeUITcmallocHost[] = "tcmalloc"; 31 const char kChromeUITcmallocHost[] = "tcmalloc";
32 const char kChromeUITracingHost[] = "tracing"; 32 const char kChromeUITracingHost[] = "tracing";
33 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals"; 33 const char kChromeUIWebRTCInternalsHost[] = "webrtc-internals";
34 34
35 const char kChromeUIBrowserCrashURL[] = "chrome://inducebrowsercrashforrealz";
35 const char kChromeUICrashURL[] = "chrome://crash"; 36 const char kChromeUICrashURL[] = "chrome://crash";
36 const char kChromeUIDumpURL[] = "chrome://crashdump"; 37 const char kChromeUIDumpURL[] = "chrome://crashdump";
37 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; 38 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean";
38 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; 39 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash";
39 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; 40 const char kChromeUIGpuHangURL[] = "chrome://gpuhang";
40 const char kChromeUIHangURL[] = "chrome://hang"; 41 const char kChromeUIHangURL[] = "chrome://hang";
41 const char kChromeUIKillURL[] = "chrome://kill"; 42 const char kChromeUIKillURL[] = "chrome://kill";
42 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; 43 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash";
43 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; 44 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang";
44 const char kChromeUIServiceWorkerInternalsURL[] = 45 const char kChromeUIServiceWorkerInternalsURL[] =
45 "chrome://serviceworker-internals"; 46 "chrome://serviceworker-internals";
46 47
47 // This error URL is loaded in normal web renderer processes, so it should not 48 // This error URL is loaded in normal web renderer processes, so it should not
48 // have a chrome:// scheme that might let it be confused with a WebUI page. 49 // have a chrome:// scheme that might let it be confused with a WebUI page.
49 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; 50 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata";
50 51
51 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; 52 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/";
52 const char kChromeUIShorthangURL[] = "chrome://shorthang"; 53 const char kChromeUIShorthangURL[] = "chrome://shorthang";
53 54
54 // This URL is loaded when a page is swapped out and replaced by a page in a 55 // This URL is loaded when a page is swapped out and replaced by a page in a
55 // different renderer process. It must have a unique origin that cannot be 56 // different renderer process. It must have a unique origin that cannot be
56 // scripted by other pages in the process. 57 // scripted by other pages in the process.
57 const char kSwappedOutURL[] = "swappedout://"; 58 const char kSwappedOutURL[] = "swappedout://";
58 59
59 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/url_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698