| OLD | NEW |
| 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 // Contains constants for known URLs and portions thereof. | 5 // Contains constants for known URLs and portions thereof. |
| 6 | 6 |
| 7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ | 7 #ifndef CHROME_COMMON_URL_CONSTANTS_H_ |
| 8 #define CHROME_COMMON_URL_CONSTANTS_H_ | 8 #define CHROME_COMMON_URL_CONSTANTS_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 namespace chrome { | 11 namespace chrome { |
| 12 | 12 |
| 13 // Canonical schemes you can use as input to GURL.SchemeIs(). | 13 // Canonical schemes you can use as input to GURL.SchemeIs(). |
| 14 extern const char kAboutScheme[]; | 14 extern const char kAboutScheme[]; |
| 15 extern const char kBlobScheme[]; | 15 extern const char kBlobScheme[]; |
| 16 extern const char kChromeDevToolsScheme[]; | 16 extern const char kChromeDevToolsScheme[]; |
| 17 extern const char kChromeInternalScheme[]; | 17 extern const char kChromeInternalScheme[]; |
| 18 extern const char kChromeUIScheme[]; // The scheme used for WebUIs. | 18 extern const char kChromeUIScheme[]; // The scheme used for WebUIs. |
| 19 extern const char kCrosScheme[]; // The scheme used for ChromeOS. | 19 extern const char kCrosScheme[]; // The scheme used for ChromeOS. |
| 20 extern const char kDataScheme[]; | 20 extern const char kDataScheme[]; |
| 21 extern const char kExtensionScheme[]; | 21 extern const char kExtensionScheme[]; |
| 22 extern const char kFileScheme[]; | 22 extern const char kFileScheme[]; |
| 23 extern const char kFileSystemScheme[]; | 23 extern const char kFileSystemScheme[]; |
| 24 extern const char kFtpScheme[]; | 24 extern const char kFtpScheme[]; |
| 25 extern const char kGearsScheme[]; | |
| 26 extern const char kHttpScheme[]; | 25 extern const char kHttpScheme[]; |
| 27 extern const char kHttpsScheme[]; | 26 extern const char kHttpsScheme[]; |
| 28 extern const char kJavaScriptScheme[]; | 27 extern const char kJavaScriptScheme[]; |
| 29 extern const char kMailToScheme[]; | 28 extern const char kMailToScheme[]; |
| 30 extern const char kMetadataScheme[]; | 29 extern const char kMetadataScheme[]; |
| 31 extern const char kUserScriptScheme[]; | 30 extern const char kUserScriptScheme[]; |
| 32 extern const char kViewSourceScheme[]; | 31 extern const char kViewSourceScheme[]; |
| 33 | 32 |
| 34 // Used to separate a standard scheme and the hostname: "://". | 33 // Used to separate a standard scheme and the hostname: "://". |
| 35 extern const char kStandardSchemeSeparator[]; | 34 extern const char kStandardSchemeSeparator[]; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // The URL for the "Learn more" page for the blocked/outdated plugin infobar. | 223 // The URL for the "Learn more" page for the blocked/outdated plugin infobar. |
| 225 extern const char kOutdatedPluginLearnMoreURL[]; | 224 extern const char kOutdatedPluginLearnMoreURL[]; |
| 226 | 225 |
| 227 // Call near the beginning of startup to register Chrome's internal URLs that | 226 // Call near the beginning of startup to register Chrome's internal URLs that |
| 228 // should be parsed as "standard" with the googleurl library. | 227 // should be parsed as "standard" with the googleurl library. |
| 229 void RegisterChromeSchemes(); | 228 void RegisterChromeSchemes(); |
| 230 | 229 |
| 231 } // namespace chrome | 230 } // namespace chrome |
| 232 | 231 |
| 233 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 232 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |