OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #undef LOG | 5 #undef LOG |
6 | 6 |
7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 url.SchemeIs("https") || | 632 url.SchemeIs("https") || |
633 url.SchemeIs("data")) | 633 url.SchemeIs("data")) |
634 return true; | 634 return true; |
635 return false; | 635 return false; |
636 } | 636 } |
637 | 637 |
638 std::string GetWebKitLocale() { | 638 std::string GetWebKitLocale() { |
639 return "en-US"; | 639 return "en-US"; |
640 } | 640 } |
641 | 641 |
642 void CloseCurrentConnections() { | |
643 // Used in benchmarking, Ignored for test_shell. | |
644 } | |
645 | |
646 void SetCacheMode(bool enabled) { | |
647 // Used in benchmarking, Ignored for test_shell. | |
648 } | |
649 | |
650 void ClearCache(bool preserve_ssl_entries) { | |
651 // Used in benchmarking, Ignored for test_shell. | |
652 } | |
653 | |
654 void ClearHostResolverCache() { | |
655 // Used in benchmarking, Ignored for test_shell. | |
656 } | |
657 | |
658 void ClearPredictorCache() { | |
659 // Used in benchmarking, Ignored for test_shell. | |
660 } | |
661 | |
662 void EnableSpdy(bool enable) { | |
663 // Used in benchmarking, Ignored for test_shell. | |
664 } | |
665 | |
666 std::string BuildUserAgent(bool mimic_windows) { | 642 std::string BuildUserAgent(bool mimic_windows) { |
667 return webkit_glue::BuildUserAgentHelper(mimic_windows, "Chrome/0.0.0.0"); | 643 return webkit_glue::BuildUserAgentHelper(mimic_windows, "Chrome/0.0.0.0"); |
668 } | 644 } |
669 | 645 |
670 bool IsSingleProcess() { | 646 bool IsSingleProcess() { |
671 return true; | 647 return true; |
672 } | 648 } |
673 | 649 |
674 #if defined(OS_LINUX) | 650 #if defined(OS_LINUX) |
675 int MatchFontWithFallback(const std::string& face, bool bold, | 651 int MatchFontWithFallback(const std::string& face, bool bold, |
(...skipping 24 matching lines...) Expand all Loading... |
700 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { | 676 for (size_t j = 0; j < arraysize(kPluginBlackList); ++j) { |
701 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { | 677 if (plugin_info.path.BaseName() == FilePath(kPluginBlackList[j])) { |
702 webkit::npapi::PluginList::Singleton()->DisablePlugin(plugin_info.path); | 678 webkit::npapi::PluginList::Singleton()->DisablePlugin(plugin_info.path); |
703 plugins->erase(plugins->begin() + i); | 679 plugins->erase(plugins->begin() + i); |
704 } | 680 } |
705 } | 681 } |
706 } | 682 } |
707 } | 683 } |
708 | 684 |
709 } // namespace webkit_glue | 685 } // namespace webkit_glue |
OLD | NEW |