| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 const char kChromeUIGpuCrashHost[] = "gpucrash"; | 143 const char kChromeUIGpuCrashHost[] = "gpucrash"; |
| 144 const char kChromeUIGpuHangHost[] = "gpuhang"; | 144 const char kChromeUIGpuHangHost[] = "gpuhang"; |
| 145 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 145 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
| 146 const char kChromeUIHangHost[] = "hang"; | 146 const char kChromeUIHangHost[] = "hang"; |
| 147 const char kChromeUIHistory2Host[] = "history2"; | 147 const char kChromeUIHistory2Host[] = "history2"; |
| 148 const char kChromeUIHistoryHost[] = "history"; | 148 const char kChromeUIHistoryHost[] = "history"; |
| 149 const char kChromeUIHistogramsHost[] = "histograms"; | 149 const char kChromeUIHistogramsHost[] = "histograms"; |
| 150 const char kChromeUIIPCHost[] = "ipc"; | 150 const char kChromeUIIPCHost[] = "ipc"; |
| 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 kChromeUIMemoryHost[] = "memory"; | 154 const char kChromeUIMemoryHost[] = "memory"; |
| 154 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; | 155 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; |
| 155 const char kChromeUINetInternalsHost[] = "net-internals"; | 156 const char kChromeUINetInternalsHost[] = "net-internals"; |
| 156 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 157 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
| 157 const char kChromeUINewTabHost[] = "newtab"; | 158 const char kChromeUINewTabHost[] = "newtab"; |
| 158 const char kChromeUIPluginsHost[] = "plugins"; | 159 const char kChromeUIPluginsHost[] = "plugins"; |
| 159 const char kChromeUIPrintHost[] = "print"; | 160 const char kChromeUIPrintHost[] = "print"; |
| 160 const char kChromeUIResourcesHost[] = "resources"; | 161 const char kChromeUIResourcesHost[] = "resources"; |
| 161 const char kChromeUISessionsHost[] = "sessions"; | 162 const char kChromeUISessionsHost[] = "sessions"; |
| 162 const char kChromeUISettingsHost[] = "settings"; | 163 const char kChromeUISettingsHost[] = "settings"; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 303 |
| 303 // Prevent future modification of the standard schemes list. This is to | 304 // Prevent future modification of the standard schemes list. This is to |
| 304 // prevent accidental creation of data races in the program. AddStandardScheme | 305 // prevent accidental creation of data races in the program. AddStandardScheme |
| 305 // 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 |
| 306 // 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 |
| 307 // AddStandardScheme in Chrome must be inside this function. | 308 // AddStandardScheme in Chrome must be inside this function. |
| 308 url_util::LockStandardSchemes(); | 309 url_util::LockStandardSchemes(); |
| 309 } | 310 } |
| 310 | 311 |
| 311 } // namespace chrome | 312 } // namespace chrome |
| OLD | NEW |