| OLD | NEW |
| 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 Loading... |
| 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&, |
| 32 const WebKit::WebString&) OVERRIDE; | 33 const WebKit::WebString&) OVERRIDE; |
| 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_ |
| OLD | NEW |