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 kChromeUIFaviconURL[] = "chrome://favicon/"; | 66 const char kChromeUIFaviconURL[] = "chrome://favicon/"; |
67 const char kChromeUIFlagsURL[] = "chrome://flags/"; | 67 const char kChromeUIFlagsURL[] = "chrome://flags/"; |
68 const char kChromeUIFlashURL[] = "chrome://flash/"; | 68 const char kChromeUIFlashURL[] = "chrome://flash/"; |
69 const char kChromeUIHistory2URL[] = "chrome://history2/"; | 69 const char kChromeUIHistory2URL[] = "chrome://history2/"; |
70 const char kChromeUIHistoryURL[] = "chrome://history/"; | 70 const char kChromeUIHistoryURL[] = "chrome://history/"; |
71 const char kChromeUIIPCURL[] = "chrome://about/ipc/"; | 71 const char kChromeUIIPCURL[] = "chrome://about/ipc/"; |
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 30 matching lines...) Expand all Loading... |
116 const char kChromeUIHistoryHost[] = "history"; | 117 const char kChromeUIHistoryHost[] = "history"; |
117 const char kChromeUIHistory2Host[] = "history2"; | 118 const char kChromeUIHistory2Host[] = "history2"; |
118 const char kChromeUIInspectorHost[] = "inspector"; | 119 const char kChromeUIInspectorHost[] = "inspector"; |
119 const char kChromeUIKeyboardHost[] = "keyboard"; | 120 const char kChromeUIKeyboardHost[] = "keyboard"; |
120 const char kChromeUINetInternalsHost[] = "net-internals"; | 121 const char kChromeUINetInternalsHost[] = "net-internals"; |
121 const char kChromeUINewTabHost[] = "newtab"; | 122 const char kChromeUINewTabHost[] = "newtab"; |
122 const char kChromeUIPluginsHost[] = "plugins"; | 123 const char kChromeUIPluginsHost[] = "plugins"; |
123 const char kChromeUIPrintHost[] = "print"; | 124 const char kChromeUIPrintHost[] = "print"; |
124 const char kChromeUIResourcesHost[] = "resources"; | 125 const char kChromeUIResourcesHost[] = "resources"; |
125 const char kChromeUIScreenshotPath[] = "screenshots"; | 126 const char kChromeUIScreenshotPath[] = "screenshots"; |
| 127 const char kChromeUISessionsHost[] = "sessions"; |
126 const char kChromeUISettingsHost[] = "settings"; | 128 const char kChromeUISettingsHost[] = "settings"; |
127 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 129 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
128 const char kChromeUISyncResourcesHost[] = "syncresources"; | 130 const char kChromeUISyncResourcesHost[] = "syncresources"; |
129 const char kChromeUITextfieldsHost[] = "textfields"; | 131 const char kChromeUITextfieldsHost[] = "textfields"; |
130 const char kChromeUIThemePath[] = "theme"; | 132 const char kChromeUIThemePath[] = "theme"; |
131 const char kChromeUIThumbnailPath[] = "thumb"; | 133 const char kChromeUIThumbnailPath[] = "thumb"; |
132 | 134 |
133 #if defined(OS_CHROMEOS) | 135 #if defined(OS_CHROMEOS) |
134 const char kChromeUIActiveDownloadsHost[] = "active-downloads"; | 136 const char kChromeUIActiveDownloadsHost[] = "active-downloads"; |
135 const char kChromeUIActivationMessageHost[] = "activationmessage"; | 137 const char kChromeUIActivationMessageHost[] = "activationmessage"; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 263 |
262 // Prevent future modification of the standard schemes list. This is to | 264 // Prevent future modification of the standard schemes list. This is to |
263 // prevent accidental creation of data races in the program. AddStandardScheme | 265 // prevent accidental creation of data races in the program. AddStandardScheme |
264 // isn't threadsafe so must be called when GURL isn't used on any other | 266 // isn't threadsafe so must be called when GURL isn't used on any other |
265 // thread. This is really easy to mess up, so we say that all calls to | 267 // thread. This is really easy to mess up, so we say that all calls to |
266 // AddStandardScheme in Chrome must be inside this function. | 268 // AddStandardScheme in Chrome must be inside this function. |
267 url_util::LockStandardSchemes(); | 269 url_util::LockStandardSchemes(); |
268 } | 270 } |
269 | 271 |
270 } // namespace chrome | 272 } // namespace chrome |
OLD | NEW |