OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "webkit/tools/test_shell/test_shell.h" | 5 #include "webkit/tools/test_shell/test_shell.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug_on_start.h" | 8 #include "base/debug_on_start.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 } | 494 } |
495 } | 495 } |
496 } | 496 } |
497 } | 497 } |
498 | 498 |
499 //----------------------------------------------------------------------------- | 499 //----------------------------------------------------------------------------- |
500 | 500 |
501 namespace webkit_glue { | 501 namespace webkit_glue { |
502 | 502 |
503 bool IsMediaPlayerAvailable() { | 503 bool IsMediaPlayerAvailable() { |
504 return CommandLine().HasSwitch(test_shell::kEnableVideo); | 504 return CommandLine::ForCurrentProcess()->HasSwitch(test_shell::kEnableVideo); |
505 } | 505 } |
506 | 506 |
507 void PrefetchDns(const std::string& hostname) {} | 507 void PrefetchDns(const std::string& hostname) {} |
508 | 508 |
509 void PrecacheUrl(const char16* url, int url_length) {} | 509 void PrecacheUrl(const char16* url, int url_length) {} |
510 | 510 |
511 void AppendToLog(const char* file, int line, const char* msg) { | 511 void AppendToLog(const char* file, int line, const char* msg) { |
512 logging::LogMessage(file, line).stream() << msg; | 512 logging::LogMessage(file, line).stream() << msg; |
513 } | 513 } |
514 | 514 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 | 627 |
628 uint64 VisitedLinkHash(const char* canonical_url, size_t length) { | 628 uint64 VisitedLinkHash(const char* canonical_url, size_t length) { |
629 return 0; | 629 return 0; |
630 } | 630 } |
631 | 631 |
632 bool IsLinkVisited(uint64 link_hash) { | 632 bool IsLinkVisited(uint64 link_hash) { |
633 return false; | 633 return false; |
634 } | 634 } |
635 | 635 |
636 } // namespace webkit_glue | 636 } // namespace webkit_glue |
OLD | NEW |