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