OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/gfx/codec/png_codec.h" | 9 #include "app/gfx/codec/png_codec.h" |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 void PrecacheUrl(const char16* url, int url_length) {} | 652 void PrecacheUrl(const char16* url, int url_length) {} |
653 | 653 |
654 void AppendToLog(const char* file, int line, const char* msg) { | 654 void AppendToLog(const char* file, int line, const char* msg) { |
655 logging::LogMessage(file, line).stream() << msg; | 655 logging::LogMessage(file, line).stream() << msg; |
656 } | 656 } |
657 | 657 |
658 bool GetApplicationDirectory(FilePath* path) { | 658 bool GetApplicationDirectory(FilePath* path) { |
659 return PathService::Get(base::DIR_EXE, path); | 659 return PathService::Get(base::DIR_EXE, path); |
660 } | 660 } |
661 | 661 |
662 GURL GetInspectorURL() { | |
663 return GURL("test-shell-resource://inspector/inspector.html"); | |
664 } | |
665 | |
666 std::string GetUIResourceProtocol() { | |
667 return "test-shell-resource"; | |
668 } | |
669 | |
670 bool GetExeDirectory(FilePath* path) { | 662 bool GetExeDirectory(FilePath* path) { |
671 return GetApplicationDirectory(path); | 663 return GetApplicationDirectory(path); |
672 } | 664 } |
673 | 665 |
674 bool IsPluginRunningInRendererProcess() { | 666 bool IsPluginRunningInRendererProcess() { |
675 return true; | 667 return true; |
676 } | 668 } |
677 | 669 |
678 bool GetPluginFinderURL(std::string* plugin_finder_url) { | 670 bool GetPluginFinderURL(std::string* plugin_finder_url) { |
679 return false; | 671 return false; |
(...skipping 28 matching lines...) Expand all Loading... |
708 | 700 |
709 void CloseIdleConnections() { | 701 void CloseIdleConnections() { |
710 // Used in benchmarking, Ignored for test_shell. | 702 // Used in benchmarking, Ignored for test_shell. |
711 } | 703 } |
712 | 704 |
713 void SetCacheMode(bool enabled) { | 705 void SetCacheMode(bool enabled) { |
714 // Used in benchmarking, Ignored for test_shell. | 706 // Used in benchmarking, Ignored for test_shell. |
715 } | 707 } |
716 | 708 |
717 } // namespace webkit_glue | 709 } // namespace webkit_glue |
OLD | NEW |