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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 const char kChromeUITranslateInternalsHost[] = "translate-internals"; | 258 const char kChromeUITranslateInternalsHost[] = "translate-internals"; |
258 const char kChromeUIUberFrameHost[] = "uber-frame"; | 259 const char kChromeUIUberFrameHost[] = "uber-frame"; |
259 const char kChromeUIUberHost[] = "chrome"; | 260 const char kChromeUIUberHost[] = "chrome"; |
260 const char kChromeUIUsbInternalsHost[] = "usb-internals"; | 261 const char kChromeUIUsbInternalsHost[] = "usb-internals"; |
261 const char kChromeUIUserActionsHost[] = "user-actions"; | 262 const char kChromeUIUserActionsHost[] = "user-actions"; |
262 const char kChromeUIVersionHost[] = "version"; | 263 const char kChromeUIVersionHost[] = "version"; |
263 const char kChromeUIWelcomeHost[] = "welcome"; | 264 const char kChromeUIWelcomeHost[] = "welcome"; |
264 const char kChromeUIWelcomeWin10Host[] = "welcome-win10"; | 265 const char kChromeUIWelcomeWin10Host[] = "welcome-win10"; |
265 const char kChromeUIWorkersHost[] = "workers"; | 266 const char kChromeUIWorkersHost[] = "workers"; |
266 | 267 |
267 #if defined(ENABLE_PRINT_PREVIEW) | 268 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
268 const char kChromeUIPrintHost[] = "print"; | 269 const char kChromeUIPrintHost[] = "print"; |
269 #endif // ENABLE_PRINT_PREVIEW | 270 #endif // ENABLE_PRINT_PREVIEW |
270 | 271 |
271 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 272 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
272 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; | 273 const char kChromeUILinuxProxyConfigHost[] = "linux-proxy-config"; |
273 const char kChromeUISandboxHost[] = "sandbox"; | 274 const char kChromeUISandboxHost[] = "sandbox"; |
274 #endif | 275 #endif |
275 | 276 |
276 #if defined(OS_ANDROID) | 277 #if defined(OS_ANDROID) |
277 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo"; | 278 const char kChromeUIContextualSearchPromoHost[] = "contextual-search-promo"; |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 #endif | 705 #endif |
705 #if defined(OS_WIN) | 706 #if defined(OS_WIN) |
706 kChromeUIConflictsHost, | 707 kChromeUIConflictsHost, |
707 #endif | 708 #endif |
708 #if !defined(DISABLE_NACL) | 709 #if !defined(DISABLE_NACL) |
709 kChromeUINaClHost, | 710 kChromeUINaClHost, |
710 #endif | 711 #endif |
711 #if defined(ENABLE_EXTENSIONS) | 712 #if defined(ENABLE_EXTENSIONS) |
712 kChromeUIExtensionsHost, | 713 kChromeUIExtensionsHost, |
713 #endif | 714 #endif |
714 #if defined(ENABLE_PRINT_PREVIEW) | 715 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
715 kChromeUIPrintHost, | 716 kChromeUIPrintHost, |
716 #endif | 717 #endif |
717 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 718 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
718 kChromeUIDevicesHost, | 719 kChromeUIDevicesHost, |
719 #endif | 720 #endif |
720 #if defined(ENABLE_WEBRTC) | 721 #if defined(ENABLE_WEBRTC) |
721 kChromeUIWebRtcLogsHost, | 722 kChromeUIWebRtcLogsHost, |
722 #endif | 723 #endif |
723 }; | 724 }; |
724 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); | 725 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 #endif | 799 #endif |
799 | 800 |
800 const char kChooserUsbOverviewURL[] = | 801 const char kChooserUsbOverviewURL[] = |
801 "https://support.google.com/chrome?p=webusb"; | 802 "https://support.google.com/chrome?p=webusb"; |
802 | 803 |
803 #if defined(OS_CHROMEOS) | 804 #if defined(OS_CHROMEOS) |
804 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; | 805 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; |
805 #endif | 806 #endif |
806 | 807 |
807 } // namespace chrome | 808 } // namespace chrome |
OLD | NEW |