| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 const char kChromeUIExtensionsHost[] = "extensions"; | 111 const char kChromeUIExtensionsHost[] = "extensions"; |
| 112 const char kChromeUIFaviconHost[] = "favicon"; | 112 const char kChromeUIFaviconHost[] = "favicon"; |
| 113 const char kChromeUITouchIconHost[] = "touch-icon"; | 113 const char kChromeUITouchIconHost[] = "touch-icon"; |
| 114 const char kChromeUIFlagsHost[] = "flags"; | 114 const char kChromeUIFlagsHost[] = "flags"; |
| 115 const char kChromeUIFlashHost[] = "flash"; | 115 const char kChromeUIFlashHost[] = "flash"; |
| 116 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 116 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
| 117 const char kChromeUIHistoryHost[] = "history"; | 117 const char kChromeUIHistoryHost[] = "history"; |
| 118 const char kChromeUIHistory2Host[] = "history2"; | 118 const char kChromeUIHistory2Host[] = "history2"; |
| 119 const char kChromeUIInspectorHost[] = "inspector"; | 119 const char kChromeUIInspectorHost[] = "inspector"; |
| 120 const char kChromeUIKeyboardHost[] = "keyboard"; | 120 const char kChromeUIKeyboardHost[] = "keyboard"; |
| 121 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
| 121 const char kChromeUINetInternalsHost[] = "net-internals"; | 122 const char kChromeUINetInternalsHost[] = "net-internals"; |
| 122 const char kChromeUINewTabHost[] = "newtab"; | 123 const char kChromeUINewTabHost[] = "newtab"; |
| 123 const char kChromeUIPluginsHost[] = "plugins"; | 124 const char kChromeUIPluginsHost[] = "plugins"; |
| 124 const char kChromeUIPrintHost[] = "print"; | 125 const char kChromeUIPrintHost[] = "print"; |
| 125 const char kChromeUIResourcesHost[] = "resources"; | 126 const char kChromeUIResourcesHost[] = "resources"; |
| 126 const char kChromeUIScreenshotPath[] = "screenshots"; | 127 const char kChromeUIScreenshotPath[] = "screenshots"; |
| 127 const char kChromeUISettingsHost[] = "settings"; | 128 const char kChromeUISettingsHost[] = "settings"; |
| 128 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 129 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
| 129 const char kChromeUISyncResourcesHost[] = "syncresources"; | 130 const char kChromeUISyncResourcesHost[] = "syncresources"; |
| 130 const char kChromeUITextfieldsHost[] = "textfields"; | 131 const char kChromeUITextfieldsHost[] = "textfields"; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 261 |
| 261 // Prevent future modification of the standard schemes list. This is to | 262 // Prevent future modification of the standard schemes list. This is to |
| 262 // prevent accidental creation of data races in the program. AddStandardScheme | 263 // prevent accidental creation of data races in the program. AddStandardScheme |
| 263 // isn't threadsafe so must be called when GURL isn't used on any other | 264 // isn't threadsafe so must be called when GURL isn't used on any other |
| 264 // thread. This is really easy to mess up, so we say that all calls to | 265 // thread. This is really easy to mess up, so we say that all calls to |
| 265 // AddStandardScheme in Chrome must be inside this function. | 266 // AddStandardScheme in Chrome must be inside this function. |
| 266 url_util::LockStandardSchemes(); | 267 url_util::LockStandardSchemes(); |
| 267 } | 268 } |
| 268 | 269 |
| 269 } // namespace chrome | 270 } // namespace chrome |
| OLD | NEW |