OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Contains constants for known URLs and portions thereof. |
| 6 |
| 7 #ifndef CONTENT_COMMON_URL_CONSTANTS_H_ |
| 8 #define CONTENT_COMMON_URL_CONSTANTS_H_ |
| 9 #pragma once |
| 10 |
| 11 #include "content/common/url_constants.h" |
| 12 |
| 13 namespace chrome { |
| 14 |
| 15 // Canonical schemes you can use as input to GURL.SchemeIs(). |
| 16 // TODO(jam): some of these don't below in the content layer, but are accessed |
| 17 // from there. |
| 18 extern const char kAboutScheme[]; |
| 19 extern const char kBlobScheme[]; |
| 20 extern const char kChromeDevToolsScheme[]; |
| 21 extern const char kChromeInternalScheme[]; |
| 22 extern const char kChromeUIScheme[]; // The scheme used for WebUIs. |
| 23 extern const char kCrosScheme[]; // The scheme used for ChromeOS. |
| 24 extern const char kDataScheme[]; |
| 25 extern const char kExtensionScheme[]; |
| 26 extern const char kFileScheme[]; |
| 27 extern const char kFileSystemScheme[]; |
| 28 extern const char kFtpScheme[]; |
| 29 extern const char kHttpScheme[]; |
| 30 extern const char kHttpsScheme[]; |
| 31 extern const char kJavaScriptScheme[]; |
| 32 extern const char kMailToScheme[]; |
| 33 extern const char kMetadataScheme[]; |
| 34 extern const char kUserScriptScheme[]; |
| 35 extern const char kViewSourceScheme[]; |
| 36 |
| 37 // Used to separate a standard scheme and the hostname: "://". |
| 38 extern const char kStandardSchemeSeparator[]; |
| 39 |
| 40 // About URLs (including schemes). |
| 41 extern const char kAboutBlankURL[]; |
| 42 extern const char kAboutCrashURL[]; |
| 43 |
| 44 // Special URL used to start a navigation to an error page. |
| 45 extern const char kUnreachableWebDataURL[]; |
| 46 |
| 47 } // namespace chrome |
| 48 |
| 49 #endif // CONTENT_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |