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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; | 66 const char kChromeUIExtensionsURL[] = "chrome://extensions/"; |
67 const char kChromeUIFaviconURL[] = "chrome://favicon/"; | 67 const char kChromeUIFaviconURL[] = "chrome://favicon/"; |
68 const char kChromeUIFlagsURL[] = "chrome://flags/"; | 68 const char kChromeUIFlagsURL[] = "chrome://flags/"; |
69 const char kChromeUIFlashURL[] = "chrome://flash/"; | 69 const char kChromeUIFlashURL[] = "chrome://flash/"; |
70 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 70 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
71 const char kChromeUIHistoryURL[] = "chrome://history/"; | 71 const char kChromeUIHistoryURL[] = "chrome://history/"; |
72 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; | 72 const char kChromeUIKeyboardURL[] = "chrome://keyboard/"; |
73 const char kChromeUINewTabURL[] = "chrome://newtab/"; | 73 const char kChromeUINewTabURL[] = "chrome://newtab/"; |
74 const char kChromeUIPluginsURL[] = "chrome://plugins/"; | 74 const char kChromeUIPluginsURL[] = "chrome://plugins/"; |
75 const char kChromeUIPrintURL[] = "chrome://print/"; | 75 const char kChromeUIPrintURL[] = "chrome://print/"; |
| 76 const char kChromeUISessionsURL[] = "chrome://sessions/"; |
76 const char kChromeUISettingsURL[] = "chrome://settings/"; | 77 const char kChromeUISettingsURL[] = "chrome://settings/"; |
77 const char kChromeUITextfieldsURL[] = "chrome://textfields/"; | 78 const char kChromeUITextfieldsURL[] = "chrome://textfields/"; |
78 | 79 |
79 #if defined(OS_CHROMEOS) | 80 #if defined(OS_CHROMEOS) |
80 const char kChromeUIAboutOSCreditsURL[] = "chrome://about/os-credits/"; | 81 const char kChromeUIAboutOSCreditsURL[] = "chrome://about/os-credits/"; |
81 const char kChromeUIActivationMessage[] = "chrome://activationmessage/"; | 82 const char kChromeUIActivationMessage[] = "chrome://activationmessage/"; |
82 const char kChromeUIActiveDownloadsURL[] = "chrome://active-downloads/"; | 83 const char kChromeUIActiveDownloadsURL[] = "chrome://active-downloads/"; |
83 const char kChromeUIChooseMobileNetworkURL[] = | 84 const char kChromeUIChooseMobileNetworkURL[] = |
84 "chrome://choose-mobile-network/"; | 85 "chrome://choose-mobile-network/"; |
85 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; | 86 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const char kChromeUIHistoryHost[] = "history"; | 118 const char kChromeUIHistoryHost[] = "history"; |
118 const char kChromeUIHistory2Host[] = "history2"; | 119 const char kChromeUIHistory2Host[] = "history2"; |
119 const char kChromeUIInspectorHost[] = "inspector"; | 120 const char kChromeUIInspectorHost[] = "inspector"; |
120 const char kChromeUIKeyboardHost[] = "keyboard"; | 121 const char kChromeUIKeyboardHost[] = "keyboard"; |
121 const char kChromeUINetInternalsHost[] = "net-internals"; | 122 const char kChromeUINetInternalsHost[] = "net-internals"; |
122 const char kChromeUINewTabHost[] = "newtab"; | 123 const char kChromeUINewTabHost[] = "newtab"; |
123 const char kChromeUIPluginsHost[] = "plugins"; | 124 const char kChromeUIPluginsHost[] = "plugins"; |
124 const char kChromeUIPrintHost[] = "print"; | 125 const char kChromeUIPrintHost[] = "print"; |
125 const char kChromeUIResourcesHost[] = "resources"; | 126 const char kChromeUIResourcesHost[] = "resources"; |
126 const char kChromeUIScreenshotPath[] = "screenshots"; | 127 const char kChromeUIScreenshotPath[] = "screenshots"; |
| 128 const char kChromeUISessionsHost[] = "sessions"; |
127 const char kChromeUISettingsHost[] = "settings"; | 129 const char kChromeUISettingsHost[] = "settings"; |
128 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 130 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
129 const char kChromeUISyncResourcesHost[] = "syncresources"; | 131 const char kChromeUISyncResourcesHost[] = "syncresources"; |
130 const char kChromeUITextfieldsHost[] = "textfields"; | 132 const char kChromeUITextfieldsHost[] = "textfields"; |
131 const char kChromeUIThemePath[] = "theme"; | 133 const char kChromeUIThemePath[] = "theme"; |
132 const char kChromeUIThumbnailPath[] = "thumb"; | 134 const char kChromeUIThumbnailPath[] = "thumb"; |
133 | 135 |
134 #if defined(OS_CHROMEOS) | 136 #if defined(OS_CHROMEOS) |
135 const char kChromeUIActiveDownloadsHost[] = "active-downloads"; | 137 const char kChromeUIActiveDownloadsHost[] = "active-downloads"; |
136 const char kChromeUIActivationMessageHost[] = "activationmessage"; | 138 const char kChromeUIActivationMessageHost[] = "activationmessage"; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 262 |
261 // Prevent future modification of the standard schemes list. This is to | 263 // Prevent future modification of the standard schemes list. This is to |
262 // prevent accidental creation of data races in the program. AddStandardScheme | 264 // prevent accidental creation of data races in the program. AddStandardScheme |
263 // isn't threadsafe so must be called when GURL isn't used on any other | 265 // isn't threadsafe so must be called when GURL isn't used on any other |
264 // thread. This is really easy to mess up, so we say that all calls to | 266 // thread. This is really easy to mess up, so we say that all calls to |
265 // AddStandardScheme in Chrome must be inside this function. | 267 // AddStandardScheme in Chrome must be inside this function. |
266 url_util::LockStandardSchemes(); | 268 url_util::LockStandardSchemes(); |
267 } | 269 } |
268 | 270 |
269 } // namespace chrome | 271 } // namespace chrome |
OLD | NEW |