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

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

Issue 9834039: Remove resource_request_info_impl.h dependency from chrome. This also makes blob/file system urls w… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« 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 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "googleurl/src/url_util.h" 8 #include "googleurl/src/url_util.h"
9 9
10 namespace { 10 namespace {
(...skipping 27 matching lines...) Expand all
38 const char kHttpsScheme[] = "https"; 38 const char kHttpsScheme[] = "https";
39 const char kJavaScriptScheme[] = "javascript"; 39 const char kJavaScriptScheme[] = "javascript";
40 const char kMailToScheme[] = "mailto"; 40 const char kMailToScheme[] = "mailto";
41 const char kMetadataScheme[] = "metadata"; 41 const char kMetadataScheme[] = "metadata";
42 const char kSwappedOutScheme[] = "swappedout"; 42 const char kSwappedOutScheme[] = "swappedout";
43 const char kViewSourceScheme[] = "view-source"; 43 const char kViewSourceScheme[] = "view-source";
44 44
45 const char kStandardSchemeSeparator[] = "://"; 45 const char kStandardSchemeSeparator[] = "://";
46 46
47 const char kAboutBlankURL[] = "about:blank"; 47 const char kAboutBlankURL[] = "about:blank";
48 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals";
49 const char kChromeUIBlobInternalsHost[] = "blob-internals";
48 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; 50 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz";
51 const char kChromeUINetworkViewCacheHost[] = "view-http-cache";
49 const char kChromeUICrashURL[] = "chrome://crash"; 52 const char kChromeUICrashURL[] = "chrome://crash";
50 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; 53 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean";
51 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; 54 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash";
52 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; 55 const char kChromeUIGpuHangURL[] = "chrome://gpuhang";
53 const char kChromeUIHangURL[] = "chrome://hang"; 56 const char kChromeUIHangURL[] = "chrome://hang";
54 const char kChromeUIKillURL[] = "chrome://kill"; 57 const char kChromeUIKillURL[] = "chrome://kill";
58 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/";
55 const char kChromeUIShorthangURL[] = "chrome://shorthang"; 59 const char kChromeUIShorthangURL[] = "chrome://shorthang";
56 60
57 // This error URL is loaded in normal web renderer processes, so it should not 61 // This error URL is loaded in normal web renderer processes, so it should not
58 // have a chrome:// scheme that might let it be confused with a WebUI page. 62 // have a chrome:// scheme that might let it be confused with a WebUI page.
59 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; 63 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata";
60 64
61 // This URL is loaded when a page is swapped out and replaced by a page in a 65 // This URL is loaded when a page is swapped out and replaced by a page in a
62 // different renderer process. It must have a unique origin that cannot be 66 // different renderer process. It must have a unique origin that cannot be
63 // scripted by other pages in the process. 67 // scripted by other pages in the process.
64 const char kSwappedOutURL[] = "swappedout://"; 68 const char kSwappedOutURL[] = "swappedout://";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 arraysize(kDefaultSavableSchemes) * sizeof(char*)); 101 arraysize(kDefaultSavableSchemes) * sizeof(char*));
98 for (int i = 0; i < schemes; ++i) { 102 for (int i = 0; i < schemes; ++i) {
99 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = 103 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] =
100 base::strdup(additional_savable_schemes[i]); 104 base::strdup(additional_savable_schemes[i]);
101 } 105 }
102 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; 106 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0;
103 } 107 }
104 } 108 }
105 109
106 } // namespace content 110 } // 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