OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/common/features.h" | 11 #include "chrome/common/features.h" |
12 #include "content/public/common/url_constants.h" | 12 #include "content/public/common/url_constants.h" |
| 13 #include "printing/features/features.h" |
13 #include "url/url_util.h" | 14 #include "url/url_util.h" |
14 | 15 |
15 namespace chrome { | 16 namespace chrome { |
16 | 17 |
17 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
18 const char kCrosScheme[] = "cros"; | 19 const char kCrosScheme[] = "cros"; |
19 #endif | 20 #endif |
20 | 21 |
21 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
22 const char kAndroidAppScheme[] = "android-app"; | 23 const char kAndroidAppScheme[] = "android-app"; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 const char kChromeUITranslateInternalsHost[] = "translate-internals"; | 257 const char kChromeUITranslateInternalsHost[] = "translate-internals"; |
257 const char kChromeUIUberFrameHost[] = "uber-frame"; | 258 const char kChromeUIUberFrameHost[] = "uber-frame"; |
258 const char kChromeUIUberHost[] = "chrome"; | 259 const char kChromeUIUberHost[] = "chrome"; |
259 const char kChromeUIUsbInternalsHost[] = "usb-internals"; | 260 const char kChromeUIUsbInternalsHost[] = "usb-internals"; |
260 const char kChromeUIUserActionsHost[] = "user-actions"; | 261 const char kChromeUIUserActionsHost[] = "user-actions"; |
261 const char kChromeUIVersionHost[] = "version"; | 262 const char kChromeUIVersionHost[] = "version"; |
262 const char kChromeUIWelcomeHost[] = "welcome"; | 263 const char kChromeUIWelcomeHost[] = "welcome"; |
263 const char kChromeUIWelcomeWin10Host[] = "welcome-win10"; | 264 const char kChromeUIWelcomeWin10Host[] = "welcome-win10"; |
264 const char kChromeUIWorkersHost[] = "workers"; | 265 const char kChromeUIWorkersHost[] = "workers"; |
265 | 266 |
266 #if defined(ENABLE_PRINT_PREVIEW) | 267 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
267 const char kChromeUIPrintHost[] = "print"; | 268 const char kChromeUIPrintHost[] = "print"; |
268 #endif // ENABLE_PRINT_PREVIEW | 269 #endif // ENABLE_PRINT_PREVIEW |
269 | 270 |
270 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 271 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
271 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; | 272 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; |
272 const char kChromeUISandboxHost[] = "sandbox"; | 273 const char kChromeUISandboxHost[] = "sandbox"; |
273 #endif | 274 #endif |
274 | 275 |
275 #if defined(OS_ANDROID) | 276 #if defined(OS_ANDROID) |
276 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo"; | 277 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo"; |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 #endif | 703 #endif |
703 #if defined(OS_WIN) | 704 #if defined(OS_WIN) |
704 kChromeUIConflictsHost, | 705 kChromeUIConflictsHost, |
705 #endif | 706 #endif |
706 #if !defined(DISABLE_NACL) | 707 #if !defined(DISABLE_NACL) |
707 kChromeUINaClHost, | 708 kChromeUINaClHost, |
708 #endif | 709 #endif |
709 #if defined(ENABLE_EXTENSIONS) | 710 #if defined(ENABLE_EXTENSIONS) |
710 kChromeUIExtensionsHost, | 711 kChromeUIExtensionsHost, |
711 #endif | 712 #endif |
712 #if defined(ENABLE_PRINT_PREVIEW) | 713 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
713 kChromeUIPrintHost, | 714 kChromeUIPrintHost, |
714 #endif | 715 #endif |
715 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 716 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
716 kChromeUIDevicesHost, | 717 kChromeUIDevicesHost, |
717 #endif | 718 #endif |
718 #if defined(ENABLE_WEBRTC) | 719 #if defined(ENABLE_WEBRTC) |
719 kChromeUIWebRtcLogsHost, | 720 kChromeUIWebRtcLogsHost, |
720 #endif | 721 #endif |
721 }; | 722 }; |
722 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); | 723 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 #endif | 797 #endif |
797 | 798 |
798 const char kChooserUsbOverviewURL[] = | 799 const char kChooserUsbOverviewURL[] = |
799 "https://support.google.com/chrome?p=webusb"; | 800 "https://support.google.com/chrome?p=webusb"; |
800 | 801 |
801 #if defined(OS_CHROMEOS) | 802 #if defined(OS_CHROMEOS) |
802 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; | 803 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; |
803 #endif | 804 #endif |
804 | 805 |
805 } // namespace chrome | 806 } // namespace chrome |
OLD | NEW |