| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 120 const char kChromeUIDialogHost[] = "dialog"; | 120 const char kChromeUIDialogHost[] = "dialog"; | 
| 121 const char kChromeUIDownloadsHost[] = "downloads"; | 121 const char kChromeUIDownloadsHost[] = "downloads"; | 
| 122 const char kChromeUIExtensionsHost[] = "extensions"; | 122 const char kChromeUIExtensionsHost[] = "extensions"; | 
| 123 const char kChromeUIFavIconHost[] = "favicon"; | 123 const char kChromeUIFavIconHost[] = "favicon"; | 
| 124 const char kChromeUIFlagsHost[] = "flags"; | 124 const char kChromeUIFlagsHost[] = "flags"; | 
| 125 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 125 const char kChromeUIGpuInternalsHost[] = "gpu-internals"; | 
| 126 const char kChromeUIHistoryHost[] = "history"; | 126 const char kChromeUIHistoryHost[] = "history"; | 
| 127 const char kChromeUIHistory2Host[] = "history2"; | 127 const char kChromeUIHistory2Host[] = "history2"; | 
| 128 const char kChromeUIInspectorHost[] = "inspector"; | 128 const char kChromeUIInspectorHost[] = "inspector"; | 
| 129 const char kChromeUIKeyboardHost[] = "keyboard"; | 129 const char kChromeUIKeyboardHost[] = "keyboard"; | 
| 130 const char kChromeUILoginHost[] = "login"; |  | 
| 131 const char kChromeUINetInternalsHost[] = "net-internals"; | 130 const char kChromeUINetInternalsHost[] = "net-internals"; | 
| 132 const char kChromeUINewTabHost[] = "newtab"; | 131 const char kChromeUINewTabHost[] = "newtab"; | 
| 133 const char kChromeUIPluginsHost[] = "plugins"; | 132 const char kChromeUIPluginsHost[] = "plugins"; | 
| 134 const char kChromeUIPrintHost[] = "print"; | 133 const char kChromeUIPrintHost[] = "print"; | 
| 135 const char kChromeUIRemotingHost[] = "remoting"; | 134 const char kChromeUIRemotingHost[] = "remoting"; | 
| 136 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; | 135 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; | 
| 137 const char kChromeUIResourcesHost[] = "resources"; | 136 const char kChromeUIResourcesHost[] = "resources"; | 
| 138 const char kChromeUIScreenshotPath[] = "screenshots"; | 137 const char kChromeUIScreenshotPath[] = "screenshots"; | 
| 139 const char kChromeUISettingsHost[] = "settings"; | 138 const char kChromeUISettingsHost[] = "settings"; | 
| 140 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 139 const char kChromeUISyncInternalsHost[] = "sync-internals"; | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 152 const char kChromeUIMobileSetupHost[] = "mobilesetup"; | 151 const char kChromeUIMobileSetupHost[] = "mobilesetup"; | 
| 153 const char kChromeUIRegisterPageHost[] = "register"; | 152 const char kChromeUIRegisterPageHost[] = "register"; | 
| 154 const char kChromeUISlideshowHost[] = "slideshow"; | 153 const char kChromeUISlideshowHost[] = "slideshow"; | 
| 155 const char kChromeUISystemInfoHost[] = "system"; | 154 const char kChromeUISystemInfoHost[] = "system"; | 
| 156 const char kChromeUIMenu[] = "menu"; | 155 const char kChromeUIMenu[] = "menu"; | 
| 157 const char kChromeUIWrenchMenu[] = "wrench-menu"; | 156 const char kChromeUIWrenchMenu[] = "wrench-menu"; | 
| 158 const char kChromeUINetworkMenu[] = "network-menu"; | 157 const char kChromeUINetworkMenu[] = "network-menu"; | 
| 159 const char kChromeUIUserImageHost[] = "userimage"; | 158 const char kChromeUIUserImageHost[] = "userimage"; | 
| 160 #endif | 159 #endif | 
| 161 | 160 | 
|  | 161 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) | 
|  | 162 const char kChromeUILoginContainerHost[] = "login-container"; | 
|  | 163 const char kChromeUILoginHost[] = "login"; | 
|  | 164 #endif | 
|  | 165 | 
| 162 const char kUnreachableWebDataURL[] = "chrome://chromewebdata/"; | 166 const char kUnreachableWebDataURL[] = "chrome://chromewebdata/"; | 
| 163 | 167 | 
| 164 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; | 168 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; | 
| 165 | 169 | 
| 166 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; | 170 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; | 
| 167 | 171 | 
| 168 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 172 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 
| 169 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 173 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 
| 170 const char kCloudPrintSetupHost[] = "cloudprintsetup"; | 174 const char kCloudPrintSetupHost[] = "cloudprintsetup"; | 
| 171 | 175 | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 254 | 258 | 
| 255   // Prevent future modification of the standard schemes list. This is to | 259   // Prevent future modification of the standard schemes list. This is to | 
| 256   // prevent accidental creation of data races in the program. AddStandardScheme | 260   // prevent accidental creation of data races in the program. AddStandardScheme | 
| 257   // isn't threadsafe so must be called when GURL isn't used on any other | 261   // isn't threadsafe so must be called when GURL isn't used on any other | 
| 258   // thread. This is really easy to mess up, so we say that all calls to | 262   // thread. This is really easy to mess up, so we say that all calls to | 
| 259   // AddStandardScheme in Chrome must be inside this function. | 263   // AddStandardScheme in Chrome must be inside this function. | 
| 260   url_util::LockStandardSchemes(); | 264   url_util::LockStandardSchemes(); | 
| 261 } | 265 } | 
| 262 | 266 | 
| 263 }  // namespace chrome | 267 }  // namespace chrome | 
| OLD | NEW | 
|---|