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 28 matching lines...) Expand all Loading... |
39 const char kChromeUIHangURL[] = "chrome://hang/"; | 39 const char kChromeUIHangURL[] = "chrome://hang/"; |
40 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 40 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
41 const char kChromeUIHistoryURL[] = "chrome://history/"; | 41 const char kChromeUIHistoryURL[] = "chrome://history/"; |
42 const char kChromeUIIPCURL[] = "chrome://ipc/"; | 42 const char kChromeUIIPCURL[] = "chrome://ipc/"; |
43 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; | 43 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; |
44 const char kChromeUIKillURL[] = "chrome://kill/"; | 44 const char kChromeUIKillURL[] = "chrome://kill/"; |
45 const char kChromeUIMemoryURL[] = "chrome://memory/"; | 45 const char kChromeUIMemoryURL[] = "chrome://memory/"; |
46 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/"; | 46 const char kChromeUIMemoryRedirectURL[] = "chrome://memory-redirect/"; |
47 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 47 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
48 const char kChromeUINewTabURL[] = "chrome://newtab/"; | 48 const char kChromeUINewTabURL[] = "chrome://newtab/"; |
49 const char kChromeUINewProfile[] = "chrome://newprofile/"; | |
50 const char kChromeUIPluginsURL[] = "chrome://plugins/"; | 49 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
51 const char kChromeUIPrintURL[] = "chrome://print/"; | 50 const char kChromeUIPrintURL[] = "chrome://print/"; |
52 const char kChromeUISessionsURL[] = "chrome://sessions/"; | 51 const char kChromeUISessionsURL[] = "chrome://sessions/"; |
53 const char kChromeUISettingsURL[] = "chrome://settings/"; | 52 const char kChromeUISettingsURL[] = "chrome://settings/"; |
54 const char kChromeUIShorthangURL[] = "chrome://shorthang/"; | 53 const char kChromeUIShorthangURL[] = "chrome://shorthang/"; |
55 const char kChromeUITaskManagerURL[] = "chrome://tasks/"; | 54 const char kChromeUITaskManagerURL[] = "chrome://tasks/"; |
56 const char kChromeUITermsURL[] = "chrome://terms/"; | 55 const char kChromeUITermsURL[] = "chrome://terms/"; |
57 const char kChromeUITextfieldsURL[] = "chrome://textfields/"; | 56 const char kChromeUITextfieldsURL[] = "chrome://textfields/"; |
58 const char kChromeUIVersionURL[] = "chrome://version/"; | 57 const char kChromeUIVersionURL[] = "chrome://version/"; |
59 const char kChromeUIWorkersURL[] = "chrome://workers/"; | 58 const char kChromeUIWorkersURL[] = "chrome://workers/"; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 const char kChromeUIHistoryHost[] = "history"; | 125 const char kChromeUIHistoryHost[] = "history"; |
127 const char kChromeUIHistogramsHost[] = "histograms"; | 126 const char kChromeUIHistogramsHost[] = "histograms"; |
128 const char kChromeUIIPCHost[] = "ipc"; | 127 const char kChromeUIIPCHost[] = "ipc"; |
129 const char kChromeUIKeyboardHost[] = "keyboard"; | 128 const char kChromeUIKeyboardHost[] = "keyboard"; |
130 const char kChromeUIKillHost[] = "kill"; | 129 const char kChromeUIKillHost[] = "kill"; |
131 const char kChromeUIMediaInternalsHost[] = "media-internals"; | 130 const char kChromeUIMediaInternalsHost[] = "media-internals"; |
132 const char kChromeUIMemoryHost[] = "memory"; | 131 const char kChromeUIMemoryHost[] = "memory"; |
133 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; | 132 const char kChromeUIMemoryRedirectHost[] = "memory-redirect"; |
134 const char kChromeUINetInternalsHost[] = "net-internals"; | 133 const char kChromeUINetInternalsHost[] = "net-internals"; |
135 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 134 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
136 const char kChromeUINewProfileHost[] = "newprofile"; | |
137 const char kChromeUINewTabHost[] = "newtab"; | 135 const char kChromeUINewTabHost[] = "newtab"; |
138 const char kChromeUIPluginsHost[] = "plugins"; | 136 const char kChromeUIPluginsHost[] = "plugins"; |
139 const char kChromeUIPrintHost[] = "print"; | 137 const char kChromeUIPrintHost[] = "print"; |
140 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; | 138 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
141 const char kChromeUIResourcesHost[] = "resources"; | 139 const char kChromeUIResourcesHost[] = "resources"; |
142 const char kChromeUISessionsHost[] = "sessions"; | 140 const char kChromeUISessionsHost[] = "sessions"; |
143 const char kChromeUISettingsHost[] = "settings"; | 141 const char kChromeUISettingsHost[] = "settings"; |
144 const char kChromeUIShorthangHost[] = "shorthang"; | 142 const char kChromeUIShorthangHost[] = "shorthang"; |
145 const char kChromeUIStatsHost[] = "stats"; | 143 const char kChromeUIStatsHost[] = "stats"; |
146 const char kChromeUISyncHost[] = "sync"; | 144 const char kChromeUISyncHost[] = "sync"; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 301 |
304 // Prevent future modification of the standard schemes list. This is to | 302 // Prevent future modification of the standard schemes list. This is to |
305 // prevent accidental creation of data races in the program. AddStandardScheme | 303 // prevent accidental creation of data races in the program. AddStandardScheme |
306 // isn't threadsafe so must be called when GURL isn't used on any other | 304 // isn't threadsafe so must be called when GURL isn't used on any other |
307 // thread. This is really easy to mess up, so we say that all calls to | 305 // thread. This is really easy to mess up, so we say that all calls to |
308 // AddStandardScheme in Chrome must be inside this function. | 306 // AddStandardScheme in Chrome must be inside this function. |
309 url_util::LockStandardSchemes(); | 307 url_util::LockStandardSchemes(); |
310 } | 308 } |
311 | 309 |
312 } // namespace chrome | 310 } // namespace chrome |
OLD | NEW |