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