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"; | |
162 const char kChromeUIResourcesHost[] = "resources"; | 161 const char kChromeUIResourcesHost[] = "resources"; |
163 const char kChromeUISessionsHost[] = "sessions"; | 162 const char kChromeUISessionsHost[] = "sessions"; |
164 const char kChromeUISettingsHost[] = "settings"; | 163 const char kChromeUISettingsHost[] = "settings"; |
165 const char kChromeUIShorthangHost[] = "shorthang"; | 164 const char kChromeUIShorthangHost[] = "shorthang"; |
166 const char kChromeUIStatsHost[] = "stats"; | 165 const char kChromeUIStatsHost[] = "stats"; |
167 const char kChromeUISyncHost[] = "sync"; | 166 const char kChromeUISyncHost[] = "sync"; |
168 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 167 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
169 const char kChromeUISyncResourcesHost[] = "syncresources"; | 168 const char kChromeUISyncResourcesHost[] = "syncresources"; |
170 const char kChromeUITasksHost[] = "tasks"; | 169 const char kChromeUITasksHost[] = "tasks"; |
171 const char kChromeUITCMallocHost[] = "tcmalloc"; | 170 const char kChromeUITCMallocHost[] = "tcmalloc"; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 303 |
305 // Prevent future modification of the standard schemes list. This is to | 304 // Prevent future modification of the standard schemes list. This is to |
306 // prevent accidental creation of data races in the program. AddStandardScheme | 305 // prevent accidental creation of data races in the program. AddStandardScheme |
307 // isn't threadsafe so must be called when GURL isn't used on any other | 306 // isn't threadsafe so must be called when GURL isn't used on any other |
308 // thread. This is really easy to mess up, so we say that all calls to | 307 // thread. This is really easy to mess up, so we say that all calls to |
309 // AddStandardScheme in Chrome must be inside this function. | 308 // AddStandardScheme in Chrome must be inside this function. |
310 url_util::LockStandardSchemes(); | 309 url_util::LockStandardSchemes(); |
311 } | 310 } |
312 | 311 |
313 } // namespace chrome | 312 } // namespace chrome |
OLD | NEW |