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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const char kChromeUIKeyboardHost[] = "keyboard"; | 151 const char kChromeUIKeyboardHost[] = "keyboard"; |
152 const char kChromeUIKillHost[] = "kill"; | 152 const char kChromeUIKillHost[] = "kill"; |
153 const char kChromeUIMediaInternalsHost[] = "media-internals"; | 153 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
154 const char kChromeUIMemoryHost[] = "memory"; | 154 const char kChromeUIMemoryHost[] = "memory"; |
155 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; | 155 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; |
156 const char kChromeUINetInternalsHost[] = "net-internals"; | 156 const char kChromeUINetInternalsHost[] = "net-internals"; |
157 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 157 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
158 const char kChromeUINewTabHost[] = "newtab"; | 158 const char kChromeUINewTabHost[] = "newtab"; |
159 const char kChromeUIPluginsHost[] = "plugins"; | 159 const char kChromeUIPluginsHost[] = "plugins"; |
160 const char kChromeUIPrintHost[] = "print"; | 160 const char kChromeUIPrintHost[] = "print"; |
| 161 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
161 const char kChromeUIResourcesHost[] = "resources"; | 162 const char kChromeUIResourcesHost[] = "resources"; |
162 const char kChromeUISessionsHost[] = "sessions"; | 163 const char kChromeUISessionsHost[] = "sessions"; |
163 const char kChromeUISettingsHost[] = "settings"; | 164 const char kChromeUISettingsHost[] = "settings"; |
164 const char kChromeUIShorthangHost[] = "shorthang"; | 165 const char kChromeUIShorthangHost[] = "shorthang"; |
165 const char kChromeUIStatsHost[] = "stats"; | 166 const char kChromeUIStatsHost[] = "stats"; |
166 const char kChromeUISyncHost[] = "sync"; | 167 const char kChromeUISyncHost[] = "sync"; |
167 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 168 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
168 const char kChromeUISyncResourcesHost[] = "syncresources"; | 169 const char kChromeUISyncResourcesHost[] = "syncresources"; |
169 const char kChromeUITasksHost[] = "tasks"; | 170 const char kChromeUITasksHost[] = "tasks"; |
170 const char kChromeUITCMallocHost[] = "tcmalloc"; | 171 const char kChromeUITCMallocHost[] = "tcmalloc"; |
(...skipping 132 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 |