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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include "chrome/common/url_constants.h" | 7 #include "chrome/common/url_constants.h" |
8 #include "googleurl/src/url_util.h" | 8 #include "googleurl/src/url_util.h" |
9 | 9 |
10 namespace chrome { | 10 namespace chrome { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const char kChromeUIFlagsHost[] = "flags"; | 113 const char kChromeUIFlagsHost[] = "flags"; |
114 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 114 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
115 const char kChromeUIHistoryHost[] = "history"; | 115 const char kChromeUIHistoryHost[] = "history"; |
116 const char kChromeUIHistory2Host[] = "history2"; | 116 const char kChromeUIHistory2Host[] = "history2"; |
117 const char kChromeUIInspectorHost[] = "inspector"; | 117 const char kChromeUIInspectorHost[] = "inspector"; |
118 const char kChromeUIKeyboardHost[] = "keyboard"; | 118 const char kChromeUIKeyboardHost[] = "keyboard"; |
119 const char kChromeUINetInternalsHost[] = "net-internals"; | 119 const char kChromeUINetInternalsHost[] = "net-internals"; |
120 const char kChromeUINewTabHost[] = "newtab"; | 120 const char kChromeUINewTabHost[] = "newtab"; |
121 const char kChromeUIPluginsHost[] = "plugins"; | 121 const char kChromeUIPluginsHost[] = "plugins"; |
122 const char kChromeUIPrintHost[] = "print"; | 122 const char kChromeUIPrintHost[] = "print"; |
123 const char kChromeUIRemotingHost[] = "remoting"; | |
124 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; | |
125 const char kChromeUIResourcesHost[] = "resources"; | 123 const char kChromeUIResourcesHost[] = "resources"; |
126 const char kChromeUIScreenshotPath[] = "screenshots"; | 124 const char kChromeUIScreenshotPath[] = "screenshots"; |
127 const char kChromeUISettingsHost[] = "settings"; | 125 const char kChromeUISettingsHost[] = "settings"; |
128 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 126 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
129 const char kChromeUISyncResourcesHost[] = "syncresources"; | 127 const char kChromeUISyncResourcesHost[] = "syncresources"; |
130 const char kChromeUITextfieldsHost[] = "textfields"; | 128 const char kChromeUITextfieldsHost[] = "textfields"; |
131 const char kChromeUIThemePath[] = "theme"; | 129 const char kChromeUIThemePath[] = "theme"; |
132 const char kChromeUIThumbnailPath[] = "thumb"; | 130 const char kChromeUIThumbnailPath[] = "thumb"; |
133 | 131 |
134 #if defined(OS_CHROMEOS) | 132 #if defined(OS_CHROMEOS) |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 260 |
263 // Prevent future modification of the standard schemes list. This is to | 261 // Prevent future modification of the standard schemes list. This is to |
264 // prevent accidental creation of data races in the program. AddStandardScheme | 262 // prevent accidental creation of data races in the program. AddStandardScheme |
265 // isn't threadsafe so must be called when GURL isn't used on any other | 263 // isn't threadsafe so must be called when GURL isn't used on any other |
266 // thread. This is really easy to mess up, so we say that all calls to | 264 // thread. This is really easy to mess up, so we say that all calls to |
267 // AddStandardScheme in Chrome must be inside this function. | 265 // AddStandardScheme in Chrome must be inside this function. |
268 url_util::LockStandardSchemes(); | 266 url_util::LockStandardSchemes(); |
269 } | 267 } |
270 | 268 |
271 } // namespace chrome | 269 } // namespace chrome |
OLD | NEW |