Chromium Code Reviews| 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" |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 601 const char kNotificationsHelpURL[] = | 601 const char kNotificationsHelpURL[] = |
| 602 "https://support.google.com/chrome/?p=ui_notifications"; | 602 "https://support.google.com/chrome/?p=ui_notifications"; |
| 603 #endif | 603 #endif |
| 604 | 604 |
| 605 const char kNotificationWelcomeLearnMoreURL[] = | 605 const char kNotificationWelcomeLearnMoreURL[] = |
| 606 "https://support.google.com/chrome/?p=ib_google_now_welcome"; | 606 "https://support.google.com/chrome/?p=ib_google_now_welcome"; |
| 607 | 607 |
| 608 // Add hosts here to be included in chrome://chrome-urls (about:about). | 608 // Add hosts here to be included in chrome://chrome-urls (about:about). |
| 609 // These hosts will also be suggested by BuiltinProvider. | 609 // These hosts will also be suggested by BuiltinProvider. |
| 610 const char* const kChromeHostURLs[] = { | 610 const char* const kChromeHostURLs[] = { |
| 611 kChromeUIBluetoothInternalsHost, | 611 kChromeUIBluetoothInternalsHost, |
|
scheib
2016/10/21 05:52:26
FYI the indent here is based on "git cl format", a
michaelpg
2016/10/22 03:25:29
The 2-space indentation is quite common, consisten
michaelpg
2016/10/22 23:28:29
Acknowledged. Also, I changed my mind -- 2-space i
scheib
2016/11/03 23:58:59
Done, corrected the other array as well.
michaelpg
2016/11/04 21:20:14
Thanks.
| |
| 612 kChromeUICacheHost, | 612 kChromeUICacheHost, |
| 613 kChromeUIChromeURLsHost, | 613 kChromeUIChromeURLsHost, |
| 614 kChromeUIComponentsHost, | 614 kChromeUIComponentsHost, |
| 615 kChromeUICrashesHost, | 615 kChromeUICrashesHost, |
| 616 kChromeUICreditsHost, | 616 kChromeUICreditsHost, |
| 617 kChromeUIDNSHost, | 617 kChromeUIDNSHost, |
| 618 kChromeUIDeviceLogHost, | 618 #if defined(OS_CHROMEOS) |
| 619 kChromeUIFlagsHost, | 619 kChromeUIDeviceEmulatorHost, |
|
michaelpg
2016/10/22 23:28:29
Is it OK to include this when the WebUI itself doe
scheib
2016/11/03 23:58:59
Done.
| |
| 620 kChromeUIGCMInternalsHost, | 620 #endif |
| 621 kChromeUIHistoryHost, | 621 kChromeUIDeviceLogHost, |
| 622 kChromeUIInvalidationsHost, | 622 kChromeUIFlagsHost, |
| 623 kChromeUILocalStateHost, | 623 kChromeUIGCMInternalsHost, |
| 624 kChromeUINetExportHost, | 624 kChromeUIHistoryHost, |
| 625 kChromeUINetInternalsHost, | 625 kChromeUIInvalidationsHost, |
| 626 kChromeUINewTabHost, | 626 kChromeUILocalStateHost, |
| 627 kChromeUIOmniboxHost, | 627 kChromeUINetExportHost, |
| 628 kChromeUIPasswordManagerInternalsHost, | 628 kChromeUINetInternalsHost, |
| 629 kChromeUIPolicyHost, | 629 kChromeUINewTabHost, |
| 630 kChromeUIPredictorsHost, | 630 kChromeUIOmniboxHost, |
| 631 kChromeUIProfilerHost, | 631 kChromeUIPasswordManagerInternalsHost, |
| 632 kChromeUISignInInternalsHost, | 632 kChromeUIPolicyHost, |
| 633 kChromeUISuggestionsHost, | 633 kChromeUIPredictorsHost, |
| 634 kChromeUISupervisedUserInternalsHost, | 634 kChromeUIProfilerHost, |
| 635 kChromeUISyncInternalsHost, | 635 kChromeUISignInInternalsHost, |
| 636 kChromeUITaskSchedulerInternalsHost, | 636 kChromeUISuggestionsHost, |
| 637 kChromeUITermsHost, | 637 kChromeUISupervisedUserInternalsHost, |
| 638 kChromeUIThumbnailListHost, | 638 kChromeUISyncInternalsHost, |
| 639 kChromeUITranslateInternalsHost, | 639 kChromeUITaskSchedulerInternalsHost, |
| 640 kChromeUIUsbInternalsHost, | 640 kChromeUITermsHost, |
| 641 kChromeUIUserActionsHost, | 641 kChromeUIThumbnailListHost, |
| 642 kChromeUIVersionHost, | 642 kChromeUITranslateInternalsHost, |
| 643 content::kChromeUIAccessibilityHost, | 643 kChromeUIUsbInternalsHost, |
| 644 content::kChromeUIAppCacheInternalsHost, | 644 kChromeUIUserActionsHost, |
| 645 content::kChromeUIBlobInternalsHost, | 645 kChromeUIVersionHost, |
| 646 content::kChromeUIGpuHost, | 646 content::kChromeUIAccessibilityHost, |
| 647 content::kChromeUIHistogramHost, | 647 content::kChromeUIAppCacheInternalsHost, |
| 648 content::kChromeUIIndexedDBInternalsHost, | 648 content::kChromeUIBlobInternalsHost, |
| 649 content::kChromeUIMediaInternalsHost, | 649 content::kChromeUIGpuHost, |
| 650 content::kChromeUINetworkErrorHost, | 650 content::kChromeUIHistogramHost, |
| 651 content::kChromeUINetworkErrorsListingHost, | 651 content::kChromeUIIndexedDBInternalsHost, |
| 652 content::kChromeUINetworkViewCacheHost, | 652 content::kChromeUIMediaInternalsHost, |
| 653 content::kChromeUIServiceWorkerInternalsHost, | 653 content::kChromeUINetworkErrorHost, |
| 654 content::kChromeUITracingHost, | 654 content::kChromeUINetworkErrorsListingHost, |
| 655 content::kChromeUIWebRTCInternalsHost, | 655 content::kChromeUINetworkViewCacheHost, |
| 656 content::kChromeUIServiceWorkerInternalsHost, | |
| 657 content::kChromeUITracingHost, | |
| 658 content::kChromeUIWebRTCInternalsHost, | |
| 656 #if !defined(OS_ANDROID) | 659 #if !defined(OS_ANDROID) |
| 657 #if !defined(OS_CHROMEOS) | 660 #if !defined(OS_CHROMEOS) |
| 658 kChromeUIAppLauncherPageHost, | 661 kChromeUIAppLauncherPageHost, |
| 659 #endif | 662 #endif |
| 660 kChromeUIBookmarksHost, | 663 kChromeUIBookmarksHost, |
| 661 kChromeUIDownloadsHost, | 664 kChromeUIDownloadsHost, |
| 662 kChromeUIFlashHost, | 665 kChromeUIFlashHost, |
| 663 kChromeUIHelpHost, | 666 kChromeUIHelpHost, |
| 664 kChromeUIInspectHost, | 667 kChromeUIInspectHost, |
| 665 kChromeUIPluginsHost, | 668 kChromeUIPluginsHost, |
| 666 kChromeUIQuotaInternalsHost, | 669 kChromeUIQuotaInternalsHost, |
| 667 kChromeUISettingsHost, | 670 kChromeUISettingsHost, |
| 668 kChromeUISystemInfoHost, | 671 kChromeUISystemInfoHost, |
| 669 kChromeUIUberHost, | 672 kChromeUIUberHost, |
| 670 #endif | 673 #endif |
| 671 #if defined(OS_ANDROID) | 674 #if defined(OS_ANDROID) |
| 672 kChromeUINetExportHost, | 675 kChromeUINetExportHost, |
| 673 kChromeUIOfflineInternalsHost, | 676 kChromeUIOfflineInternalsHost, |
| 674 kChromeUIPopularSitesInternalsHost, | 677 kChromeUIPopularSitesInternalsHost, |
| 675 kChromeUISnippetsInternalsHost, | 678 kChromeUISnippetsInternalsHost, |
| 676 #endif | 679 #endif |
| 677 #if defined(OS_CHROMEOS) | 680 #if defined(OS_CHROMEOS) |
| 678 kChromeUICertificateManagerHost, | 681 kChromeUICertificateManagerHost, |
| 679 kChromeUIChooseMobileNetworkHost, | 682 kChromeUIChooseMobileNetworkHost, |
| 680 kChromeUICryptohomeHost, | 683 kChromeUICryptohomeHost, |
| 681 kChromeUIDriveInternalsHost, | 684 kChromeUIDriveInternalsHost, |
| 682 kChromeUIFirstRunHost, | 685 kChromeUIFirstRunHost, |
| 683 kChromeUIKeyboardOverlayHost, | 686 kChromeUIKeyboardOverlayHost, |
| 684 kChromeUILoginHost, | 687 kChromeUILoginHost, |
| 685 kChromeUINetworkHost, | 688 kChromeUINetworkHost, |
| 686 kChromeUIOobeHost, | 689 kChromeUIOobeHost, |
| 687 kChromeUIOSCreditsHost, | 690 kChromeUIOSCreditsHost, |
| 688 kChromeUIPowerHost, | 691 kChromeUIPowerHost, |
| 689 kChromeUIProxySettingsHost, | 692 kChromeUIProxySettingsHost, |
| 690 kChromeUIVoiceSearchHost, | 693 kChromeUIVoiceSearchHost, |
| 691 #endif | 694 #endif |
| 692 #if defined(OS_WIN) || defined(OS_CHROMEOS) | 695 #if defined(OS_WIN) || defined(OS_CHROMEOS) |
| 693 kChromeUIDiscardsHost, | 696 kChromeUIDiscardsHost, |
| 694 #endif | 697 #endif |
| 695 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 698 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 696 kChromeUILinuxProxyConfigHost, | 699 kChromeUILinuxProxyConfigHost, |
| 697 kChromeUISandboxHost, | 700 kChromeUISandboxHost, |
| 698 #endif | 701 #endif |
| 699 #if defined(OS_WIN) | 702 #if defined(OS_WIN) |
| 700 kChromeUIConflictsHost, | 703 kChromeUIConflictsHost, |
| 701 #endif | 704 #endif |
| 702 #if !defined(DISABLE_NACL) | 705 #if !defined(DISABLE_NACL) |
| 703 kChromeUINaClHost, | 706 kChromeUINaClHost, |
| 704 #endif | 707 #endif |
| 705 #if defined(ENABLE_EXTENSIONS) | 708 #if defined(ENABLE_EXTENSIONS) |
| 706 kChromeUIExtensionsHost, | 709 kChromeUIExtensionsHost, |
| 707 #endif | 710 #endif |
| 708 #if defined(ENABLE_PRINT_PREVIEW) | 711 #if defined(ENABLE_PRINT_PREVIEW) |
| 709 kChromeUIPrintHost, | 712 kChromeUIPrintHost, |
| 710 #endif | 713 #endif |
| 711 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 714 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
| 712 kChromeUIDevicesHost, | 715 kChromeUIDevicesHost, |
| 713 #endif | 716 #endif |
| 714 #if defined(ENABLE_WEBRTC) | 717 #if defined(ENABLE_WEBRTC) |
| 715 kChromeUIWebRtcLogsHost, | 718 kChromeUIWebRtcLogsHost, |
| 716 #endif | 719 #endif |
| 717 }; | 720 }; |
| 718 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); | 721 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); |
| 719 | 722 |
| 720 const char* const kChromeDebugURLs[] = { | 723 const char* const kChromeDebugURLs[] = { |
| 721 content::kChromeUIBadCastCrashURL, | 724 content::kChromeUIBadCastCrashURL, |
| 722 content::kChromeUICrashURL, | 725 content::kChromeUICrashURL, |
| 723 content::kChromeUIDumpURL, | 726 content::kChromeUIDumpURL, |
| 724 content::kChromeUIKillURL, | 727 content::kChromeUIKillURL, |
| 725 content::kChromeUIHangURL, | 728 content::kChromeUIHangURL, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 792 #endif | 795 #endif |
| 793 | 796 |
| 794 const char kChooserUsbOverviewURL[] = | 797 const char kChooserUsbOverviewURL[] = |
| 795 "https://support.google.com/chrome?p=webusb"; | 798 "https://support.google.com/chrome?p=webusb"; |
| 796 | 799 |
| 797 #if defined(OS_CHROMEOS) | 800 #if defined(OS_CHROMEOS) |
| 798 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; | 801 const char kEolNotificationURL[] = "https://www.google.com/chromebook/older/"; |
| 799 #endif | 802 #endif |
| 800 | 803 |
| 801 } // namespace chrome | 804 } // namespace chrome |
| OLD | NEW |