Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 7885013: Move the ViewHostMsg_ClearPredictorCache out of content into chrome as this functionality is chro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/support/webkit_support_glue.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/support/webkit_support_glue.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698