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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const char kAboutFlagsURL[] = "about:flags"; | 57 const char kAboutFlagsURL[] = "about:flags"; |
58 const char kAboutGpuURL[] = "about:gpu"; | 58 const char kAboutGpuURL[] = "about:gpu"; |
59 const char kAboutGpuCrashURL[] = "about:gpucrash"; | 59 const char kAboutGpuCrashURL[] = "about:gpucrash"; |
60 const char kAboutGpuHangURL[] = "about:gpuhang"; | 60 const char kAboutGpuHangURL[] = "about:gpuhang"; |
61 const char kAboutHangURL[] = "about:hang"; | 61 const char kAboutHangURL[] = "about:hang"; |
62 const char kAboutHistogramsURL[] = "about:histograms"; | 62 const char kAboutHistogramsURL[] = "about:histograms"; |
63 const char kAboutMemoryURL[] = "about:memory"; | 63 const char kAboutMemoryURL[] = "about:memory"; |
64 const char kAboutNetInternalsURL[] = "about:net-internals"; | 64 const char kAboutNetInternalsURL[] = "about:net-internals"; |
65 const char kAboutPluginsURL[] = "about:plugins"; | 65 const char kAboutPluginsURL[] = "about:plugins"; |
66 const char kAboutShorthangURL[] = "about:shorthang"; | 66 const char kAboutShorthangURL[] = "about:shorthang"; |
| 67 const char kAboutSyncURL[] = "about:sync"; |
| 68 const char kAboutSyncInternalsURL[] = "about:sync-internals"; |
67 const char kAboutTermsURL[] = "about:terms"; | 69 const char kAboutTermsURL[] = "about:terms"; |
68 const char kAboutVaporwareURL[] = "about:vaporware"; | 70 const char kAboutVaporwareURL[] = "about:vaporware"; |
69 const char kAboutVersionURL[] = "about:version"; | 71 const char kAboutVersionURL[] = "about:version"; |
70 | 72 |
71 // Use an obfuscated URL to make this nondiscoverable, we only want this | 73 // Use an obfuscated URL to make this nondiscoverable, we only want this |
72 // to be used for testing. | 74 // to be used for testing. |
73 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; | 75 const char kAboutBrowserCrash[] = "about:inducebrowsercrashforrealz"; |
74 | 76 |
75 const char kChromeUIAboutAboutURL[] = "chrome://about/about"; | 77 const char kChromeUIAboutAboutURL[] = "chrome://about/about"; |
76 const char kChromeUIAboutCreditsURL[] = "chrome://about/credits"; | 78 const char kChromeUIAboutCreditsURL[] = "chrome://about/credits"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 const char kChromeUILoginHost[] = "login"; | 127 const char kChromeUILoginHost[] = "login"; |
126 const char kChromeUINetInternalsHost[] = "net-internals"; | 128 const char kChromeUINetInternalsHost[] = "net-internals"; |
127 const char kChromeUINewTabHost[] = "newtab"; | 129 const char kChromeUINewTabHost[] = "newtab"; |
128 const char kChromeUIPluginsHost[] = "plugins"; | 130 const char kChromeUIPluginsHost[] = "plugins"; |
129 const char kChromeUIPrintHost[] = "print"; | 131 const char kChromeUIPrintHost[] = "print"; |
130 const char kChromeUIRemotingHost[] = "remoting"; | 132 const char kChromeUIRemotingHost[] = "remoting"; |
131 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; | 133 const char kChromeUIRemotingResourcesHost[] = "remotingresources"; |
132 const char kChromeUIResourcesHost[] = "resources"; | 134 const char kChromeUIResourcesHost[] = "resources"; |
133 const char kChromeUIScreenshotPath[] = "screenshots"; | 135 const char kChromeUIScreenshotPath[] = "screenshots"; |
134 const char kChromeUISettingsHost[] = "settings"; | 136 const char kChromeUISettingsHost[] = "settings"; |
| 137 const char kChromeUISyncInternalsHost[] = "sync-internals"; |
135 const char kChromeUISyncResourcesHost[] = "syncresources"; | 138 const char kChromeUISyncResourcesHost[] = "syncresources"; |
136 const char kChromeUITextfieldsHost[] = "textfields"; | 139 const char kChromeUITextfieldsHost[] = "textfields"; |
137 const char kChromeUIThemePath[] = "theme"; | 140 const char kChromeUIThemePath[] = "theme"; |
138 const char kChromeUIThumbnailPath[] = "thumb"; | 141 const char kChromeUIThumbnailPath[] = "thumb"; |
139 | 142 |
140 #if defined(OS_CHROMEOS) | 143 #if defined(OS_CHROMEOS) |
141 const char kChromeUIFileBrowseHost[] = "filebrowse"; | 144 const char kChromeUIFileBrowseHost[] = "filebrowse"; |
142 const char kChromeUIImageBurnerHost[] = "imageburner"; | 145 const char kChromeUIImageBurnerHost[] = "imageburner"; |
143 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay"; | 146 const char kChromeUIKeyboardOverlayHost[] = "keyboardoverlay"; |
144 const char kChromeUIMediaplayerHost[] = "mediaplayer"; | 147 const char kChromeUIMediaplayerHost[] = "mediaplayer"; |
(...skipping 12 matching lines...) Expand all Loading... |
157 | 160 |
158 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; | 161 const char kBlobViewInternalsURL[] = "chrome://blob-internals/"; |
159 | 162 |
160 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; | 163 const char kCloudPrintResourcesURL[] = "chrome://cloudprintresources/"; |
161 const char kCloudPrintResourcesHost[] = "cloudprintresources"; | 164 const char kCloudPrintResourcesHost[] = "cloudprintresources"; |
162 const char kCloudPrintSetupHost[] = "cloudprintsetup"; | 165 const char kCloudPrintSetupHost[] = "cloudprintsetup"; |
163 | 166 |
164 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; | 167 const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; |
165 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; | 168 const char kNetworkViewCacheURL[] = "chrome://view-http-cache/"; |
166 | 169 |
| 170 const char kSyncViewInternalsURL[] = "chrome://sync-internals/"; |
| 171 |
167 // GPU sub pages | 172 // GPU sub pages |
168 const char kGpuInternalsURL[] = "chrome://gpu-internals/"; | 173 const char kGpuInternalsURL[] = "chrome://gpu-internals/"; |
169 | 174 |
170 // Option sub pages. | 175 // Option sub pages. |
171 const char kAdvancedOptionsSubPage[] = "advanced"; | 176 const char kAdvancedOptionsSubPage[] = "advanced"; |
172 const char kAutoFillSubPage[] = "autoFillOptions"; | 177 const char kAutoFillSubPage[] = "autoFillOptions"; |
173 const char kBrowserOptionsSubPage[] = "browser"; | 178 const char kBrowserOptionsSubPage[] = "browser"; |
174 const char kClearBrowserDataSubPage[] = "clearBrowserDataOverlay"; | 179 const char kClearBrowserDataSubPage[] = "clearBrowserDataOverlay"; |
175 const char kContentSettingsSubPage[] = "content"; | 180 const char kContentSettingsSubPage[] = "content"; |
176 const char kDefaultOptionsSubPage[] = ""; | 181 const char kDefaultOptionsSubPage[] = ""; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 245 |
241 // Prevent future modification of the standard schemes list. This is to | 246 // Prevent future modification of the standard schemes list. This is to |
242 // prevent accidental creation of data races in the program. AddStandardScheme | 247 // prevent accidental creation of data races in the program. AddStandardScheme |
243 // isn't threadsafe so must be called when GURL isn't used on any other | 248 // isn't threadsafe so must be called when GURL isn't used on any other |
244 // thread. This is really easy to mess up, so we say that all calls to | 249 // thread. This is really easy to mess up, so we say that all calls to |
245 // AddStandardScheme in Chrome must be inside this function. | 250 // AddStandardScheme in Chrome must be inside this function. |
246 url_util::LockStandardSchemes(); | 251 url_util::LockStandardSchemes(); |
247 } | 252 } |
248 | 253 |
249 } // namespace chrome | 254 } // namespace chrome |
OLD | NEW |