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/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
557 const char kNotificationWelcomeLearnMoreURL[] = | 557 const char kNotificationWelcomeLearnMoreURL[] = |
558 "https://support.google.com/chrome/?p=ib_google_now_welcome"; | 558 "https://support.google.com/chrome/?p=ib_google_now_welcome"; |
559 | 559 |
560 // Add hosts here to be included in chrome://chrome-urls (about:about). | 560 // Add hosts here to be included in chrome://chrome-urls (about:about). |
561 // These hosts will also be suggested by BuiltinProvider. | 561 // These hosts will also be suggested by BuiltinProvider. |
562 const char* const kChromeHostURLs[] = { | 562 const char* const kChromeHostURLs[] = { |
563 kChromeUICacheHost, | 563 kChromeUICacheHost, |
564 kChromeUIChromeURLsHost, | 564 kChromeUIChromeURLsHost, |
565 kChromeUIComponentsHost, | 565 kChromeUIComponentsHost, |
566 kChromeUICrashesHost, | 566 kChromeUICrashesHost, |
567 kChromeUICreditsHost, | 567 kChromeUICreditsHost, |
Mark P
2014/05/19 18:30:20
This is an array. Does reordering it change the o
Peter Kasting
2014/05/19 18:50:11
No. about_ui.cc sorts the list itself. Which is
| |
568 #if defined(ENABLE_SERVICE_DISCOVERY) | |
569 kChromeUIDevicesHost, | |
570 #endif | |
571 kChromeUIDNSHost, | 568 kChromeUIDNSHost, |
572 kChromeUIFlagsHost, | 569 kChromeUIFlagsHost, |
573 kChromeUIGCMInternalsHost, | |
574 kChromeUIHelpHost, | |
575 kChromeUIHistoryHost, | 570 kChromeUIHistoryHost, |
576 kChromeUIInvalidationsHost, | 571 kChromeUIInvalidationsHost, |
577 kChromeUIIPCHost, | |
578 kChromeUIMemoryHost, | 572 kChromeUIMemoryHost, |
579 kChromeUIMemoryInternalsHost, | 573 kChromeUIMemoryInternalsHost, |
580 #if defined(OS_ANDROID) || defined(OS_IOS) | |
581 kChromeUINetExportHost, | |
582 #endif | |
583 kChromeUINetInternalsHost, | 574 kChromeUINetInternalsHost, |
584 kChromeUINewTabHost, | 575 kChromeUINewTabHost, |
585 kChromeUIOmniboxHost, | 576 kChromeUIOmniboxHost, |
586 kChromeUIPredictorsHost, | 577 kChromeUIPredictorsHost, |
587 kChromeUIProfilerHost, | 578 kChromeUIProfilerHost, |
588 kChromeUIQuotaInternalsHost, | |
589 kChromeUISignInInternalsHost, | 579 kChromeUISignInInternalsHost, |
590 kChromeUIStatsHost, | 580 kChromeUIStatsHost, |
591 kChromeUISyncInternalsHost, | 581 kChromeUISyncInternalsHost, |
592 kChromeUISystemInfoHost, | |
593 kChromeUITermsHost, | 582 kChromeUITermsHost, |
594 kChromeUITranslateInternalsHost, | 583 kChromeUITranslateInternalsHost, |
595 kChromeUIUberHost, | |
596 kChromeUIUserActionsHost, | 584 kChromeUIUserActionsHost, |
597 kChromeUIVersionHost, | 585 kChromeUIVersionHost, |
586 content::kChromeUIAccessibilityHost, | |
587 content::kChromeUIAppCacheInternalsHost, | |
588 content::kChromeUIBlobInternalsHost, | |
589 content::kChromeUIGpuHost, | |
590 content::kChromeUIHistogramHost, | |
591 content::kChromeUIIndexedDBInternalsHost, | |
592 content::kChromeUIMediaInternalsHost, | |
593 content::kChromeUINetworkViewCacheHost, | |
594 content::kChromeUIServiceWorkerInternalsHost, | |
595 content::kChromeUITracingHost, | |
596 content::kChromeUIWebRTCInternalsHost, | |
598 #if defined(OS_ANDROID) | 597 #if defined(OS_ANDROID) |
599 kChromeUIWelcomeHost, | 598 kChromeUIWelcomeHost, |
600 #else | 599 #else |
601 kChromeUIAppLauncherPageHost, | 600 kChromeUIAppLauncherPageHost, |
602 kChromeUIBookmarksHost, | 601 kChromeUIBookmarksHost, |
603 kChromeUIDownloadsHost, | 602 kChromeUIDownloadsHost, |
604 kChromeUIFlashHost, | 603 kChromeUIFlashHost, |
604 kChromeUIGCMInternalsHost, | |
605 kChromeUIHelpHost, | |
605 kChromeUIInspectHost, | 606 kChromeUIInspectHost, |
607 kChromeUIIPCHost, | |
606 kChromeUIPluginsHost, | 608 kChromeUIPluginsHost, |
609 kChromeUIQuotaInternalsHost, | |
607 kChromeUISettingsHost, | 610 kChromeUISettingsHost, |
611 kChromeUISystemInfoHost, | |
612 kChromeUIUberHost, | |
608 #endif | 613 #endif |
609 #if defined(OS_WIN) | 614 #if defined(OS_ANDROID) || defined(OS_IOS) |
610 kChromeUIConflictsHost, | 615 kChromeUINetExportHost, |
611 #endif | |
612 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | |
613 kChromeUILinuxProxyConfigHost, | |
614 kChromeUISandboxHost, | |
615 #endif | 616 #endif |
616 #if defined(OS_CHROMEOS) | 617 #if defined(OS_CHROMEOS) |
617 kChromeUICertificateManagerHost, | 618 kChromeUICertificateManagerHost, |
618 kChromeUIChooseMobileNetworkHost, | 619 kChromeUIChooseMobileNetworkHost, |
619 kChromeUICryptohomeHost, | 620 kChromeUICryptohomeHost, |
620 kChromeUIDiscardsHost, | 621 kChromeUIDiscardsHost, |
621 kChromeUIDriveInternalsHost, | 622 kChromeUIDriveInternalsHost, |
622 kChromeUIFirstRunHost, | 623 kChromeUIFirstRunHost, |
623 kChromeUIImageBurnerHost, | 624 kChromeUIImageBurnerHost, |
624 kChromeUIKeyboardOverlayHost, | 625 kChromeUIKeyboardOverlayHost, |
625 kChromeUILoginHost, | 626 kChromeUILoginHost, |
626 kChromeUINetworkHost, | 627 kChromeUINetworkHost, |
627 kChromeUIOobeHost, | 628 kChromeUIOobeHost, |
628 kChromeUIOSCreditsHost, | 629 kChromeUIOSCreditsHost, |
629 kChromeUIPowerHost, | 630 kChromeUIPowerHost, |
630 kChromeUIProxySettingsHost, | 631 kChromeUIProxySettingsHost, |
631 kChromeUITaskManagerHost, | 632 kChromeUITaskManagerHost, |
632 #endif | 633 #endif |
634 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | |
635 kChromeUILinuxProxyConfigHost, | |
636 kChromeUISandboxHost, | |
637 #endif | |
638 #if defined(OS_WIN) | |
639 kChromeUIConflictsHost, | |
640 #endif | |
633 #if !defined(DISABLE_NACL) | 641 #if !defined(DISABLE_NACL) |
634 kChromeUINaClHost, | 642 kChromeUINaClHost, |
635 #endif | 643 #endif |
636 #if defined(ENABLE_CONFIGURATION_POLICY) | 644 #if defined(ENABLE_CONFIGURATION_POLICY) |
637 kChromeUIPolicyHost, | 645 kChromeUIPolicyHost, |
638 #endif | 646 #endif |
639 #if defined(ENABLE_EXTENSIONS) | 647 #if defined(ENABLE_EXTENSIONS) |
640 kChromeUIExtensionsHost, | 648 kChromeUIExtensionsHost, |
641 #endif | 649 #endif |
642 #if defined(ENABLE_FULL_PRINTING) | 650 #if defined(ENABLE_FULL_PRINTING) |
643 kChromeUIPrintHost, | 651 kChromeUIPrintHost, |
644 #endif | 652 #endif |
645 content::kChromeUIAccessibilityHost, | 653 #if defined(ENABLE_SERVICE_DISCOVERY) |
646 content::kChromeUIAppCacheInternalsHost, | 654 kChromeUIDevicesHost, |
647 content::kChromeUIBlobInternalsHost, | 655 #endif |
648 content::kChromeUIGpuHost, | |
649 content::kChromeUIHistogramHost, | |
650 content::kChromeUIIndexedDBInternalsHost, | |
651 content::kChromeUIMediaInternalsHost, | |
652 content::kChromeUINetworkViewCacheHost, | |
653 content::kChromeUIServiceWorkerInternalsHost, | |
654 content::kChromeUITracingHost, | |
655 content::kChromeUIWebRTCInternalsHost, | |
656 #if defined(ENABLE_WEBRTC) | 656 #if defined(ENABLE_WEBRTC) |
657 kChromeUIWebRtcLogsHost, | 657 kChromeUIWebRtcLogsHost, |
658 #endif | 658 #endif |
659 }; | 659 }; |
660 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); | 660 const size_t kNumberOfChromeHostURLs = arraysize(kChromeHostURLs); |
661 | 661 |
662 const char* const kChromeDebugURLs[] = { | 662 const char* const kChromeDebugURLs[] = { |
663 content::kChromeUICrashURL, | 663 content::kChromeUICrashURL, |
664 content::kChromeUIKillURL, | 664 content::kChromeUIKillURL, |
665 content::kChromeUIHangURL, | 665 content::kChromeUIHangURL, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
710 ""; | 710 ""; |
711 #endif | 711 #endif |
712 #endif | 712 #endif |
713 | 713 |
714 // TODO(tengs): Replace with real URL when ready. | 714 // TODO(tengs): Replace with real URL when ready. |
715 const char kEasyUnlockLearnMoreUrl[] = | 715 const char kEasyUnlockLearnMoreUrl[] = |
716 "https://support.google.com/chromebook/?p=easy_unlock"; | 716 "https://support.google.com/chromebook/?p=easy_unlock"; |
717 const char kEasyUnlockManagementUrl[] = "https://chrome.com"; | 717 const char kEasyUnlockManagementUrl[] = "https://chrome.com"; |
718 | 718 |
719 } // namespace chrome | 719 } // namespace chrome |
OLD | NEW |