Chromium Code Reviews| 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 CONTENT_COMMON_URL_CONSTANTS_H_ | 7 #ifndef CONTENT_COMMON_URL_CONSTANTS_H_ |
| 8 #define CONTENT_COMMON_URL_CONSTANTS_H_ | 8 #define CONTENT_COMMON_URL_CONSTANTS_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include "content/common/content_export.h" | |
| 12 | |
| 11 namespace chrome { | 13 namespace chrome { |
| 12 | 14 |
| 13 // Null terminated list of schemes that are savable. | 15 // Null terminated list of schemes that are savable. |
| 14 extern const char* kSavableSchemes[]; | 16 extern const char* kSavableSchemes[]; |
| 15 | 17 |
| 16 // Canonical schemes you can use as input to GURL.SchemeIs(). | 18 // Canonical schemes you can use as input to GURL.SchemeIs(). |
| 17 // TODO(jam): some of these don't below in the content layer, but are accessed | 19 // TODO(jam): some of these don't below in the content layer, but are accessed |
| 18 // from there. | 20 // from there. |
| 19 extern const char kAboutScheme[]; | 21 CONTENT_EXPORT extern const char kAboutScheme[]; |
| 20 extern const char kBlobScheme[]; | 22 CONTENT_EXPORT extern const char kBlobScheme[]; |
| 21 extern const char kChromeDevToolsScheme[]; | 23 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; |
| 22 extern const char kChromeInternalScheme[]; | 24 CONTENT_EXPORT extern const char kChromeInternalScheme[]; |
| 23 extern const char kChromeUIScheme[]; // The scheme used for WebUIs. | 25 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. |
| 24 extern const char kCrosScheme[]; // The scheme used for ChromeOS. | 26 extern const char kCrosScheme[]; // The scheme used for ChromeOS. |
|
darin (slow to review)
2011/09/04 15:41:04
looks like this needs to be exported too. otherwi
Dirk Pranke
2011/09/07 01:46:07
Done.
| |
| 25 extern const char kDataScheme[]; | 27 CONTENT_EXPORT extern const char kDataScheme[]; |
| 26 extern const char kExtensionScheme[]; | 28 CONTENT_EXPORT extern const char kExtensionScheme[]; |
| 27 extern const char kFileScheme[]; | 29 CONTENT_EXPORT extern const char kFileScheme[]; |
| 28 extern const char kFileSystemScheme[]; | 30 CONTENT_EXPORT extern const char kFileSystemScheme[]; |
| 29 extern const char kFtpScheme[]; | 31 CONTENT_EXPORT extern const char kFtpScheme[]; |
| 30 extern const char kHttpScheme[]; | 32 CONTENT_EXPORT extern const char kHttpScheme[]; |
| 31 extern const char kHttpsScheme[]; | 33 CONTENT_EXPORT extern const char kHttpsScheme[]; |
| 32 extern const char kJavaScriptScheme[]; | 34 CONTENT_EXPORT extern const char kJavaScriptScheme[]; |
| 33 extern const char kMailToScheme[]; | 35 CONTENT_EXPORT extern const char kMailToScheme[]; |
| 34 extern const char kMetadataScheme[]; | 36 CONTENT_EXPORT extern const char kMetadataScheme[]; |
| 35 extern const char kViewSourceScheme[]; | 37 CONTENT_EXPORT extern const char kViewSourceScheme[]; |
| 36 | 38 |
| 37 // Used to separate a standard scheme and the hostname: "://". | 39 // Used to separate a standard scheme and the hostname: "://". |
| 38 extern const char kStandardSchemeSeparator[]; | 40 CONTENT_EXPORT extern const char kStandardSchemeSeparator[]; |
| 39 | 41 |
| 40 // About URLs (including schemes). | 42 // About URLs (including schemes). |
| 41 extern const char kAboutBlankURL[]; | 43 CONTENT_EXPORT extern const char kAboutBlankURL[]; |
| 42 extern const char kAboutCrashURL[]; | 44 extern const char kAboutCrashURL[]; |
| 43 | 45 |
| 44 // Special URL used to start a navigation to an error page. | 46 // Special URL used to start a navigation to an error page. |
| 45 extern const char kUnreachableWebDataURL[]; | 47 extern const char kUnreachableWebDataURL[]; |
| 46 | 48 |
| 47 } // namespace chrome | 49 } // namespace chrome |
| 48 | 50 |
| 49 #endif // CONTENT_COMMON_URL_CONSTANTS_H_ | 51 #endif // CONTENT_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |