| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 extern const char kUserScriptScheme[]; | 28 extern const char kUserScriptScheme[]; |
| 29 extern const char kViewSourceScheme[]; | 29 extern const char kViewSourceScheme[]; |
| 30 | 30 |
| 31 // Used to separate a standard scheme and the hostname: "://". | 31 // Used to separate a standard scheme and the hostname: "://". |
| 32 extern const char kStandardSchemeSeparator[]; | 32 extern const char kStandardSchemeSeparator[]; |
| 33 | 33 |
| 34 // Null terminated list of schemes that are savable. | 34 // Null terminated list of schemes that are savable. |
| 35 extern const char* kSavableSchemes[]; | 35 extern const char* kSavableSchemes[]; |
| 36 | 36 |
| 37 // About URLs (including schemes). | 37 // About URLs (including schemes). |
| 38 extern const char kAboutAboutURL[]; |
| 38 extern const char kAboutAppCacheInternalsURL[]; | 39 extern const char kAboutAppCacheInternalsURL[]; |
| 39 extern const char kAboutBlankURL[]; | 40 extern const char kAboutBlankURL[]; |
| 40 extern const char kAboutBrowserCrash[]; | 41 extern const char kAboutBrowserCrash[]; |
| 41 extern const char kAboutCacheURL[]; | 42 extern const char kAboutCacheURL[]; |
| 42 extern const char kAboutNetInternalsURL[]; | |
| 43 extern const char kAboutCrashURL[]; | 43 extern const char kAboutCrashURL[]; |
| 44 extern const char kAboutCreditsURL[]; | 44 extern const char kAboutCreditsURL[]; |
| 45 extern const char kAboutDNSURL[]; |
| 45 extern const char kAboutHangURL[]; | 46 extern const char kAboutHangURL[]; |
| 47 extern const char kAboutHistogramsURL[]; |
| 48 extern const char kAboutLabsURL[]; |
| 46 extern const char kAboutMemoryURL[]; | 49 extern const char kAboutMemoryURL[]; |
| 50 extern const char kAboutNetInternalsURL[]; |
| 47 extern const char kAboutPluginsURL[]; | 51 extern const char kAboutPluginsURL[]; |
| 48 extern const char kAboutShorthangURL[]; | 52 extern const char kAboutShorthangURL[]; |
| 49 extern const char kAboutSystemURL[]; | 53 extern const char kAboutSystemURL[]; |
| 50 extern const char kAboutTermsURL[]; | 54 extern const char kAboutTermsURL[]; |
| 51 extern const char kAboutAboutURL[]; | 55 extern const char kAboutVaporwareURL[]; |
| 52 extern const char kAboutDNSURL[]; | |
| 53 extern const char kAboutHistogramsURL[]; | |
| 54 extern const char kAboutVersionURL[]; | 56 extern const char kAboutVersionURL[]; |
| 55 | 57 |
| 56 // chrome: URLs (including schemes). Should be kept in sync with the | 58 // chrome: URLs (including schemes). Should be kept in sync with the |
| 57 // components below. | 59 // components below. |
| 58 extern const char kChromeUIAboutURL[]; | 60 extern const char kChromeUIAboutURL[]; |
| 59 extern const char kChromeUIAppLauncherURL[]; | 61 extern const char kChromeUIAppLauncherURL[]; |
| 60 extern const char kChromeUIBookmarksURL[]; | 62 extern const char kChromeUIBookmarksURL[]; |
| 61 extern const char kChromeUIBugReportURL[]; | 63 extern const char kChromeUIBugReportURL[]; |
| 62 extern const char kChromeUIDevToolsURL[]; | 64 extern const char kChromeUIDevToolsURL[]; |
| 63 extern const char kChromeUIDownloadsURL[]; | 65 extern const char kChromeUIDownloadsURL[]; |
| 64 extern const char kChromeUIExtensionsURL[]; | 66 extern const char kChromeUIExtensionsURL[]; |
| 65 extern const char kChromeUIFavIconURL[]; | 67 extern const char kChromeUIFavIconURL[]; |
| 66 extern const char kChromeUIFileBrowseURL[]; | 68 extern const char kChromeUIFileBrowseURL[]; |
| 69 extern const char kChromeUIHistory2URL[]; |
| 67 extern const char kChromeUIHistoryURL[]; | 70 extern const char kChromeUIHistoryURL[]; |
| 68 extern const char kChromeUIHistory2URL[]; | |
| 69 extern const char kChromeUIImageBurnerURL[]; | 71 extern const char kChromeUIImageBurnerURL[]; |
| 70 extern const char kChromeUIIPCURL[]; | 72 extern const char kChromeUIIPCURL[]; |
| 73 extern const char kChromeUILabsURL[]; |
| 71 extern const char kChromeUIMediaplayerURL[]; | 74 extern const char kChromeUIMediaplayerURL[]; |
| 72 extern const char kChromeUINewTabURL[]; | 75 extern const char kChromeUINewTabURL[]; |
| 73 extern const char kChromeUIOptionsURL[]; | 76 extern const char kChromeUIOptionsURL[]; |
| 74 extern const char kChromeUIPluginsURL[]; | 77 extern const char kChromeUIPluginsURL[]; |
| 75 extern const char kChromeUIPrintURL[]; | 78 extern const char kChromeUIPrintURL[]; |
| 76 extern const char kChromeUIRegisterPageURL[]; | 79 extern const char kChromeUIRegisterPageURL[]; |
| 77 extern const char kChromeUISlideshowURL[]; | 80 extern const char kChromeUISlideshowURL[]; |
| 78 | 81 |
| 79 // chrome components of URLs. Should be kept in sync with the full URLs | 82 // chrome components of URLs. Should be kept in sync with the full URLs |
| 80 // above. | 83 // above. |
| 81 extern const char kChromeUIBookmarksHost[]; | 84 extern const char kChromeUIBookmarksHost[]; |
| 82 extern const char kChromeUIBugReportHost[]; | 85 extern const char kChromeUIBugReportHost[]; |
| 83 extern const char kChromeUIDevToolsHost[]; | 86 extern const char kChromeUIDevToolsHost[]; |
| 84 extern const char kChromeUIDialogHost[]; | 87 extern const char kChromeUIDialogHost[]; |
| 85 extern const char kChromeUIDownloadsHost[]; | 88 extern const char kChromeUIDownloadsHost[]; |
| 86 extern const char kChromeUIExtensionsHost[]; | 89 extern const char kChromeUIExtensionsHost[]; |
| 87 extern const char kChromeUIFavIconHost[]; | 90 extern const char kChromeUIFavIconHost[]; |
| 88 extern const char kChromeUIFileBrowseHost[]; | 91 extern const char kChromeUIFileBrowseHost[]; |
| 92 extern const char kChromeUIHistory2Host[]; |
| 89 extern const char kChromeUIHistoryHost[]; | 93 extern const char kChromeUIHistoryHost[]; |
| 90 extern const char kChromeUIHistory2Host[]; | |
| 91 extern const char kChromeUIImageBurnerHost[]; | 94 extern const char kChromeUIImageBurnerHost[]; |
| 92 extern const char kChromeUIInspectorHost[]; | 95 extern const char kChromeUIInspectorHost[]; |
| 96 extern const char kChromeUILabsHost[]; |
| 93 extern const char kChromeUIMediaplayerHost[]; | 97 extern const char kChromeUIMediaplayerHost[]; |
| 94 extern const char kChromeUINetInternalsHost[]; | 98 extern const char kChromeUINetInternalsHost[]; |
| 95 extern const char kChromeUINewTabHost[]; | 99 extern const char kChromeUINewTabHost[]; |
| 96 extern const char kChromeUIOptionsHost[]; | 100 extern const char kChromeUIOptionsHost[]; |
| 97 extern const char kChromeUIPluginsHost[]; | 101 extern const char kChromeUIPluginsHost[]; |
| 98 extern const char kChromeUIPrintHost[]; | 102 extern const char kChromeUIPrintHost[]; |
| 99 extern const char kChromeUIRegisterPageHost[]; | 103 extern const char kChromeUIRegisterPageHost[]; |
| 100 extern const char kChromeUIRemotingHost[]; | 104 extern const char kChromeUIRemotingHost[]; |
| 105 extern const char kChromeUIRemotingResourcesHost[]; |
| 101 extern const char kChromeUIResourcesHost[]; | 106 extern const char kChromeUIResourcesHost[]; |
| 102 extern const char kChromeUIScreenshotPath[]; | 107 extern const char kChromeUIScreenshotPath[]; |
| 103 extern const char kChromeUISlideshowHost[]; | 108 extern const char kChromeUISlideshowHost[]; |
| 104 extern const char kChromeUISyncResourcesHost[]; | 109 extern const char kChromeUISyncResourcesHost[]; |
| 105 extern const char kChromeUIRemotingResourcesHost[]; | 110 extern const char kChromeUIThemePath[]; |
| 106 extern const char kChromeUIThumbnailPath[]; | 111 extern const char kChromeUIThumbnailPath[]; |
| 107 extern const char kChromeUIThemePath[]; | |
| 108 | 112 |
| 109 // AppCache related URL. | 113 // AppCache related URL. |
| 110 extern const char kAppCacheViewInternalsURL[]; | 114 extern const char kAppCacheViewInternalsURL[]; |
| 111 | 115 |
| 112 // Cloud Print dialog URL components. | 116 // Cloud Print dialog URL components. |
| 113 extern const char kCloudPrintResourcesURL[]; | 117 extern const char kCloudPrintResourcesURL[]; |
| 114 extern const char kCloudPrintResourcesHost[]; | 118 extern const char kCloudPrintResourcesHost[]; |
| 115 | 119 |
| 116 // Network related URLs. | 120 // Network related URLs. |
| 117 extern const char kNetworkViewCacheURL[]; | 121 extern const char kNetworkViewCacheURL[]; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 128 extern const char kInternetOptionsSubPage[]; | 132 extern const char kInternetOptionsSubPage[]; |
| 129 #endif | 133 #endif |
| 130 | 134 |
| 131 // Call near the beginning of startup to register Chrome's internal URLs that | 135 // Call near the beginning of startup to register Chrome's internal URLs that |
| 132 // should be parsed as "standard" with the googleurl library. | 136 // should be parsed as "standard" with the googleurl library. |
| 133 void RegisterChromeSchemes(); | 137 void RegisterChromeSchemes(); |
| 134 | 138 |
| 135 } // namespace chrome | 139 } // namespace chrome |
| 136 | 140 |
| 137 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 141 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |