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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const char kChromeUIGpuCrashHost[] = "gpucrash"; | 140 const char kChromeUIGpuCrashHost[] = "gpucrash"; |
141 const char kChromeUIGpuHangHost[] = "gpuhang"; | 141 const char kChromeUIGpuHangHost[] = "gpuhang"; |
142 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 142 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
143 const char kChromeUIHangHost[] = "hang"; | 143 const char kChromeUIHangHost[] = "hang"; |
144 const char kChromeUIHistory2Host[] = "history2"; | 144 const char kChromeUIHistory2Host[] = "history2"; |
145 const char kChromeUIHistoryHost[] = "history"; | 145 const char kChromeUIHistoryHost[] = "history"; |
146 const char kChromeUIHistogramsHost[] = "histograms"; | 146 const char kChromeUIHistogramsHost[] = "histograms"; |
147 const char kChromeUIIPCHost[] = "ipc"; | 147 const char kChromeUIIPCHost[] = "ipc"; |
148 const char kChromeUIKeyboardHost[] = "keyboard"; | 148 const char kChromeUIKeyboardHost[] = "keyboard"; |
149 const char kChromeUIKillHost[] = "kill"; | 149 const char kChromeUIKillHost[] = "kill"; |
| 150 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
150 const char kChromeUIMemoryHost[] = "memory"; | 151 const char kChromeUIMemoryHost[] = "memory"; |
151 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; | 152 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; |
152 const char kChromeUINetInternalsHost[] = "net-internals"; | 153 const char kChromeUINetInternalsHost[] = "net-internals"; |
153 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 154 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
154 const char kChromeUINewTabHost[] = "newtab"; | 155 const char kChromeUINewTabHost[] = "newtab"; |
155 const char kChromeUIPluginsHost[] = "plugins"; | 156 const char kChromeUIPluginsHost[] = "plugins"; |
156 const char kChromeUIPrintHost[] = "print"; | 157 const char kChromeUIPrintHost[] = "print"; |
157 const char kChromeUIResourcesHost[] = "resources"; | 158 const char kChromeUIResourcesHost[] = "resources"; |
158 const char kChromeUISessionsHost[] = "sessions"; | 159 const char kChromeUISessionsHost[] = "sessions"; |
159 const char kChromeUISettingsHost[] = "settings"; | 160 const char kChromeUISettingsHost[] = "settings"; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 299 |
299 // Prevent future modification of the standard schemes list. This is to | 300 // Prevent future modification of the standard schemes list. This is to |
300 // prevent accidental creation of data races in the program. AddStandardScheme | 301 // prevent accidental creation of data races in the program. AddStandardScheme |
301 // isn't threadsafe so must be called when GURL isn't used on any other | 302 // isn't threadsafe so must be called when GURL isn't used on any other |
302 // thread. This is really easy to mess up, so we say that all calls to | 303 // thread. This is really easy to mess up, so we say that all calls to |
303 // AddStandardScheme in Chrome must be inside this function. | 304 // AddStandardScheme in Chrome must be inside this function. |
304 url_util::LockStandardSchemes(); | 305 url_util::LockStandardSchemes(); |
305 } | 306 } |
306 | 307 |
307 } // namespace chrome | 308 } // namespace chrome |
OLD | NEW |