Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / content / public / common / url_constants.cc
blob8337146da2f8ce9deac3af777ea6b66c8154d282
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
3 // found in the LICENSE file.
5 #include "content/public/common/url_constants.h"
7 #include "content/common/savable_url_schemes.h"
9 namespace chrome {
11 const char kAboutScheme[] = "about";
12 const char kBlobScheme[] = "blob";
14 // Before adding new chrome schemes please check with security@chromium.org.
15 // There are security implications associated with introducing new schemes.
16 const char kChromeDevToolsScheme[] = "chrome-devtools";
17 const char kChromeInternalScheme[] = "chrome-internal";
18 const char kChromeUIScheme[] = "chrome";
19 const char kDataScheme[] = "data";
20 const char kFileScheme[] = "file";
21 const char kFileSystemScheme[] = "filesystem";
22 const char kFtpScheme[] = "ftp";
23 const char kGuestScheme[] = "guest";
24 const char kHttpScheme[] = "http";
25 const char kHttpsScheme[] = "https";
26 const char kJavaScriptScheme[] = "javascript";
27 const char kMailToScheme[] = "mailto";
28 const char kMetadataScheme[] = "metadata";
29 const char kSwappedOutScheme[] = "swappedout";
30 const char kViewSourceScheme[] = "view-source";
32 const char kAboutBlankURL[] = "about:blank";
33 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals";
34 const char kChromeUIBlobInternalsHost[] = "blob-internals";
35 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz";
36 const char kChromeUINetworkViewCacheHost[] = "view-http-cache";
37 const char kChromeUITcmallocHost[] = "tcmalloc";
38 const char kChromeUIHistogramHost[] = "histograms";
39 const char kChromeUICrashURL[] = "chrome://crash";
40 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean";
41 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash";
42 const char kChromeUIGpuHangURL[] = "chrome://gpuhang";
43 const char kChromeUIHangURL[] = "chrome://hang";
44 const char kChromeUIKillURL[] = "chrome://kill";
45 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/";
46 const char kChromeUIShorthangURL[] = "chrome://shorthang";
48 } // namespace chrome
50 namespace content {
52 const char kStandardSchemeSeparator[] = "://";
54 // This error URL is loaded in normal web renderer processes, so it should not
55 // have a chrome:// scheme that might let it be confused with a WebUI page.
56 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata";
58 // 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 // scripted by other pages in the process.
61 const char kSwappedOutURL[] = "swappedout://";
63 const char* const* GetSavableSchemes() {
64 return GetSavableSchemesInternal();
67 } // namespace content