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 <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #include "chrome/common/url_constants.h" | 7 #include "chrome/common/url_constants.h" |
8 #include "googleurl/src/url_util.h" | 8 #include "googleurl/src/url_util.h" |
9 | 9 |
10 namespace chrome { | 10 namespace chrome { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const char kChromeUIFlagsHost[] = "flags"; | 113 const char kChromeUIFlagsHost[] = "flags"; |
114 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 114 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; |
115 const char kChromeUIHistoryHost[] = "history"; | 115 const char kChromeUIHistoryHost[] = "history"; |
116 const char kChromeUIHistory2Host[] = "history2"; | 116 const char kChromeUIHistory2Host[] = "history2"; |
117 const char kChromeUIInspectorHost[] = "inspector"; | 117 const char kChromeUIInspectorHost[] = "inspector"; |
118 const char kChromeUIKeyboardHost[] = "keyboard"; | 118 const char kChromeUIKeyboardHost[] = "keyboard"; |
119 const char kChromeUINetInternalsHost[] = "net-internals"; | 119 const char kChromeUINetInternalsHost[] = "net-internals"; |
120 const char kChromeUINewTabHost[] = "newtab"; | 120 const char kChromeUINewTabHost[] = "newtab"; |
121 const char kChromeUIPluginsHost[] = "plugins"; | 121 const char kChromeUIPluginsHost[] = "plugins"; |
122 const char kChromeUIPrintHost[] = "print"; | 122 const char kChromeUIPrintHost[] = "print"; |
| 123 const char kChromeUIQuotaInternalsHost[] = "quota-internals"; |
123 const char kChromeUIResourcesHost[] = "resources"; | 124 const char kChromeUIResourcesHost[] = "resources"; |
124 const char kChromeUIScreenshotPath[] = "screenshots"; | 125 const char kChromeUIScreenshotPath[] = "screenshots"; |
125 const char kChromeUISettingsHost[] = "settings"; | 126 const char kChromeUISettingsHost[] = "settings"; |
126 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 127 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
127 const char kChromeUISyncResourcesHost[] = "syncresources"; | 128 const char kChromeUISyncResourcesHost[] = "syncresources"; |
128 const char kChromeUITextfieldsHost[] = "textfields"; | 129 const char kChromeUITextfieldsHost[] = "textfields"; |
129 const char kChromeUIThemePath[] = "theme"; | 130 const char kChromeUIThemePath[] = "theme"; |
130 const char kChromeUIThumbnailPath[] = "thumb"; | 131 const char kChromeUIThumbnailPath[] = "thumb"; |
131 | 132 |
132 #if defined(OS_CHROMEOS) | 133 #if defined(OS_CHROMEOS) |
(...skipping 27 matching lines...) Expand all Loading... |
160 | 161 |
161 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; | 162 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; |
162 | 163 |
163 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 164 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
164 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 165 const char kCloudPrintResourcesHost[] = "cloudprintresources"; |
165 const char kCloudPrintSetupHost[] = "cloudprintsetup"; | 166 const char kCloudPrintSetupHost[] = "cloudprintsetup"; |
166 | 167 |
167 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 168 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
168 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; | 169 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; |
169 | 170 |
| 171 const char kQuotaInternalsURL[] = "chrome://quota-internals/"; |
| 172 |
170 const char kSyncViewInternalsURL[] = "chrome://sync-internals/"; | 173 const char kSyncViewInternalsURL[] = "chrome://sync-internals/"; |
171 const char kSyncGoogleDashboardURL[] = "https://www.google.com/dashboard/"; | 174 const char kSyncGoogleDashboardURL[] = "https://www.google.com/dashboard/"; |
172 | 175 |
173 // GPU sub pages | 176 // GPU sub pages |
174 const char kGpuInternalsURL[] = "chrome://gpu-internals/"; | 177 const char kGpuInternalsURL[] = "chrome://gpu-internals/"; |
175 | 178 |
176 // Option sub pages. | 179 // Option sub pages. |
177 const char kAdvancedOptionsSubPage[] = "advanced"; | 180 const char kAdvancedOptionsSubPage[] = "advanced"; |
178 const char kAutofillSubPage[] = "autofill"; | 181 const char kAutofillSubPage[] = "autofill"; |
179 const char kBrowserOptionsSubPage[] = "browser"; | 182 const char kBrowserOptionsSubPage[] = "browser"; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 264 |
262 // Prevent future modification of the standard schemes list. This is to | 265 // Prevent future modification of the standard schemes list. This is to |
263 // prevent accidental creation of data races in the program. AddStandardScheme | 266 // 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 | 267 // 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 | 268 // thread. This is really easy to mess up, so we say that all calls to |
266 // AddStandardScheme in Chrome must be inside this function. | 269 // AddStandardScheme in Chrome must be inside this function. |
267 url_util::LockStandardSchemes(); | 270 url_util::LockStandardSchemes(); |
268 } | 271 } |
269 | 272 |
270 } // namespace chrome | 273 } // namespace chrome |
OLD | NEW |