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 { | 9 namespace { |
10 const char* kSavableSchemes[] = { | 10 const char* kSavableSchemes[] = { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; | 91 const char kChromeUISlideshowURL[] = "chrome://slideshow/"; |
92 const char kChromeUISystemInfoURL[] = "chrome://system/"; | 92 const char kChromeUISystemInfoURL[] = "chrome://system/"; |
93 const char kChromeUITermsOemURL[] = "chrome://terms/oem"; | 93 const char kChromeUITermsOemURL[] = "chrome://terms/oem"; |
94 const char kChromeUIUserImageURL[] = "chrome://userimage/"; | 94 const char kChromeUIUserImageURL[] = "chrome://userimage/"; |
95 #endif | 95 #endif |
96 | 96 |
97 #if defined(FILE_MANAGER_EXTENSION) | 97 #if defined(FILE_MANAGER_EXTENSION) |
98 const char kChromeUIFileManagerURL[] = "chrome://files/"; | 98 const char kChromeUIFileManagerURL[] = "chrome://files/"; |
99 #endif | 99 #endif |
100 | 100 |
101 #if defined(OS_CHROMEOS) || defined(TOUCH_UI) | 101 #if defined(OS_CHROMEOS) || defined(TOUCH_UI) || defined(USE_AURA) |
102 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; | 102 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; |
103 const char kChromeUIHttpAuthURL[] = "chrome://http-auth/"; | 103 const char kChromeUIHttpAuthURL[] = "chrome://http-auth/"; |
104 const char kChromeUIRepostFormWarningURL[] = "chrome://repost-form-warning/"; | 104 const char kChromeUIRepostFormWarningURL[] = "chrome://repost-form-warning/"; |
105 #endif | 105 #endif |
106 | 106 |
107 // Add Chrome UI hosts here, in alphabetical order. | 107 // Add Chrome UI hosts here, in alphabetical order. |
108 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by | 108 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
109 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. | 109 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
110 const char kChromeUIAboutHost[] = "about"; | 110 const char kChromeUIAboutHost[] = "about"; |
111 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 111 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const char kChromeUINetworkMenu[] = "network-menu"; | 214 const char kChromeUINetworkMenu[] = "network-menu"; |
215 | 215 |
216 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html"; | 216 const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html"; |
217 const char kOemEulaURLPath[] = "oem"; | 217 const char kOemEulaURLPath[] = "oem"; |
218 #endif | 218 #endif |
219 | 219 |
220 #if defined(FILE_MANAGER_EXTENSION) | 220 #if defined(FILE_MANAGER_EXTENSION) |
221 const char kChromeUIFileManagerHost[] = "files"; | 221 const char kChromeUIFileManagerHost[] = "files"; |
222 #endif | 222 #endif |
223 | 223 |
224 #if defined(OS_CHROMEOS) || defined(TOUCH_UI) | 224 #if defined(OS_CHROMEOS) || defined(TOUCH_UI) || defined(USE_AURA) |
225 const char kChromeUICollectedCookiesHost[] = "collected-cookies"; | 225 const char kChromeUICollectedCookiesHost[] = "collected-cookies"; |
226 const char kChromeUIHttpAuthHost[] = "http-auth"; | 226 const char kChromeUIHttpAuthHost[] = "http-auth"; |
227 const char kChromeUIRepostFormWarningHost[] = "repost-form-warning"; | 227 const char kChromeUIRepostFormWarningHost[] = "repost-form-warning"; |
228 #endif | 228 #endif |
229 | 229 |
230 // Option sub pages. | 230 // Option sub pages. |
231 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be | 231 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be |
232 // listed by the built-in AutocompleteProvider. | 232 // listed by the built-in AutocompleteProvider. |
233 const char kAdvancedOptionsSubPage[] = "advanced"; | 233 const char kAdvancedOptionsSubPage[] = "advanced"; |
234 const char kAutofillSubPage[] = "autofill"; | 234 const char kAutofillSubPage[] = "autofill"; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 url_util::AddStandardScheme(kExtensionScheme); | 334 url_util::AddStandardScheme(kExtensionScheme); |
335 #if defined(OS_CHROMEOS) | 335 #if defined(OS_CHROMEOS) |
336 url_util::AddStandardScheme(kCrosScheme); | 336 url_util::AddStandardScheme(kCrosScheme); |
337 #endif | 337 #endif |
338 | 338 |
339 // This call will also lock the list of standard schemes. | 339 // This call will also lock the list of standard schemes. |
340 RegisterContentSchemes(kSavableSchemes); | 340 RegisterContentSchemes(kSavableSchemes); |
341 } | 341 } |
342 | 342 |
343 } // namespace chrome | 343 } // namespace chrome |
OLD | NEW |