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

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

Issue 647853002: Create a proprietary scheme for loading web-accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update include guards too Created 6 years, 1 month 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') | content/renderer/render_thread_impl.cc » ('j') | 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.
11 const char kChromeDevToolsScheme[] = "chrome-devtools"; 11 const char kChromeDevToolsScheme[] = "chrome-devtools";
12 const char kChromeUIScheme[] = "chrome"; 12 const char kChromeUIScheme[] = "chrome";
13 const char kGuestScheme[] = "chrome-guest"; 13 const char kGuestScheme[] = "chrome-guest";
14 const char kMetadataScheme[] = "metadata"; 14 const char kMetadataScheme[] = "metadata";
15 const char kResourceScheme[] = "chrome-resource";
15 const char kSwappedOutScheme[] = "swappedout"; 16 const char kSwappedOutScheme[] = "swappedout";
16 const char kViewSourceScheme[] = "view-source"; 17 const char kViewSourceScheme[] = "view-source";
17 #if defined(OS_CHROMEOS) 18 #if defined(OS_CHROMEOS)
18 const char kExternalFileScheme[] = "externalfile"; 19 const char kExternalFileScheme[] = "externalfile";
19 #endif 20 #endif
20 21
21 const char kAboutSrcDocURL[] = "about:srcdoc"; 22 const char kAboutSrcDocURL[] = "about:srcdoc";
22 23
23 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; 24 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals";
24 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals"; 25 const char kChromeUIIndexedDBInternalsHost[] = "indexeddb-internals";
(...skipping 29 matching lines...) Expand all
54 55
55 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; 56 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/";
56 const char kChromeUIShorthangURL[] = "chrome://shorthang"; 57 const char kChromeUIShorthangURL[] = "chrome://shorthang";
57 58
58 // This URL is loaded when a page is swapped out and replaced by a page in a 59 // This URL is loaded when a page is swapped out and replaced by a page in a
59 // different renderer process. It must have a unique origin that cannot be 60 // different renderer process. It must have a unique origin that cannot be
60 // scripted by other pages in the process. 61 // scripted by other pages in the process.
61 const char kSwappedOutURL[] = "swappedout://"; 62 const char kSwappedOutURL[] = "swappedout://";
62 63
63 } // namespace content 64 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/url_constants.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698