| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 9 |
| 10 namespace chrome { | 10 namespace chrome { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 extern const char kPrintScheme[]; | 25 extern const char kPrintScheme[]; |
| 26 extern const char kUserScriptScheme[]; | 26 extern const char kUserScriptScheme[]; |
| 27 extern const char kViewSourceScheme[]; | 27 extern const char kViewSourceScheme[]; |
| 28 | 28 |
| 29 // Used to separate a standard scheme and the hostname: "://". | 29 // Used to separate a standard scheme and the hostname: "://". |
| 30 extern const char kStandardSchemeSeparator[]; | 30 extern const char kStandardSchemeSeparator[]; |
| 31 | 31 |
| 32 // Null terminated list of schemes that are savable. | 32 // Null terminated list of schemes that are savable. |
| 33 extern const char* kSavableSchemes[]; | 33 extern const char* kSavableSchemes[]; |
| 34 | 34 |
| 35 // About URLs (including schmes). | 35 // About URLs (including schemes). |
| 36 extern const char kAboutBlankURL[]; | 36 extern const char kAboutBlankURL[]; |
| 37 extern const char kAboutBrowserCrash[]; | 37 extern const char kAboutBrowserCrash[]; |
| 38 extern const char kAboutCacheURL[]; | 38 extern const char kAboutCacheURL[]; |
| 39 extern const char kAboutNetInternalsURL[]; | 39 extern const char kAboutNetInternalsURL[]; |
| 40 extern const char kAboutCrashURL[]; | 40 extern const char kAboutCrashURL[]; |
| 41 extern const char kAboutCreditsURL[]; | 41 extern const char kAboutCreditsURL[]; |
| 42 extern const char kAboutHangURL[]; | 42 extern const char kAboutHangURL[]; |
| 43 extern const char kAboutMemoryURL[]; | 43 extern const char kAboutMemoryURL[]; |
| 44 extern const char kAboutShorthangURL[]; | 44 extern const char kAboutShorthangURL[]; |
| 45 extern const char kAboutTermsURL[]; | 45 extern const char kAboutTermsURL[]; |
| 46 | 46 |
| 47 // chrome: URLs (including schemes). Should be kept in sync with the | 47 // chrome: URLs (including schemes). Should be kept in sync with the |
| 48 // components below. | 48 // components below. |
| 49 extern const char kChromeUIBookmarksURL[]; | 49 extern const char kChromeUIBookmarksURL[]; |
| 50 extern const char kChromeUIDevToolsURL[]; | 50 extern const char kChromeUIDevToolsURL[]; |
| 51 extern const char kChromeUIDownloadsURL[]; | 51 extern const char kChromeUIDownloadsURL[]; |
| 52 extern const char kChromeUIExtensionsURL[]; | 52 extern const char kChromeUIExtensionsURL[]; |
| 53 extern const char kChromeUIHistoryURL[]; | 53 extern const char kChromeUIHistoryURL[]; |
| 54 extern const char kChromeUIPluginsURL[]; |
| 54 extern const char kChromeUIFileBrowseURL[]; | 55 extern const char kChromeUIFileBrowseURL[]; |
| 55 extern const char kChromeUIMediaplayerURL[]; | 56 extern const char kChromeUIMediaplayerURL[]; |
| 56 extern const char kChromeUIIPCURL[]; | 57 extern const char kChromeUIIPCURL[]; |
| 57 extern const char kChromeUINetworkURL[]; | 58 extern const char kChromeUINetworkURL[]; |
| 58 extern const char kChromeUINewTabURL[]; | 59 extern const char kChromeUINewTabURL[]; |
| 59 | 60 |
| 60 // chrome components of URLs. Should be kept in sync with the full URLs | 61 // chrome components of URLs. Should be kept in sync with the full URLs |
| 61 // above. | 62 // above. |
| 62 extern const char kChromeUIBookmarksHost[]; | 63 extern const char kChromeUIBookmarksHost[]; |
| 63 extern const char kChromeUIDevToolsHost[]; | 64 extern const char kChromeUIDevToolsHost[]; |
| 64 extern const char kChromeUIDialogHost[]; | 65 extern const char kChromeUIDialogHost[]; |
| 65 extern const char kChromeUIDownloadsHost[]; | 66 extern const char kChromeUIDownloadsHost[]; |
| 66 extern const char kChromeUIExtensionsHost[]; | 67 extern const char kChromeUIExtensionsHost[]; |
| 67 extern const char kChromeUIFavIconPath[]; | 68 extern const char kChromeUIFavIconPath[]; |
| 68 extern const char kChromeUIHistoryHost[]; | 69 extern const char kChromeUIHistoryHost[]; |
| 70 extern const char kChromeUIPluginsHost[]; |
| 69 extern const char kChromeUIFileBrowseHost[]; | 71 extern const char kChromeUIFileBrowseHost[]; |
| 70 extern const char kChromeUIMediaplayerHost[]; | 72 extern const char kChromeUIMediaplayerHost[]; |
| 71 extern const char kChromeUIInspectorHost[]; | 73 extern const char kChromeUIInspectorHost[]; |
| 72 extern const char kChromeUINetInternalsHost[]; | 74 extern const char kChromeUINetInternalsHost[]; |
| 73 extern const char kChromeUINewTabHost[]; | 75 extern const char kChromeUINewTabHost[]; |
| 74 extern const char kChromeUIThumbnailPath[]; | 76 extern const char kChromeUIThumbnailPath[]; |
| 75 extern const char kChromeUIThemePath[]; | 77 extern const char kChromeUIThemePath[]; |
| 76 | 78 |
| 77 // Sync related URL components. | 79 // Sync related URL components. |
| 78 extern const char kSyncResourcesHost[]; | 80 extern const char kSyncResourcesHost[]; |
| 79 extern const char kSyncGaiaLoginPath[]; | 81 extern const char kSyncGaiaLoginPath[]; |
| 80 extern const char kSyncMergeAndSyncPath[]; | 82 extern const char kSyncMergeAndSyncPath[]; |
| 81 extern const char kSyncThrobberPath[]; | 83 extern const char kSyncThrobberPath[]; |
| 82 extern const char kSyncSetupFlowPath[]; | 84 extern const char kSyncSetupFlowPath[]; |
| 83 extern const char kSyncSetupDonePath[]; | 85 extern const char kSyncSetupDonePath[]; |
| 84 | 86 |
| 85 // Network related URLs. | 87 // Network related URLs. |
| 86 extern const char kNetworkViewCacheURL[]; | 88 extern const char kNetworkViewCacheURL[]; |
| 87 extern const char kNetworkViewInternalsURL[]; | 89 extern const char kNetworkViewInternalsURL[]; |
| 88 | 90 |
| 89 // Call near the beginning of startup to register Chrome's internal URLs that | 91 // Call near the beginning of startup to register Chrome's internal URLs that |
| 90 // should be parsed as "standard" with the googleurl library. | 92 // should be parsed as "standard" with the googleurl library. |
| 91 void RegisterChromeSchemes(); | 93 void RegisterChromeSchemes(); |
| 92 | 94 |
| 93 } // namespace chrome | 95 } // namespace chrome |
| 94 | 96 |
| 95 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 97 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
| OLD | NEW |