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

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

Issue 10261003: content: Move kStandardSchemeSeparator into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "content/public/common/content_client.h" 10 #include "content/public/common/content_client.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const char kFileSystemScheme[] = "filesystem"; 45 const char kFileSystemScheme[] = "filesystem";
46 const char kFtpScheme[] = "ftp"; 46 const char kFtpScheme[] = "ftp";
47 const char kHttpScheme[] = "http"; 47 const char kHttpScheme[] = "http";
48 const char kHttpsScheme[] = "https"; 48 const char kHttpsScheme[] = "https";
49 const char kJavaScriptScheme[] = "javascript"; 49 const char kJavaScriptScheme[] = "javascript";
50 const char kMailToScheme[] = "mailto"; 50 const char kMailToScheme[] = "mailto";
51 const char kMetadataScheme[] = "metadata"; 51 const char kMetadataScheme[] = "metadata";
52 const char kSwappedOutScheme[] = "swappedout"; 52 const char kSwappedOutScheme[] = "swappedout";
53 const char kViewSourceScheme[] = "view-source"; 53 const char kViewSourceScheme[] = "view-source";
54 54
55 const char kStandardSchemeSeparator[] = "://";
56
57 const char kAboutBlankURL[] = "about:blank"; 55 const char kAboutBlankURL[] = "about:blank";
58 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; 56 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals";
59 const char kChromeUIBlobInternalsHost[] = "blob-internals"; 57 const char kChromeUIBlobInternalsHost[] = "blob-internals";
60 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; 58 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz";
61 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; 59 const char kChromeUINetworkViewCacheHost[] = "view-http-cache";
62 const char kChromeUITcmallocHost[] = "tcmalloc"; 60 const char kChromeUITcmallocHost[] = "tcmalloc";
63 const char kChromeUICrashURL[] = "chrome://crash"; 61 const char kChromeUICrashURL[] = "chrome://crash";
64 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; 62 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean";
65 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; 63 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash";
66 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; 64 const char kChromeUIGpuHangURL[] = "chrome://gpuhang";
67 const char kChromeUIHangURL[] = "chrome://hang"; 65 const char kChromeUIHangURL[] = "chrome://hang";
68 const char kChromeUIKillURL[] = "chrome://kill"; 66 const char kChromeUIKillURL[] = "chrome://kill";
69 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; 67 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/";
70 const char kChromeUIShorthangURL[] = "chrome://shorthang"; 68 const char kChromeUIShorthangURL[] = "chrome://shorthang";
71 69
72 } // namespace chrome 70 } // namespace chrome
73 71
74 namespace content { 72 namespace content {
75 73
74 const char kStandardSchemeSeparator[] = "://";
75
76 // This error URL is loaded in normal web renderer processes, so it should not 76 // This error URL is loaded in normal web renderer processes, so it should not
77 // have a chrome:// scheme that might let it be confused with a WebUI page. 77 // have a chrome:// scheme that might let it be confused with a WebUI page.
78 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; 78 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata";
79 79
80 // This URL is loaded when a page is swapped out and replaced by a page in a 80 // This URL is loaded when a page is swapped out and replaced by a page in a
81 // different renderer process. It must have a unique origin that cannot be 81 // different renderer process. It must have a unique origin that cannot be
82 // scripted by other pages in the process. 82 // scripted by other pages in the process.
83 const char kSwappedOutURL[] = "swappedout://"; 83 const char kSwappedOutURL[] = "swappedout://";
84 84
85 const char** GetSavableSchemes() { 85 const char** GetSavableSchemes() {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 arraysize(kDefaultSavableSchemes) * sizeof(char*)); 121 arraysize(kDefaultSavableSchemes) * sizeof(char*));
122 for (int i = 0; i < schemes; ++i) { 122 for (int i = 0; i < schemes; ++i) {
123 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = 123 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] =
124 base::strdup(additional_savable_schemes[i].c_str()); 124 base::strdup(additional_savable_schemes[i].c_str());
125 } 125 }
126 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; 126 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0;
127 } 127 }
128 } 128 }
129 129
130 } // namespace content 130 } // 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