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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const char kChromeUIFlashURL[] = "chrome://flash/"; | 72 const char kChromeUIFlashURL[] = "chrome://flash/"; |
73 const char kChromeUIHangURL[] = "chrome://hang/"; | 73 const char kChromeUIHangURL[] = "chrome://hang/"; |
74 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 74 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
75 const char kChromeUIHistoryURL[] = "chrome://history/"; | 75 const char kChromeUIHistoryURL[] = "chrome://history/"; |
76 const char kChromeUIIPCURL[] = "chrome://ipc/"; | 76 const char kChromeUIIPCURL[] = "chrome://ipc/"; |
77 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; | 77 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; |
78 const char kChromeUIKillURL[] = "chrome://kill/"; | 78 const char kChromeUIKillURL[] = "chrome://kill/"; |
79 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/"; | 79 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/"; |
80 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 80 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
81 const char kChromeUINewTabURL[] = "chrome://newtab/"; | 81 const char kChromeUINewTabURL[] = "chrome://newtab/"; |
82 const char kChromeUINewProfile[] = "chrome://newprofile/"; | |
83 const char kChromeUIPluginsURL[] = "chrome://plugins/"; | 82 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
84 const char kChromeUIPrintURL[] = "chrome://print/"; | 83 const char kChromeUIPrintURL[] = "chrome://print/"; |
85 const char kChromeUISessionsURL[] = "chrome://sessions/"; | 84 const char kChromeUISessionsURL[] = "chrome://sessions/"; |
86 const char kChromeUISettingsURL[] = "chrome://settings/"; | 85 const char kChromeUISettingsURL[] = "chrome://settings/"; |
87 const char kChromeUIShorthangURL[] = "chrome://shorthang/"; | 86 const char kChromeUIShorthangURL[] = "chrome://shorthang/"; |
88 const char kChromeUITextfieldsURL[] = "chrome://textfields/"; | 87 const char kChromeUITextfieldsURL[] = "chrome://textfields/"; |
89 const char kChromeUIVersionURL[] = "chrome://version/"; | 88 const char kChromeUIVersionURL[] = "chrome://version/"; |
90 | 89 |
91 #if defined(OS_CHROMEOS) | 90 #if defined(OS_CHROMEOS) |
92 const char kChromeUIActivationMessage[] = "chrome://activationmessage/"; | 91 const char kChromeUIActivationMessage[] = "chrome://activationmessage/"; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 const char kChromeUIHistoryHost[] = "history"; | 148 const char kChromeUIHistoryHost[] = "history"; |
150 const char kChromeUIHistogramsHost[] = "histograms"; | 149 const char kChromeUIHistogramsHost[] = "histograms"; |
151 const char kChromeUIIPCHost[] = "ipc"; | 150 const char kChromeUIIPCHost[] = "ipc"; |
152 const char kChromeUIKeyboardHost[] = "keyboard"; | 151 const char kChromeUIKeyboardHost[] = "keyboard"; |
153 const char kChromeUIKillHost[] = "kill"; | 152 const char kChromeUIKillHost[] = "kill"; |
154 const char kChromeUIMediaInternalsHost[] = "media-internals"; | 153 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
155 const char kChromeUIMemoryHost[] = "memory"; | 154 const char kChromeUIMemoryHost[] = "memory"; |
156 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; | 155 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; |
157 const char kChromeUINetInternalsHost[] = "net-internals"; | 156 const char kChromeUINetInternalsHost[] = "net-internals"; |
158 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 157 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
159 const char kChromeUINewProfileHost[] = "newprofile"; | |
160 const char kChromeUINewTabHost[] = "newtab"; | 158 const char kChromeUINewTabHost[] = "newtab"; |
161 const char kChromeUIPluginsHost[] = "plugins"; | 159 const char kChromeUIPluginsHost[] = "plugins"; |
162 const char kChromeUIPrintHost[] = "print"; | 160 const char kChromeUIPrintHost[] = "print"; |
163 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; | 161 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
164 const char kChromeUIResourcesHost[] = "resources"; | 162 const char kChromeUIResourcesHost[] = "resources"; |
165 const char kChromeUISessionsHost[] = "sessions"; | 163 const char kChromeUISessionsHost[] = "sessions"; |
166 const char kChromeUISettingsHost[] = "settings"; | 164 const char kChromeUISettingsHost[] = "settings"; |
167 const char kChromeUIShorthangHost[] = "shorthang"; | 165 const char kChromeUIShorthangHost[] = "shorthang"; |
168 const char kChromeUIStatsHost[] = "stats"; | 166 const char kChromeUIStatsHost[] = "stats"; |
169 const char kChromeUISyncHost[] = "sync"; | 167 const char kChromeUISyncHost[] = "sync"; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 305 |
308 // Prevent future modification of the standard schemes list. This is to | 306 // Prevent future modification of the standard schemes list. This is to |
309 // prevent accidental creation of data races in the program. AddStandardScheme | 307 // prevent accidental creation of data races in the program. AddStandardScheme |
310 // isn't threadsafe so must be called when GURL isn't used on any other | 308 // isn't threadsafe so must be called when GURL isn't used on any other |
311 // thread. This is really easy to mess up, so we say that all calls to | 309 // thread. This is really easy to mess up, so we say that all calls to |
312 // AddStandardScheme in Chrome must be inside this function. | 310 // AddStandardScheme in Chrome must be inside this function. |
313 url_util::LockStandardSchemes(); | 311 url_util::LockStandardSchemes(); |
314 } | 312 } |
315 | 313 |
316 } // namespace chrome | 314 } // namespace chrome |
OLD | NEW |