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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 const char kChromeUIStatsHost[] = "stats"; | 166 const char kChromeUIStatsHost[] = "stats"; |
167 const char kChromeUISyncHost[] = "sync"; | 167 const char kChromeUISyncHost[] = "sync"; |
168 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 168 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
169 const char kChromeUISyncResourcesHost[] = "syncresources"; | 169 const char kChromeUISyncResourcesHost[] = "syncresources"; |
170 const char kChromeUITasksHost[] = "tasks"; | 170 const char kChromeUITasksHost[] = "tasks"; |
171 const char kChromeUITCMallocHost[] = "tcmalloc"; | 171 const char kChromeUITCMallocHost[] = "tcmalloc"; |
172 const char kChromeUITextfieldsHost[] = "textfields"; | 172 const char kChromeUITextfieldsHost[] = "textfields"; |
173 const char kChromeUITermsHost[] = "terms"; | 173 const char kChromeUITermsHost[] = "terms"; |
174 const char kChromeUITouchIconHost[] = "touch-icon"; | 174 const char kChromeUITouchIconHost[] = "touch-icon"; |
175 const char kChromeUIVersionHost[] = "version"; | 175 const char kChromeUIVersionHost[] = "version"; |
| 176 const char kChromeUIWorkersHost[] = "workers"; |
176 | 177 |
177 const char kChromeUIScreenshotPath[] = "screenshots"; | 178 const char kChromeUIScreenshotPath[] = "screenshots"; |
178 const char kChromeUIThemePath[] = "theme"; | 179 const char kChromeUIThemePath[] = "theme"; |
179 const char kChromeUIThumbnailPath[] = "thumb"; | 180 const char kChromeUIThumbnailPath[] = "thumb"; |
180 | 181 |
181 #if defined(OS_LINUX) | 182 #if defined(OS_LINUX) |
182 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; | 183 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; |
183 const char kChromeUISandboxHost[] = "sandbox"; | 184 const char kChromeUISandboxHost[] = "sandbox"; |
184 #endif | 185 #endif |
185 | 186 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 306 |
306 // Prevent future modification of the standard schemes list. This is to | 307 // Prevent future modification of the standard schemes list. This is to |
307 // prevent accidental creation of data races in the program. AddStandardScheme | 308 // prevent accidental creation of data races in the program. AddStandardScheme |
308 // isn't threadsafe so must be called when GURL isn't used on any other | 309 // isn't threadsafe so must be called when GURL isn't used on any other |
309 // thread. This is really easy to mess up, so we say that all calls to | 310 // thread. This is really easy to mess up, so we say that all calls to |
310 // AddStandardScheme in Chrome must be inside this function. | 311 // AddStandardScheme in Chrome must be inside this function. |
311 url_util::LockStandardSchemes(); | 312 url_util::LockStandardSchemes(); |
312 } | 313 } |
313 | 314 |
314 } // namespace chrome | 315 } // namespace chrome |
OLD | NEW |