Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/common/url_constants.h

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

Powered by Google App Engine
This is Rietveld 408576698