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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 const char kChromeUIShorthangHost[] = "shorthang"; | 142 const char kChromeUIShorthangHost[] = "shorthang"; |
143 const char kChromeUIStatsHost[] = "stats"; | 143 const char kChromeUIStatsHost[] = "stats"; |
144 const char kChromeUISyncHost[] = "sync"; | 144 const char kChromeUISyncHost[] = "sync"; |
145 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 145 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
146 const char kChromeUISyncResourcesHost[] = "syncresources"; | 146 const char kChromeUISyncResourcesHost[] = "syncresources"; |
147 const char kChromeUITaskManagerHost[] = "tasks"; | 147 const char kChromeUITaskManagerHost[] = "tasks"; |
148 const char kChromeUITCMallocHost[] = "tcmalloc"; | 148 const char kChromeUITCMallocHost[] = "tcmalloc"; |
149 const char kChromeUITextfieldsHost[] = "textfields"; | 149 const char kChromeUITextfieldsHost[] = "textfields"; |
150 const char kChromeUITermsHost[] = "terms"; | 150 const char kChromeUITermsHost[] = "terms"; |
151 const char kChromeUITouchIconHost[] = "touch-icon"; | 151 const char kChromeUITouchIconHost[] = "touch-icon"; |
| 152 const char kChromeUITracingHost[] = "tracing"; |
152 const char kChromeUIVersionHost[] = "version"; | 153 const char kChromeUIVersionHost[] = "version"; |
153 const char kChromeUIWorkersHost[] = "workers"; | 154 const char kChromeUIWorkersHost[] = "workers"; |
154 | 155 |
155 const char kChromeUIScreenshotPath[] = "screenshots"; | 156 const char kChromeUIScreenshotPath[] = "screenshots"; |
156 const char kChromeUIThemePath[] = "theme"; | 157 const char kChromeUIThemePath[] = "theme"; |
157 const char kChromeUIThumbnailPath[] = "thumb"; | 158 const char kChromeUIThumbnailPath[] = "thumb"; |
158 | 159 |
159 #if defined(OS_LINUX) | 160 #if defined(OS_LINUX) |
160 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; | 161 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; |
161 const char kChromeUISandboxHost[] = "sandbox"; | 162 const char kChromeUISandboxHost[] = "sandbox"; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 302 |
302 // Prevent future modification of the standard schemes list. This is to | 303 // Prevent future modification of the standard schemes list. This is to |
303 // prevent accidental creation of data races in the program. AddStandardScheme | 304 // prevent accidental creation of data races in the program. AddStandardScheme |
304 // isn't threadsafe so must be called when GURL isn't used on any other | 305 // isn't threadsafe so must be called when GURL isn't used on any other |
305 // thread. This is really easy to mess up, so we say that all calls to | 306 // thread. This is really easy to mess up, so we say that all calls to |
306 // AddStandardScheme in Chrome must be inside this function. | 307 // AddStandardScheme in Chrome must be inside this function. |
307 url_util::LockStandardSchemes(); | 308 url_util::LockStandardSchemes(); |
308 } | 309 } |
309 | 310 |
310 } // namespace chrome | 311 } // namespace chrome |
OLD | NEW |