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 "extensions/features/features.h" | 13 #include "extensions/features/features.h" |
| 14 #include "media/media_features.h" |
14 #include "printing/features/features.h" | 15 #include "printing/features/features.h" |
15 #include "url/url_util.h" | 16 #include "url/url_util.h" |
16 | 17 |
17 namespace chrome { | 18 namespace chrome { |
18 | 19 |
19 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
20 const char kCrosScheme[] = "cros"; | 21 const char kCrosScheme[] = "cros"; |
21 #endif | 22 #endif |
22 | 23 |
23 #if defined(OS_ANDROID) | 24 #if defined(OS_ANDROID) |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 138 |
138 #if defined(OS_WIN) | 139 #if defined(OS_WIN) |
139 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/"; | 140 const char kChromeUIMetroFlowURL[] = "chrome://make-metro/"; |
140 #endif | 141 #endif |
141 | 142 |
142 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 143 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
143 const char kChromeUITabModalConfirmDialogURL[] = | 144 const char kChromeUITabModalConfirmDialogURL[] = |
144 "chrome://tab-modal-confirm-dialog/"; | 145 "chrome://tab-modal-confirm-dialog/"; |
145 #endif | 146 #endif |
146 | 147 |
147 #if defined(ENABLE_WEBRTC) | 148 #if BUILDFLAG(ENABLE_WEBRTC) |
148 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; | 149 const char kChromeUIWebRtcLogsURL[] = "chrome://webrtc-logs/"; |
149 #endif | 150 #endif |
150 | 151 |
151 #if defined(ENABLE_MEDIA_ROUTER) | 152 #if defined(ENABLE_MEDIA_ROUTER) |
152 const char kChromeUIMediaRouterURL[] = "chrome://media-router/"; | 153 const char kChromeUIMediaRouterURL[] = "chrome://media-router/"; |
153 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 154 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
154 const char kChromeUICastURL[] = "chrome://cast/"; | 155 const char kChromeUICastURL[] = "chrome://cast/"; |
155 #endif | 156 #endif |
156 #endif | 157 #endif |
157 | 158 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 #endif // defined(OS_CHROMEOS) | 329 #endif // defined(OS_CHROMEOS) |
329 | 330 |
330 #if defined(OS_WIN) | 331 #if defined(OS_WIN) |
331 const char kChromeUIMetroFlowHost[] = "make-metro"; | 332 const char kChromeUIMetroFlowHost[] = "make-metro"; |
332 #endif | 333 #endif |
333 | 334 |
334 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 335 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
335 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; | 336 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog"; |
336 #endif | 337 #endif |
337 | 338 |
338 #if defined(ENABLE_WEBRTC) | 339 #if BUILDFLAG(ENABLE_WEBRTC) |
339 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; | 340 const char kChromeUIWebRtcLogsHost[] = "webrtc-logs"; |
340 #endif | 341 #endif |
341 | 342 |
342 #if defined(ENABLE_MEDIA_ROUTER) | 343 #if defined(ENABLE_MEDIA_ROUTER) |
343 const char kChromeUIMediaRouterHost[] = "media-router"; | 344 const char kChromeUIMediaRouterHost[] = "media-router"; |
344 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) | 345 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
345 const char kChromeUICastHost[] = "cast"; | 346 const char kChromeUICastHost[] = "cast"; |
346 #endif | 347 #endif |
347 #endif | 348 #endif |
348 | 349 |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 #endif | 718 #endif |
718 #if BUILDFLAG(ENABLE_EXTENSIONS) | 719 #if BUILDFLAG(ENABLE_EXTENSIONS) |
719 kChromeUIExtensionsHost, | 720 kChromeUIExtensionsHost, |
720 #endif | 721 #endif |
721 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 722 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
722 kChromeUIPrintHost, | 723 kChromeUIPrintHost, |
723 #endif | 724 #endif |
724 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 725 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
725 kChromeUIDevicesHost, | 726 kChromeUIDevicesHost, |
726 #endif | 727 #endif |
727 #if defined(ENABLE_WEBRTC) | 728 #if BUILDFLAG(ENABLE_WEBRTC) |
728 kChromeUIWebRtcLogsHost, | 729 kChromeUIWebRtcLogsHost, |
729 #endif | 730 #endif |
730 }; | 731 }; |
731 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); | 732 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); |
732 | 733 |
733 const char* const kChromeDebugURLs[] = {content::kChromeUIBadCastCrashURL, | 734 const char* const kChromeDebugURLs[] = {content::kChromeUIBadCastCrashURL, |
734 content::kChromeUICrashURL, | 735 content::kChromeUICrashURL, |
735 content::kChromeUIDumpURL, | 736 content::kChromeUIDumpURL, |
736 content::kChromeUIKillURL, | 737 content::kChromeUIKillURL, |
737 content::kChromeUIHangURL, | 738 content::kChromeUIHangURL, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 #endif | 804 #endif |
804 | 805 |
805 const char kChooserUsbOverviewURL[] = | 806 const char kChooserUsbOverviewURL[] = |
806 "https://support.google.com/chrome?p=webusb"; | 807 "https://support.google.com/chrome?p=webusb"; |
807 | 808 |
808 #if defined(OS_CHROMEOS) | 809 #if defined(OS_CHROMEOS) |
809 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; | 810 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; |
810 #endif | 811 #endif |
811 | 812 |
812 } // namespace chrome | 813 } // namespace chrome |
OLD | NEW |