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

Side by Side Diff: chrome/common/url_constants.cc

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "chrome/common/url_constants.h" 7 #include "chrome/common/url_constants.h"
8 #include "googleurl/src/url_util.h" 8 #include "googleurl/src/url_util.h"
9 9
10 namespace chrome { 10 namespace chrome {
11 11
12 const char kAboutScheme[] = "about";
13 const char kBlobScheme[] = "blob";
14 const char kChromeDevToolsScheme[] = "chrome-devtools";
15 const char kChromeInternalScheme[] = "chrome-internal";
16 const char kChromeUIScheme[] = "chrome";
17 const char kDataScheme[] = "data";
18 const char kExtensionScheme[] = "chrome-extension";
19 const char kFileScheme[] = "file";
20 const char kFileSystemScheme[] = "filesystem";
21 const char kFtpScheme[] = "ftp";
22 const char kHttpScheme[] = "http";
23 const char kHttpsScheme[] = "https";
24 const char kJavaScriptScheme[] = "javascript";
25 const char kMailToScheme[] = "mailto";
26 const char kMetadataScheme[] = "metadata";
27 const char kUserScriptScheme[] = "chrome-user-script";
28 const char kViewSourceScheme[] = "view-source";
29
30 #if defined(OS_CHROMEOS) 12 #if defined(OS_CHROMEOS)
31 const char kCrosScheme[] = "cros"; 13 const char kCrosScheme[] = "cros";
32 #endif 14 #endif
33 15
34 const char kStandardSchemeSeparator[] = "://";
35
36 const char* kSavableSchemes[] = { 16 const char* kSavableSchemes[] = {
37 kHttpScheme, 17 kHttpScheme,
38 kHttpsScheme, 18 kHttpsScheme,
39 kFileScheme, 19 kFileScheme,
40 kFtpScheme, 20 kFtpScheme,
41 kExtensionScheme, 21 kExtensionScheme,
42 kChromeDevToolsScheme, 22 kChromeDevToolsScheme,
43 kChromeUIScheme, 23 kChromeUIScheme,
44 NULL 24 NULL
45 }; 25 };
46 26
47 const char kAboutAboutURL[] = "about:about"; 27 const char kAboutAboutURL[] = "about:about";
48 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; 28 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals";
49 const char kAboutBlankURL[] = "about:blank";
50 const char kAboutCacheURL[] = "about:cache"; 29 const char kAboutCacheURL[] = "about:cache";
51 const char kAboutConflicts[] = "about:conflicts"; 30 const char kAboutConflicts[] = "about:conflicts";
52 const char kAboutCrashURL[] = "about:crash";
53 const char kAboutKillURL[] = "about:kill"; 31 const char kAboutKillURL[] = "about:kill";
54 const char kAboutCreditsURL[] = "about:credits"; 32 const char kAboutCreditsURL[] = "about:credits";
55 const char kAboutDNSURL[] = "about:dns"; 33 const char kAboutDNSURL[] = "about:dns";
56 const char kAboutFlagsURL[] = "about:flags"; 34 const char kAboutFlagsURL[] = "about:flags";
57 const char kAboutGpuURL[] = "about:gpu"; 35 const char kAboutGpuURL[] = "about:gpu";
58 const char kAboutGpuCrashURL[] = "about:gpucrash"; 36 const char kAboutGpuCrashURL[] = "about:gpucrash";
59 const char kAboutGpuHangURL[] = "about:gpuhang"; 37 const char kAboutGpuHangURL[] = "about:gpuhang";
60 const char kAboutHangURL[] = "about:hang"; 38 const char kAboutHangURL[] = "about:hang";
61 const char kAboutHistogramsURL[] = "about:histograms"; 39 const char kAboutHistogramsURL[] = "about:histograms";
62 const char kAboutMemoryURL[] = "about:memory"; 40 const char kAboutMemoryURL[] = "about:memory";
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const char kChromeUINetworkMenu[] = "network-menu"; 151 const char kChromeUINetworkMenu[] = "network-menu";
174 const char kChromeUIUserImageHost[] = "userimage"; 152 const char kChromeUIUserImageHost[] = "userimage";
175 const char kChromeUIEnterpriseEnrollmentHost[] = "enterprise-enrollment"; 153 const char kChromeUIEnterpriseEnrollmentHost[] = "enterprise-enrollment";
176 #endif 154 #endif
177 155
178 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) 156 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
179 const char kChromeUILoginContainerHost[] = "login-container"; 157 const char kChromeUILoginContainerHost[] = "login-container";
180 const char kChromeUILoginHost[] = "login"; 158 const char kChromeUILoginHost[] = "login";
181 #endif 159 #endif
182 160
183 const char kUnreachableWebDataURL[] = "chrome://chromewebdata/";
184
185 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; 161 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/";
186 162
187 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; 163 const char kBlobViewInternalsURL[] = "chrome://blob-internals/";
188 164
189 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; 165 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/";
190 const char kCloudPrintResourcesHost[] = "cloudprintresources"; 166 const char kCloudPrintResourcesHost[] = "cloudprintresources";
191 const char kCloudPrintSetupHost[] = "cloudprintsetup"; 167 const char kCloudPrintSetupHost[] = "cloudprintsetup";
192 168
193 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; 169 const char kNetworkViewInternalsURL[] = "chrome://net-internals/";
194 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; 170 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/";
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 261
286 // Prevent future modification of the standard schemes list. This is to 262 // Prevent future modification of the standard schemes list. This is to
287 // prevent accidental creation of data races in the program. AddStandardScheme 263 // prevent accidental creation of data races in the program. AddStandardScheme
288 // isn't threadsafe so must be called when GURL isn't used on any other 264 // isn't threadsafe so must be called when GURL isn't used on any other
289 // thread. This is really easy to mess up, so we say that all calls to 265 // thread. This is really easy to mess up, so we say that all calls to
290 // AddStandardScheme in Chrome must be inside this function. 266 // AddStandardScheme in Chrome must be inside this function.
291 url_util::LockStandardSchemes(); 267 url_util::LockStandardSchemes();
292 } 268 }
293 269
294 } // namespace chrome 270 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698