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