| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 // Contains constants for known URLs and portions thereof. | 10 // Contains constants for known URLs and portions thereof. |
| 11 | 11 |
| 12 class GURL; | 12 class GURL; |
| 13 | 13 |
| 14 // TODO(jam): rename this to content. | 14 // TODO(jam): rename this to content. |
| 15 namespace chrome { | 15 namespace chrome { |
| 16 | 16 |
| 17 // Canonical schemes you can use as input to GURL.SchemeIs(). | 17 // Canonical schemes you can use as input to GURL.SchemeIs(). |
| 18 // TODO(jam): some of these don't below in the content layer, but are accessed | 18 // TODO(jam): some of these don't below in the content layer, but are accessed |
| 19 // from there. | 19 // from there. |
| 20 CONTENT_EXPORT extern const char kAboutScheme[]; | 20 CONTENT_EXPORT extern const char kAboutScheme[]; |
| 21 CONTENT_EXPORT extern const char kBlobScheme[]; | 21 CONTENT_EXPORT extern const char kBlobScheme[]; |
| 22 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; | 22 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; |
| 23 CONTENT_EXPORT extern const char kChromeInternalScheme[]; | 23 CONTENT_EXPORT extern const char kChromeInternalScheme[]; |
| 24 CONTENT_EXPORT extern const char kChromeSearchScheme[]; | |
| 25 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. | 24 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. |
| 26 CONTENT_EXPORT extern const char kCrosScheme[]; // Used for ChromeOS. | |
| 27 CONTENT_EXPORT extern const char kDataScheme[]; | 25 CONTENT_EXPORT extern const char kDataScheme[]; |
| 28 CONTENT_EXPORT extern const char kFileScheme[]; | 26 CONTENT_EXPORT extern const char kFileScheme[]; |
| 29 CONTENT_EXPORT extern const char kFileSystemScheme[]; | 27 CONTENT_EXPORT extern const char kFileSystemScheme[]; |
| 30 CONTENT_EXPORT extern const char kFtpScheme[]; | 28 CONTENT_EXPORT extern const char kFtpScheme[]; |
| 31 CONTENT_EXPORT extern const char kGuestScheme[]; | 29 CONTENT_EXPORT extern const char kGuestScheme[]; |
| 32 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; | 30 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; |
| 33 CONTENT_EXPORT extern const char kHttpScheme[]; | 31 CONTENT_EXPORT extern const char kHttpScheme[]; |
| 34 CONTENT_EXPORT extern const char kHttpsScheme[]; | 32 CONTENT_EXPORT extern const char kHttpsScheme[]; |
| 35 CONTENT_EXPORT extern const char kJavaScriptScheme[]; | 33 CONTENT_EXPORT extern const char kJavaScriptScheme[]; |
| 36 CONTENT_EXPORT extern const char kMailToScheme[]; | 34 CONTENT_EXPORT extern const char kMailToScheme[]; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // invoked on any thread. | 82 // invoked on any thread. |
| 85 CONTENT_EXPORT const char* const* GetSavableSchemes(); | 83 CONTENT_EXPORT const char* const* GetSavableSchemes(); |
| 86 | 84 |
| 87 // Returns true if the url has a scheme for WebUI. See also | 85 // Returns true if the url has a scheme for WebUI. See also |
| 88 // WebUIControllerFactory::UseWebUIForURL in the browser process. | 86 // WebUIControllerFactory::UseWebUIForURL in the browser process. |
| 89 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); | 87 CONTENT_EXPORT bool HasWebUIScheme(const GURL& url); |
| 90 | 88 |
| 91 } // namespace content | 89 } // namespace content |
| 92 | 90 |
| 93 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 91 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |