| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 | 7 |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "googleurl/src/url_util.h" | 9 #include "googleurl/src/url_util.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 const char kAboutAboutURL[] = "about:about"; | 48 const char kAboutAboutURL[] = "about:about"; |
| 49 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; | 49 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; |
| 50 const char kAboutBlankURL[] = "about:blank"; | 50 const char kAboutBlankURL[] = "about:blank"; |
| 51 const char kAboutCacheURL[] = "about:cache"; | 51 const char kAboutCacheURL[] = "about:cache"; |
| 52 const char kAboutConflicts[] = "about:conflicts"; | 52 const char kAboutConflicts[] = "about:conflicts"; |
| 53 const char kAboutCrashURL[] = "about:crash"; | 53 const char kAboutCrashURL[] = "about:crash"; |
| 54 const char kAboutCreditsURL[] = "about:credits"; | 54 const char kAboutCreditsURL[] = "about:credits"; |
| 55 const char kAboutDNSURL[] = "about:dns"; | 55 const char kAboutDNSURL[] = "about:dns"; |
| 56 const char kAboutFlagsURL[] = "about:flags"; | 56 const char kAboutFlagsURL[] = "about:flags"; |
| 57 const char kAboutGpuURL[] = "about:gpu"; |
| 57 const char kAboutGpuCrashURL[] = "about:gpucrash"; | 58 const char kAboutGpuCrashURL[] = "about:gpucrash"; |
| 58 const char kAboutGpuHangURL[] = "about:gpuhang"; | 59 const char kAboutGpuHangURL[] = "about:gpuhang"; |
| 59 const char kAboutHangURL[] = "about:hang"; | 60 const char kAboutHangURL[] = "about:hang"; |
| 60 const char kAboutHistogramsURL[] = "about:histograms"; | 61 const char kAboutHistogramsURL[] = "about:histograms"; |
| 61 const char kAboutMemoryURL[] = "about:memory"; | 62 const char kAboutMemoryURL[] = "about:memory"; |
| 62 const char kAboutNetInternalsURL[] = "about:net-internals"; | 63 const char kAboutNetInternalsURL[] = "about:net-internals"; |
| 63 const char kAboutPluginsURL[] = "about:plugins"; | 64 const char kAboutPluginsURL[] = "about:plugins"; |
| 64 const char kAboutShorthangURL[] = "about:shorthang"; | 65 const char kAboutShorthangURL[] = "about:shorthang"; |
| 65 const char kAboutTermsURL[] = "about:terms"; | 66 const char kAboutTermsURL[] = "about:terms"; |
| 66 const char kAboutVaporwareURL[] = "about:vaporware"; | 67 const char kAboutVaporwareURL[] = "about:vaporware"; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Keep this list sorted please. | 107 // Keep this list sorted please. |
| 107 const char kChromeUIBookmarksHost[] = "bookmarks"; | 108 const char kChromeUIBookmarksHost[] = "bookmarks"; |
| 108 const char kChromeUIBugReportHost[] = "bugreport"; | 109 const char kChromeUIBugReportHost[] = "bugreport"; |
| 109 const char kChromeUIConflictsHost[] = "conflicts"; | 110 const char kChromeUIConflictsHost[] = "conflicts"; |
| 110 const char kChromeUIDevToolsHost[] = "devtools"; | 111 const char kChromeUIDevToolsHost[] = "devtools"; |
| 111 const char kChromeUIDialogHost[] = "dialog"; | 112 const char kChromeUIDialogHost[] = "dialog"; |
| 112 const char kChromeUIDownloadsHost[] = "downloads"; | 113 const char kChromeUIDownloadsHost[] = "downloads"; |
| 113 const char kChromeUIExtensionsHost[] = "extensions"; | 114 const char kChromeUIExtensionsHost[] = "extensions"; |
| 114 const char kChromeUIFavIconHost[] = "favicon"; | 115 const char kChromeUIFavIconHost[] = "favicon"; |
| 115 const char kChromeUIFlagsHost[] = "flags"; | 116 const char kChromeUIFlagsHost[] = "flags"; |
| 117 const char kChromeUIGpuHost[] = "gpu"; |
| 116 const char kChromeUIHistoryHost[] = "history"; | 118 const char kChromeUIHistoryHost[] = "history"; |
| 117 const char kChromeUIHistory2Host[] = "history2"; | 119 const char kChromeUIHistory2Host[] = "history2"; |
| 118 const char kChromeUIInspectorHost[] = "inspector"; | 120 const char kChromeUIInspectorHost[] = "inspector"; |
| 119 const char kChromeUIKeyboardHost[] = "keyboard"; | 121 const char kChromeUIKeyboardHost[] = "keyboard"; |
| 120 const char kChromeUINetInternalsHost[] = "net-internals"; | 122 const char kChromeUINetInternalsHost[] = "net-internals"; |
| 121 const char kChromeUINewTabHost[] = "newtab"; | 123 const char kChromeUINewTabHost[] = "newtab"; |
| 122 const char kChromeUIPluginsHost[] = "plugins"; | 124 const char kChromeUIPluginsHost[] = "plugins"; |
| 123 const char kChromeUIPrintHost[] = "print"; | 125 const char kChromeUIPrintHost[] = "print"; |
| 124 const char kChromeUIRemotingHost[] = "remoting"; | 126 const char kChromeUIRemotingHost[] = "remoting"; |
| 125 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; | 127 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 150 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; | 152 const char kAppCacheViewInternalsURL[] = "chrome://appcache-internals/"; |
| 151 | 153 |
| 152 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; | 154 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; |
| 153 | 155 |
| 154 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 156 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
| 155 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 157 const char kCloudPrintResourcesHost[] = "cloudprintresources"; |
| 156 | 158 |
| 157 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 159 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
| 158 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; | 160 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; |
| 159 | 161 |
| 162 // GPU sub pages |
| 163 const char kGpuURL[] = "chrome://gpu/"; |
| 164 |
| 160 // Option sub pages. | 165 // Option sub pages. |
| 161 const char kAdvancedOptionsSubPage[] = "advanced"; | 166 const char kAdvancedOptionsSubPage[] = "advanced"; |
| 162 const char kAutoFillSubPage[] = "autoFillOptions"; | 167 const char kAutoFillSubPage[] = "autoFillOptions"; |
| 163 const char kBrowserOptionsSubPage[] = "browser"; | 168 const char kBrowserOptionsSubPage[] = "browser"; |
| 164 const char kClearBrowserDataSubPage[] = "clearBrowserDataOverlay"; | 169 const char kClearBrowserDataSubPage[] = "clearBrowserDataOverlay"; |
| 165 const char kContentSettingsSubPage[] = "content"; | 170 const char kContentSettingsSubPage[] = "content"; |
| 166 const char kDefaultOptionsSubPage[] = ""; | 171 const char kDefaultOptionsSubPage[] = ""; |
| 167 const char kImportDataSubPage[] = "importDataOverlay"; | 172 const char kImportDataSubPage[] = "importDataOverlay"; |
| 168 const char kPersonalOptionsSubPage[] = "personal"; | 173 const char kPersonalOptionsSubPage[] = "personal"; |
| 169 const char kSearchEnginesOptionsSubPage[] = "editSearchEngineOverlay"; | 174 const char kSearchEnginesOptionsSubPage[] = "editSearchEngineOverlay"; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 188 | 193 |
| 189 // Prevent future modification of the standard schemes list. This is to | 194 // Prevent future modification of the standard schemes list. This is to |
| 190 // prevent accidental creation of data races in the program. AddStandardScheme | 195 // prevent accidental creation of data races in the program. AddStandardScheme |
| 191 // isn't threadsafe so must be called when GURL isn't used on any other | 196 // isn't threadsafe so must be called when GURL isn't used on any other |
| 192 // thread. This is really easy to mess up, so we say that all calls to | 197 // thread. This is really easy to mess up, so we say that all calls to |
| 193 // AddStandardScheme in Chrome must be inside this function. | 198 // AddStandardScheme in Chrome must be inside this function. |
| 194 url_util::LockStandardSchemes(); | 199 url_util::LockStandardSchemes(); |
| 195 } | 200 } |
| 196 | 201 |
| 197 } // namespace chrome | 202 } // namespace chrome |
| OLD | NEW |