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