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 #include "chrome/common/url_constants.h" | 5 #include "chrome/common/url_constants.h" |
6 | 6 |
7 #include "googleurl/src/url_util.h" | 7 #include "googleurl/src/url_util.h" |
8 | 8 |
9 namespace chrome { | 9 namespace chrome { |
10 | 10 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const char kChromeUIFlashHost[] = "flash"; | 114 const char kChromeUIFlashHost[] = "flash"; |
115 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 115 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
116 const char kChromeUIHistoryHost[] = "history"; | 116 const char kChromeUIHistoryHost[] = "history"; |
117 const char kChromeUIHistory2Host[] = "history2"; | 117 const char kChromeUIHistory2Host[] = "history2"; |
118 const char kChromeUIInspectorHost[] = "inspector"; | 118 const char kChromeUIInspectorHost[] = "inspector"; |
119 const char kChromeUIKeyboardHost[] = "keyboard"; | 119 const char kChromeUIKeyboardHost[] = "keyboard"; |
120 const char kChromeUINetInternalsHost[] = "net-internals"; | 120 const char kChromeUINetInternalsHost[] = "net-internals"; |
121 const char kChromeUINewTabHost[] = "newtab"; | 121 const char kChromeUINewTabHost[] = "newtab"; |
122 const char kChromeUIPluginsHost[] = "plugins"; | 122 const char kChromeUIPluginsHost[] = "plugins"; |
123 const char kChromeUIPrintHost[] = "print"; | 123 const char kChromeUIPrintHost[] = "print"; |
| 124 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
124 const char kChromeUIResourcesHost[] = "resources"; | 125 const char kChromeUIResourcesHost[] = "resources"; |
125 const char kChromeUIScreenshotPath[] = "screenshots"; | 126 const char kChromeUIScreenshotPath[] = "screenshots"; |
126 const char kChromeUISettingsHost[] = "settings"; | 127 const char kChromeUISettingsHost[] = "settings"; |
127 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 128 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
128 const char kChromeUISyncResourcesHost[] = "syncresources"; | 129 const char kChromeUISyncResourcesHost[] = "syncresources"; |
129 const char kChromeUITextfieldsHost[] = "textfields"; | 130 const char kChromeUITextfieldsHost[] = "textfields"; |
130 const char kChromeUIThemePath[] = "theme"; | 131 const char kChromeUIThemePath[] = "theme"; |
131 const char kChromeUIThumbnailPath[] = "thumb"; | 132 const char kChromeUIThumbnailPath[] = "thumb"; |
132 | 133 |
133 #if defined(OS_CHROMEOS) | 134 #if defined(OS_CHROMEOS) |
(...skipping 27 matching lines...) Expand all Loading... |
161 | 162 |
162 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; | 163 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; |
163 | 164 |
164 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 165 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
165 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 166 const char kCloudPrintResourcesHost[] = "cloudprintresources"; |
166 const char kCloudPrintSetupHost[] = "cloudprintsetup"; | 167 const char kCloudPrintSetupHost[] = "cloudprintsetup"; |
167 | 168 |
168 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 169 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
169 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; | 170 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; |
170 | 171 |
| 172 const char kQuotaInternalsURL[] = "chrome://quota-internals/"; |
| 173 |
171 const char kSyncViewInternalsURL[] = "chrome://sync-internals/"; | 174 const char kSyncViewInternalsURL[] = "chrome://sync-internals/"; |
172 const char kSyncGoogleDashboardURL[] = "https://www.google.com/dashboard/"; | 175 const char kSyncGoogleDashboardURL[] = "https://www.google.com/dashboard/"; |
173 | 176 |
174 // GPU sub pages | 177 // GPU sub pages |
175 const char kGpuInternalsURL[] = "chrome://gpu-internals/"; | 178 const char kGpuInternalsURL[] = "chrome://gpu-internals/"; |
176 | 179 |
177 // Option sub pages. | 180 // Option sub pages. |
178 const char kAdvancedOptionsSubPage[] = "advanced"; | 181 const char kAdvancedOptionsSubPage[] = "advanced"; |
179 const char kAutofillSubPage[] = "autofill"; | 182 const char kAutofillSubPage[] = "autofill"; |
180 const char kBrowserOptionsSubPage[] = "browser"; | 183 const char kBrowserOptionsSubPage[] = "browser"; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 264 |
262 // Prevent future modification of the standard schemes list. This is to | 265 // Prevent future modification of the standard schemes list. This is to |
263 // prevent accidental creation of data races in the program. AddStandardScheme | 266 // prevent accidental creation of data races in the program. AddStandardScheme |
264 // isn't threadsafe so must be called when GURL isn't used on any other | 267 // isn't threadsafe so must be called when GURL isn't used on any other |
265 // thread. This is really easy to mess up, so we say that all calls to | 268 // thread. This is really easy to mess up, so we say that all calls to |
266 // AddStandardScheme in Chrome must be inside this function. | 269 // AddStandardScheme in Chrome must be inside this function. |
267 url_util::LockStandardSchemes(); | 270 url_util::LockStandardSchemes(); |
268 } | 271 } |
269 | 272 |
270 } // namespace chrome | 273 } // namespace chrome |
OLD | NEW |