Chromium Code Reviews| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "url/url_constants.h" | 10 #include "url/url_constants.h" |
| 11 | 11 |
| 12 // Contains constants for known URLs and portions thereof. | 12 // Contains constants for known URLs and portions thereof. |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // Canonical schemes you can use as input to GURL.SchemeIs(). | 16 // 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 | 17 // TODO(jam): some of these don't below in the content layer, but are accessed |
| 18 // from there. | 18 // from there. |
| 19 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; | 19 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; |
| 20 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. | 20 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. |
| 21 CONTENT_EXPORT extern const char kGuestScheme[]; | 21 CONTENT_EXPORT extern const char kGuestScheme[]; |
| 22 CONTENT_EXPORT extern const char kViewSourceScheme[]; | 22 CONTENT_EXPORT extern const char kViewSourceScheme[]; |
| 23 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 24 CONTENT_EXPORT extern const char kExternalFileScheme[]; | 24 CONTENT_EXPORT extern const char kExternalFileScheme[]; |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 // Hosts for about URLs. | 27 // Hosts for about URLs. |
| 28 CONTENT_EXPORT extern const char kAboutSrcDocURL[]; | 28 CONTENT_EXPORT extern const char kAboutSrcDocURL[]; |
| 29 | 29 |
| 30 CONTENT_EXPORT extern const char kAboutBlankPath[]; | |
|
clamy
2017/01/19 17:54:51
Note: I've put all this in this file since it seem
Charlie Reis
2017/01/19 22:36:35
I was going to suggest content/common/content_cons
clamy
2017/01/20 12:51:53
As per mkwst@ input, I've moved this to url/.
| |
| 31 CONTENT_EXPORT extern const char kAboutBlankWithHashPath[]; | |
| 32 | |
| 30 CONTENT_EXPORT extern const char kChromeUIAccessibilityHost[]; | 33 CONTENT_EXPORT extern const char kChromeUIAccessibilityHost[]; |
| 31 CONTENT_EXPORT extern const char kChromeUIAppCacheInternalsHost[]; | 34 CONTENT_EXPORT extern const char kChromeUIAppCacheInternalsHost[]; |
| 32 CONTENT_EXPORT extern const char kChromeUIBlobInternalsHost[]; | 35 CONTENT_EXPORT extern const char kChromeUIBlobInternalsHost[]; |
| 33 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[]; | 36 CONTENT_EXPORT extern const char kChromeUIBrowserCrashHost[]; |
| 34 CONTENT_EXPORT extern const char kChromeUIDinoHost[]; | 37 CONTENT_EXPORT extern const char kChromeUIDinoHost[]; |
| 35 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; | 38 CONTENT_EXPORT extern const char kChromeUIGpuHost[]; |
| 36 CONTENT_EXPORT extern const char kChromeUIHistogramHost[]; | 39 CONTENT_EXPORT extern const char kChromeUIHistogramHost[]; |
| 37 CONTENT_EXPORT extern const char kChromeUIHistoryHost[]; | 40 CONTENT_EXPORT extern const char kChromeUIHistoryHost[]; |
| 38 CONTENT_EXPORT extern const char kChromeUIIndexedDBInternalsHost[]; | 41 CONTENT_EXPORT extern const char kChromeUIIndexedDBInternalsHost[]; |
| 39 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[]; | 42 CONTENT_EXPORT extern const char kChromeUIMediaInternalsHost[]; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 69 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; | 72 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; |
| 70 | 73 |
| 71 // Full about URLs (including schemes). | 74 // Full about URLs (including schemes). |
| 72 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; | 75 CONTENT_EXPORT extern const char kChromeUINetworkViewCacheURL[]; |
| 73 CONTENT_EXPORT extern const char kChromeUIResourcesURL[]; | 76 CONTENT_EXPORT extern const char kChromeUIResourcesURL[]; |
| 74 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; | 77 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; |
| 75 | 78 |
| 76 } // namespace content | 79 } // namespace content |
| 77 | 80 |
| 78 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 81 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |