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 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 |
11 #include "build/build_config.h" | |
12 #include "content/common/url_constants.h" | 11 #include "content/common/url_constants.h" |
13 | 12 |
14 namespace chrome { | 13 namespace chrome { |
15 | 14 |
16 // Null terminated list of schemes that are savable. | 15 // Null terminated list of schemes that are savable. |
17 extern const char* kSavableSchemes[]; | 16 extern const char* kSavableSchemes[]; |
18 | 17 |
19 // About URLs (including schemes). | 18 // About URLs (including schemes). |
20 extern const char kAboutAboutURL[]; | 19 extern const char kAboutAboutURL[]; |
21 extern const char kAboutAppCacheInternalsURL[]; | 20 extern const char kAboutAppCacheInternalsURL[]; |
(...skipping 16 matching lines...) Expand all Loading... |
38 extern const char kAboutNetInternalsURL[]; | 37 extern const char kAboutNetInternalsURL[]; |
39 extern const char kAboutPluginsURL[]; | 38 extern const char kAboutPluginsURL[]; |
40 extern const char kAboutShorthangURL[]; | 39 extern const char kAboutShorthangURL[]; |
41 extern const char kAboutSyncURL[]; | 40 extern const char kAboutSyncURL[]; |
42 extern const char kAboutSyncInternalsURL[]; | 41 extern const char kAboutSyncInternalsURL[]; |
43 extern const char kAboutTermsURL[]; | 42 extern const char kAboutTermsURL[]; |
44 extern const char kAboutVersionURL[]; | 43 extern const char kAboutVersionURL[]; |
45 | 44 |
46 // chrome: URLs (including schemes). Should be kept in sync with the | 45 // chrome: URLs (including schemes). Should be kept in sync with the |
47 // components below. | 46 // components below. |
| 47 extern const char kChromeUIAboutAboutURL[]; |
| 48 extern const char kChromeUIAboutCreditsURL[]; |
48 extern const char kChromeUIAboutURL[]; | 49 extern const char kChromeUIAboutURL[]; |
49 extern const char kChromeUIBookmarksURL[]; | 50 extern const char kChromeUIBookmarksURL[]; |
50 extern const char kChromeUIBugReportURL[]; | 51 extern const char kChromeUIBugReportURL[]; |
51 extern const char kChromeUICloudPrintResourcesURL[]; | |
52 extern const char kChromeUIConflictsURL[]; | 52 extern const char kChromeUIConflictsURL[]; |
53 extern const char kChromeUIConstrainedHTMLTestURL[]; | 53 extern const char kChromeUIConstrainedHTMLTestURL[]; |
54 extern const char kChromeUICrashesURL[]; | 54 extern const char kChromeUICrashesURL[]; |
55 extern const char kChromeUICrashURL[]; | |
56 extern const char kChromeUICreditsURL[]; | |
57 extern const char kChromeUIDevToolsURL[]; | 55 extern const char kChromeUIDevToolsURL[]; |
58 extern const char kChromeUIDownloadsURL[]; | 56 extern const char kChromeUIDownloadsURL[]; |
59 extern const char kChromeUIExtensionIconURL[]; | 57 extern const char kChromeUIExtensionIconURL[]; |
60 extern const char kChromeUIExtensionsURL[]; | 58 extern const char kChromeUIExtensionsURL[]; |
61 extern const char kChromeUIFlagsURL[]; | 59 extern const char kChromeUIFlagsURL[]; |
62 extern const char kChromeUIFlashURL[]; | 60 extern const char kChromeUIFlashURL[]; |
63 extern const char kChromeUIFaviconURL[]; | 61 extern const char kChromeUIFaviconURL[]; |
64 extern const char kChromeUIHangURL[]; | |
65 extern const char kChromeUIHistory2URL[]; | 62 extern const char kChromeUIHistory2URL[]; |
66 extern const char kChromeUIHistoryURL[]; | 63 extern const char kChromeUIHistoryURL[]; |
67 extern const char kChromeUIIPCURL[]; | |
68 extern const char kChromeUIKeyboardURL[]; | 64 extern const char kChromeUIKeyboardURL[]; |
69 extern const char kChromeUIKillURL[]; | |
70 extern const char kChromeUIMemoryRedirectURL[]; | |
71 extern const char kChromeUINetworkViewCacheURL[]; | |
72 extern const char kChromeUINewTabURL[]; | 65 extern const char kChromeUINewTabURL[]; |
73 extern const char kChromeUIPluginsURL[]; | 66 extern const char kChromeUIPluginsURL[]; |
74 extern const char kChromeUIPrintURL[]; | 67 extern const char kChromeUIPrintURL[]; |
75 extern const char kChromeUISettingsURL[]; | 68 extern const char kChromeUISettingsURL[]; |
76 extern const char kChromeUIShorthangURL[]; | |
77 extern const char kChromeUITextfieldsURL[]; | 69 extern const char kChromeUITextfieldsURL[]; |
78 extern const char kChromeUIVersionURL[]; | |
79 | 70 |
80 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
| 72 extern const char kChromeUIAboutOSCreditsURL[]; |
81 extern const char kChromeUIActivationMessage[]; | 73 extern const char kChromeUIActivationMessage[]; |
82 extern const char kChromeUIActiveDownloadsURL[]; | 74 extern const char kChromeUIActiveDownloadsURL[]; |
83 extern const char kChromeUIChooseMobileNetworkURL[]; | 75 extern const char kChromeUIChooseMobileNetworkURL[]; |
84 extern const char kChromeUICollectedCookiesURL[]; | 76 extern const char kChromeUICollectedCookiesURL[]; |
85 extern const char kChromeUIHttpAuthURL[]; | 77 extern const char kChromeUIHttpAuthURL[]; |
86 extern const char kChromeUIImageBurnerURL[]; | 78 extern const char kChromeUIImageBurnerURL[]; |
87 extern const char kChromeUIKeyboardOverlayURL[]; | 79 extern const char kChromeUIKeyboardOverlayURL[]; |
88 extern const char kChromeUIMediaplayerURL[]; | 80 extern const char kChromeUIMediaplayerURL[]; |
89 extern const char kChromeUIMobileSetupURL[]; | 81 extern const char kChromeUIMobileSetupURL[]; |
90 extern const char kChromeUIOobeURL[]; | 82 extern const char kChromeUIOobeURL[]; |
91 extern const char kChromeUIOSCreditsURL[]; | |
92 extern const char kChromeUIProxySettingsURL[]; | 83 extern const char kChromeUIProxySettingsURL[]; |
93 extern const char kChromeUIRegisterPageURL[]; | 84 extern const char kChromeUIRegisterPageURL[]; |
94 extern const char kChromeUISlideshowURL[]; | 85 extern const char kChromeUISlideshowURL[]; |
95 extern const char kChromeUISimUnlockURL[]; | 86 extern const char kChromeUISimUnlockURL[]; |
96 extern const char kChromeUISystemInfoURL[]; | 87 extern const char kChromeUISystemInfoURL[]; |
97 extern const char kChromeUIUserImageURL[]; | 88 extern const char kChromeUIUserImageURL[]; |
98 extern const char kChromeUIEnterpriseEnrollmentURL[]; | 89 extern const char kChromeUIEnterpriseEnrollmentURL[]; |
99 #endif | 90 #endif |
100 | 91 |
101 // chrome components of URLs. Should be kept in sync with the full URLs above. | 92 // chrome components of URLs. Should be kept in sync with the full URLs |
102 extern const char kChromeUIAboutHost[]; | 93 // above. |
103 extern const char kChromeUIAppCacheInternalsHost[]; | |
104 extern const char kChromeUIBlankHost[]; | |
105 extern const char kChromeUIBlobInternalsHost[]; | |
106 extern const char kChromeUIBookmarksHost[]; | 94 extern const char kChromeUIBookmarksHost[]; |
107 extern const char kChromeUIBrowserCrashHost[]; | |
108 extern const char kChromeUIBugReportHost[]; | 95 extern const char kChromeUIBugReportHost[]; |
109 extern const char kChromeUICacheHost[]; | |
110 extern const char kChromeUIChromeURLsHost[]; | |
111 extern const char kChromeUICloudPrintResourcesHost[]; | |
112 extern const char kChromeUICloudPrintSetupHost[]; | |
113 extern const char kChromeUIConflictsHost[]; | 96 extern const char kChromeUIConflictsHost[]; |
114 extern const char kChromeUIConstrainedHTMLTestHost[]; | |
115 extern const char kChromeUICrashHost[]; | |
116 extern const char kChromeUICrashesHost[]; | 97 extern const char kChromeUICrashesHost[]; |
117 extern const char kChromeUICreditsHost[]; | |
118 extern const char kChromeUIDefaultHost[]; | |
119 extern const char kChromeUIDevToolsHost[]; | 98 extern const char kChromeUIDevToolsHost[]; |
120 extern const char kChromeUIDialogHost[]; | 99 extern const char kChromeUIDialogHost[]; |
121 extern const char kChromeUIDNSHost[]; | |
122 extern const char kChromeUIDownloadsHost[]; | 100 extern const char kChromeUIDownloadsHost[]; |
123 extern const char kChromeUIExtensionIconHost[]; | 101 extern const char kChromeUIExtensionIconHost[]; |
124 extern const char kChromeUIExtensionsHost[]; | 102 extern const char kChromeUIExtensionsHost[]; |
125 extern const char kChromeUIFaviconHost[]; | 103 extern const char kChromeUIFaviconHost[]; |
| 104 extern const char kChromeUITouchIconHost[]; |
126 extern const char kChromeUIFlagsHost[]; | 105 extern const char kChromeUIFlagsHost[]; |
127 extern const char kChromeUIFlashHost[]; | 106 extern const char kChromeUIFlashHost[]; |
128 extern const char kChromeUIGpuHost[]; | |
129 extern const char kChromeUIGpuCleanHost[]; | |
130 extern const char kChromeUIGpuCrashHost[]; | |
131 extern const char kChromeUIGpuHangHost[]; | |
132 extern const char kChromeUIGpuInternalsHost[]; | 107 extern const char kChromeUIGpuInternalsHost[]; |
133 extern const char kChromeUIHangHost[]; | |
134 extern const char kChromeUIHistory2Host[]; | 108 extern const char kChromeUIHistory2Host[]; |
135 extern const char kChromeUIHistoryHost[]; | 109 extern const char kChromeUIHistoryHost[]; |
136 extern const char kChromeUIHistogramsHost[]; | |
137 extern const char kChromeUIIPCHost[]; | |
138 extern const char kChromeUIKeyboardHost[]; | 110 extern const char kChromeUIKeyboardHost[]; |
139 extern const char kChromeUIKillHost[]; | |
140 extern const char kChromeUIMemoryHost[]; | |
141 extern const char kChromeUIMemoryRedirectHost[]; | |
142 extern const char kChromeUINetInternalsHost[]; | 111 extern const char kChromeUINetInternalsHost[]; |
143 extern const char kChromeUINetworkViewCacheHost[]; | |
144 extern const char kChromeUINewTabHost[]; | 112 extern const char kChromeUINewTabHost[]; |
145 extern const char kChromeUIPluginsHost[]; | 113 extern const char kChromeUIPluginsHost[]; |
146 extern const char kChromeUIPrintHost[]; | 114 extern const char kChromeUIPrintHost[]; |
147 extern const char kChromeUIResourcesHost[]; | 115 extern const char kChromeUIResourcesHost[]; |
| 116 extern const char kChromeUIScreenshotPath[]; |
148 extern const char kChromeUISettingsHost[]; | 117 extern const char kChromeUISettingsHost[]; |
149 extern const char kChromeUIShorthangHost[]; | |
150 extern const char kChromeUIStatsHost[]; | |
151 extern const char kChromeUISyncHost[]; | |
152 extern const char kChromeUISyncInternalsHost[]; | 118 extern const char kChromeUISyncInternalsHost[]; |
153 extern const char kChromeUISyncResourcesHost[]; | 119 extern const char kChromeUISyncResourcesHost[]; |
154 extern const char kChromeUITasksHost[]; | |
155 extern const char kChromeUITCMallocHost[]; | |
156 extern const char kChromeUITextfieldsHost[]; | 120 extern const char kChromeUITextfieldsHost[]; |
157 extern const char kChromeUITermsHost[]; | |
158 extern const char kChromeUITouchIconHost[]; | |
159 extern const char kChromeUIVersionHost[]; | |
160 | |
161 extern const char kChromeUIScreenshotPath[]; | |
162 extern const char kChromeUIThemePath[]; | 121 extern const char kChromeUIThemePath[]; |
163 extern const char kChromeUIThumbnailPath[]; | 122 extern const char kChromeUIThumbnailPath[]; |
164 | 123 |
165 #if defined(OS_LINUX) | |
166 extern const char kChromeUILinuxProxyConfigHost[]; | |
167 extern const char kChromeUISandboxHost[]; | |
168 #endif | |
169 | |
170 #if defined(OS_CHROMEOS) | 124 #if defined(OS_CHROMEOS) |
| 125 extern const char kChromeUIActiveDownloadsHost[]; |
171 extern const char kChromeUIActivationMessageHost[]; | 126 extern const char kChromeUIActivationMessageHost[]; |
172 extern const char kChromeUIActiveDownloadsHost[]; | |
173 extern const char kChromeUIChooseMobileNetworkHost[]; | 127 extern const char kChromeUIChooseMobileNetworkHost[]; |
174 extern const char kChromeUICollectedCookiesHost[]; | 128 extern const char kChromeUICollectedCookiesHost[]; |
175 extern const char kChromeUIEnterpriseEnrollmentHost[]; | |
176 extern const char kChromeUIHttpAuthHost[]; | 129 extern const char kChromeUIHttpAuthHost[]; |
177 extern const char kChromeUIImageBurnerHost[]; | 130 extern const char kChromeUIImageBurnerHost[]; |
178 extern const char kChromeUIKeyboardOverlayHost[]; | 131 extern const char kChromeUIKeyboardOverlayHost[]; |
179 extern const char kChromeUILoginContainerHost[]; | |
180 extern const char kChromeUILoginHost[]; | |
181 extern const char kChromeUIMediaplayerHost[]; | 132 extern const char kChromeUIMediaplayerHost[]; |
182 extern const char kChromeUIMobileSetupHost[]; | 133 extern const char kChromeUIMobileSetupHost[]; |
183 extern const char kChromeUINetworkHost[]; | |
184 extern const char kChromeUIOobeHost[]; | 134 extern const char kChromeUIOobeHost[]; |
185 extern const char kChromeUIOSCreditsHost[]; | |
186 extern const char kChromeUIProxySettingsHost[]; | 135 extern const char kChromeUIProxySettingsHost[]; |
187 extern const char kChromeUIRegisterPageHost[]; | 136 extern const char kChromeUIRegisterPageHost[]; |
188 extern const char kChromeUISlideshowHost[]; | 137 extern const char kChromeUISlideshowHost[]; |
189 extern const char kChromeUISimUnlockHost[]; | 138 extern const char kChromeUISimUnlockHost[]; |
190 extern const char kChromeUISystemInfoHost[]; | 139 extern const char kChromeUISystemInfoHost[]; |
191 extern const char kChromeUIUserImageHost[]; | |
192 | |
193 extern const char kChromeUIMenu[]; | 140 extern const char kChromeUIMenu[]; |
194 extern const char kChromeUIWrenchMenu[]; | 141 extern const char kChromeUIWrenchMenu[]; |
195 extern const char kChromeUINetworkMenu[]; | 142 extern const char kChromeUINetworkMenu[]; |
| 143 extern const char kChromeUIUserImageHost[]; |
| 144 extern const char kChromeUIEnterpriseEnrollmentHost[]; |
| 145 extern const char kChromeUILoginContainerHost[]; |
| 146 extern const char kChromeUILoginHost[]; |
| 147 #endif |
196 | 148 |
197 extern const char kEULAPathFormat[]; | 149 // AppCache related URL. |
198 #endif | 150 extern const char kAppCacheViewInternalsURL[]; |
| 151 |
| 152 // Blob related URL. |
| 153 extern const char kBlobViewInternalsURL[]; |
| 154 |
| 155 // Cloud Print dialog URL components. |
| 156 extern const char kCloudPrintResourcesURL[]; |
| 157 extern const char kCloudPrintResourcesHost[]; |
| 158 extern const char kCloudPrintSetupHost[]; |
| 159 |
| 160 // Network related URLs. |
| 161 extern const char kNetworkViewCacheURL[]; |
| 162 extern const char kNetworkViewInternalsURL[]; |
| 163 |
| 164 // Sync related URLs. |
| 165 extern const char kSyncViewInternalsURL[]; |
| 166 extern const char kSyncGoogleDashboardURL[]; |
| 167 |
| 168 // GPU related URLs |
| 169 extern const char kGpuInternalsURL[]; |
199 | 170 |
200 // Options sub-pages. | 171 // Options sub-pages. |
201 extern const char kAdvancedOptionsSubPage[]; | 172 extern const char kAdvancedOptionsSubPage[]; |
202 extern const char kAutofillSubPage[]; | 173 extern const char kAutofillSubPage[]; |
203 extern const char kBrowserOptionsSubPage[]; | 174 extern const char kBrowserOptionsSubPage[]; |
204 extern const char kClearBrowserDataSubPage[]; | 175 extern const char kClearBrowserDataSubPage[]; |
205 extern const char kContentSettingsSubPage[]; | 176 extern const char kContentSettingsSubPage[]; |
206 extern const char kContentSettingsExceptionsSubPage[]; | 177 extern const char kContentSettingsExceptionsSubPage[]; |
207 extern const char kImportDataSubPage[]; | 178 extern const char kImportDataSubPage[]; |
208 extern const char kInstantConfirmPage[]; | 179 extern const char kInstantConfirmPage[]; |
209 extern const char kLanguageOptionsSubPage[]; | 180 extern const char kLanguageOptionsSubPage[]; |
210 extern const char kPersonalOptionsSubPage[]; | 181 extern const char kPersonalOptionsSubPage[]; |
211 extern const char kPasswordManagerSubPage[]; | 182 extern const char kPasswordManagerSubPage[]; |
212 extern const char kSearchEnginesSubPage[]; | 183 extern const char kSearchEnginesSubPage[]; |
213 extern const char kSyncSetupSubPage[]; | 184 extern const char kSyncSetupSubPage[]; |
214 #if defined(OS_CHROMEOS) | 185 #if defined(OS_CHROMEOS) |
215 extern const char kInternetOptionsSubPage[]; | 186 extern const char kInternetOptionsSubPage[]; |
216 extern const char kSystemOptionsSubPage[]; | 187 extern const char kSystemOptionsSubPage[]; |
217 #endif | 188 #endif |
218 | 189 |
219 extern const char kSyncGoogleDashboardURL[]; | |
220 | |
221 extern const char kPasswordManagerLearnMoreURL[]; | 190 extern const char kPasswordManagerLearnMoreURL[]; |
222 | 191 |
223 // General help link for Chrome. | 192 // General help link for Chrome. |
224 extern const char kChromeHelpURL[]; | 193 extern const char kChromeHelpURL[]; |
225 | 194 |
226 // "What do these mean?" URL for the Page Info bubble. | 195 // "What do these mean?" URL for the Page Info bubble. |
227 extern const char kPageInfoHelpCenterURL[]; | 196 extern const char kPageInfoHelpCenterURL[]; |
228 | 197 |
229 // "Learn more" URL for "Aw snap" page. | 198 // "Learn more" URL for "Aw snap" page. |
230 extern const char kCrashReasonURL[]; | 199 extern const char kCrashReasonURL[]; |
(...skipping 17 matching lines...) Expand all Loading... |
248 // The URL for the "Learn more" page for the blocked plugin infobar. | 217 // The URL for the "Learn more" page for the blocked plugin infobar. |
249 extern const char kBlockedPluginLearnMoreURL[]; | 218 extern const char kBlockedPluginLearnMoreURL[]; |
250 | 219 |
251 // Call near the beginning of startup to register Chrome's internal URLs that | 220 // Call near the beginning of startup to register Chrome's internal URLs that |
252 // should be parsed as "standard" with the googleurl library. | 221 // should be parsed as "standard" with the googleurl library. |
253 void RegisterChromeSchemes(); | 222 void RegisterChromeSchemes(); |
254 | 223 |
255 } // namespace chrome | 224 } // namespace chrome |
256 | 225 |
257 #endif // CHROME_COMMON_URL_CONSTANTS_H_ | 226 #endif // CHROME_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |