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

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

Issue 216022: Allow <audio> to work in extension (Closed)
Patch Set: omments Created 11 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
« no previous file with comments | « webkit/glue/webkit_glue.h ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 if (PathService::Get(base::FILE_EXE, &exe_path)) { 665 if (PathService::Get(base::FILE_EXE, &exe_path)) {
666 std::wstring exe_name = file_util::GetFilenameFromPath( 666 std::wstring exe_name = file_util::GetFilenameFromPath(
667 exe_path.ToWStringHack()); 667 exe_path.ToWStringHack());
668 if (StartsWith(exe_name, L"test_shell_tests", false)) 668 if (StartsWith(exe_name, L"test_shell_tests", false))
669 return true; 669 return true;
670 } 670 }
671 #endif // OS_WIN 671 #endif // OS_WIN
672 return false; 672 return false;
673 } 673 }
674 674
675 bool IsProtocolSupportedForMedia(const GURL& url) {
676 if (url.SchemeIsFile() || url.SchemeIs("http") || url.SchemeIs("https"))
677 return true;
678 return false;
679 }
680
675 std::wstring GetWebKitLocale() { 681 std::wstring GetWebKitLocale() {
676 return L"en-US"; 682 return L"en-US";
677 } 683 }
678 684
679 void CloseIdleConnections() { 685 void CloseIdleConnections() {
680 // Used in benchmarking, Ignored for test_shell. 686 // Used in benchmarking, Ignored for test_shell.
681 } 687 }
682 688
683 void SetCacheMode(bool enabled) { 689 void SetCacheMode(bool enabled) {
684 // Used in benchmarking, Ignored for test_shell. 690 // Used in benchmarking, Ignored for test_shell.
685 } 691 }
686 692
687 } // namespace webkit_glue 693 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698