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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 #if defined(FILE_MANAGER_EXTENSION) | 101 #if defined(FILE_MANAGER_EXTENSION) |
102 const char kChromeUIFileManagerURL[] = "chrome://files/"; | 102 const char kChromeUIFileManagerURL[] = "chrome://files/"; |
103 #endif | 103 #endif |
104 | 104 |
105 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 105 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
106 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; | 106 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; |
107 const char kChromeUIHttpAuthURL[] = "chrome://http-auth/"; | 107 const char kChromeUIHttpAuthURL[] = "chrome://http-auth/"; |
108 const char kChromeUIRepostFormWarningURL[] = "chrome://repost-form-warning/"; | 108 const char kChromeUIRepostFormWarningURL[] = "chrome://repost-form-warning/"; |
109 #endif | 109 #endif |
110 | 110 |
| 111 #if defined(USE_AURA) |
| 112 const char kChromeUIAppListURL[] = "chrome://app-list/"; |
| 113 #endif |
| 114 |
111 // Add Chrome UI hosts here, in alphabetical order. | 115 // Add Chrome UI hosts here, in alphabetical order. |
112 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by | 116 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by |
113 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. | 117 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. |
114 const char kChromeUIAboutHost[] = "about"; | 118 const char kChromeUIAboutHost[] = "about"; |
115 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; | 119 const char kChromeUIAppCacheInternalsHost[] = "appcache-internals"; |
116 const char kChromeUIBlankHost[] = "blank"; | 120 const char kChromeUIBlankHost[] = "blank"; |
117 const char kChromeUIBlobInternalsHost[] = "blob-internals"; | 121 const char kChromeUIBlobInternalsHost[] = "blob-internals"; |
118 const char kChromeUIBookmarksHost[] = "bookmarks"; | 122 const char kChromeUIBookmarksHost[] = "bookmarks"; |
119 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; | 123 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
120 const char kChromeUIBugReportHost[] = "bugreport"; | 124 const char kChromeUIBugReportHost[] = "bugreport"; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 #if defined(FILE_MANAGER_EXTENSION) | 232 #if defined(FILE_MANAGER_EXTENSION) |
229 const char kChromeUIFileManagerHost[] = "files"; | 233 const char kChromeUIFileManagerHost[] = "files"; |
230 #endif | 234 #endif |
231 | 235 |
232 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 236 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
233 const char kChromeUICollectedCookiesHost[] = "collected-cookies"; | 237 const char kChromeUICollectedCookiesHost[] = "collected-cookies"; |
234 const char kChromeUIHttpAuthHost[] = "http-auth"; | 238 const char kChromeUIHttpAuthHost[] = "http-auth"; |
235 const char kChromeUIRepostFormWarningHost[] = "repost-form-warning"; | 239 const char kChromeUIRepostFormWarningHost[] = "repost-form-warning"; |
236 #endif | 240 #endif |
237 | 241 |
| 242 #if defined(USE_AURA) |
| 243 const char kChromeUIAppListHost[] = "app-list"; |
| 244 #endif |
| 245 |
238 // Option sub pages. | 246 // Option sub pages. |
239 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be | 247 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be |
240 // listed by the built-in AutocompleteProvider. | 248 // listed by the built-in AutocompleteProvider. |
241 const char kAdvancedOptionsSubPage[] = "advanced"; | 249 const char kAdvancedOptionsSubPage[] = "advanced"; |
242 const char kAutofillSubPage[] = "autofill"; | 250 const char kAutofillSubPage[] = "autofill"; |
243 const char kBrowserOptionsSubPage[] = "browser"; | 251 const char kBrowserOptionsSubPage[] = "browser"; |
244 const char kClearBrowserDataSubPage[] = "clearBrowserData"; | 252 const char kClearBrowserDataSubPage[] = "clearBrowserData"; |
245 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; | 253 const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; |
246 const char kContentSettingsSubPage[] = "content"; | 254 const char kContentSettingsSubPage[] = "content"; |
247 const char kExtensionsSubPage[] = "extensions"; | 255 const char kExtensionsSubPage[] = "extensions"; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 url_util::AddStandardScheme(kExtensionScheme); | 350 url_util::AddStandardScheme(kExtensionScheme); |
343 #if defined(OS_CHROMEOS) | 351 #if defined(OS_CHROMEOS) |
344 url_util::AddStandardScheme(kCrosScheme); | 352 url_util::AddStandardScheme(kCrosScheme); |
345 #endif | 353 #endif |
346 | 354 |
347 // This call will also lock the list of standard schemes. | 355 // This call will also lock the list of standard schemes. |
348 RegisterContentSchemes(kSavableSchemes); | 356 RegisterContentSchemes(kSavableSchemes); |
349 } | 357 } |
350 | 358 |
351 } // namespace chrome | 359 } // namespace chrome |
OLD | NEW |