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