| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // | 22 // |
| 23 // Media layout tests use canPlayType() to determine the test input files. | 23 // Media layout tests use canPlayType() to determine the test input files. |
| 24 // Different flavours of Chromium support different codecs, which has an | 24 // Different flavours of Chromium support different codecs, which has an |
| 25 // impact on how canPlayType() behaves. Since Chromium's baselines are | 25 // impact on how canPlayType() behaves. Since Chromium's baselines are |
| 26 // generated against ogg/vorbis/theora content we need to lock down how | 26 // generated against ogg/vorbis/theora content we need to lock down how |
| 27 // canPlayType() behaves when running layout tests. | 27 // canPlayType() behaves when running layout tests. |
| 28 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( | 28 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
| 29 const WebKit::WebString&, const WebKit::WebString&) OVERRIDE; | 29 const WebKit::WebString&, const WebKit::WebString&) OVERRIDE; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 bool IsSupportedMediaMimeType(const std::string& mime_type); | 32 bool IsConditionalMediaMimeType(const std::string& mime_type); |
| 33 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs); | 33 bool HasConditionalMediaCodecs(const std::vector<std::string>& codecs); |
| 34 | 34 |
| 35 typedef base::hash_set<std::string> MimeMappings; | 35 typedef base::hash_set<std::string> MimeMappings; |
| 36 MimeMappings media_map_; | 36 MimeMappings conditional_media_map_; |
| 37 MimeMappings codecs_map_; | 37 MimeMappings conditional_codecs_map_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); | 39 DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ | 42 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ |
| OLD | NEW |