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

Side by Side Diff: webkit/tools/test_shell/test_shell_webmimeregistry_impl.h

Issue 10020053: Initial implementation of Encrypted Media Extensions in Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 // by all variations of Chromium. 22 // by all variations of Chromium.
23 // 23 //
24 // Media layout tests use canPlayType() to determine the test input files. 24 // Media layout tests use canPlayType() to determine the test input files.
25 // Different flavours of Chromium support different codecs, which has an 25 // Different flavours of Chromium support different codecs, which has an
26 // impact on how canPlayType() behaves. Since Chromium's baselines and 26 // impact on how canPlayType() behaves. Since Chromium's baselines and
27 // expectations are generated against the common set of types, we need to 27 // expectations are generated against the common set of types, we need to
28 // prevent canPlayType() from indicating it supports other types when running 28 // prevent canPlayType() from indicating it supports other types when running
29 // layout tests. 29 // layout tests.
30 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( 30 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType(
31 const WebKit::WebString&, 31 const WebKit::WebString&,
32 const WebKit::WebString&) OVERRIDE; 32 const WebKit::WebString&,
33 const WebKit::WebString& keySystem) OVERRIDE;
scherkus (not reviewing) 2012/04/12 20:18:41 nit: remove arg name
ddorwin 2012/04/12 23:41:23 Done.
33 34
34 private: 35 private:
35 bool IsBlacklistedMediaMimeType(const std::string& mime_type); 36 bool IsBlacklistedMediaMimeType(const std::string& mime_type);
36 bool HasBlacklistedMediaCodecs(const std::vector<std::string>& codecs); 37 bool HasBlacklistedMediaCodecs(const std::vector<std::string>& codecs);
37 38
38 std::vector<std::string> blacklisted_media_types_; 39 std::vector<std::string> blacklisted_media_types_;
39 std::vector<std::string> blacklisted_media_codecs_; 40 std::vector<std::string> blacklisted_media_codecs_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); 42 DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl);
42 }; 43 };
43 44
44 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ 45 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698