| 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_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ | 5 #ifndef WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ |
| 6 #define WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ | 6 #define WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
| 13 #include "webkit/glue/simple_webmimeregistry_impl.h" | 13 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 14 | 14 |
| 15 class TestShellWebMimeRegistryImpl | 15 class TestShellWebMimeRegistryImpl |
| 16 : public webkit_glue::SimpleWebMimeRegistryImpl { | 16 : public webkit_glue::SimpleWebMimeRegistryImpl { |
| 17 public: | 17 public: |
| 18 TestShellWebMimeRegistryImpl(); | 18 TestShellWebMimeRegistryImpl(); |
| 19 virtual ~TestShellWebMimeRegistryImpl(); | 19 virtual ~TestShellWebMimeRegistryImpl(); |
| 20 | 20 |
| 21 // Override to force that we only support types and codecs that are supported | 21 // Override to force that we only support types and codecs that are supported |
| 22 // by all variations of Chromium. | 22 // by all variations of Chromium. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 bool IsBlacklistedMediaMimeType(const std::string& mime_type); | 36 bool IsBlacklistedMediaMimeType(const std::string& mime_type); |
| 37 bool HasBlacklistedMediaCodecs(const std::vector<std::string>& codecs); | 37 bool HasBlacklistedMediaCodecs(const std::vector<std::string>& codecs); |
| 38 | 38 |
| 39 std::vector<std::string> blacklisted_media_types_; | 39 std::vector<std::string> blacklisted_media_types_; |
| 40 std::vector<std::string> blacklisted_media_codecs_; | 40 std::vector<std::string> blacklisted_media_codecs_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); | 42 DISALLOW_COPY_AND_ASSIGN(TestShellWebMimeRegistryImpl); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ | 45 #endif // WEBKIT_SUPPORT_TEST_SHELL_WEBMIMEREGISTRY_IMPL_H_ |
| OLD | NEW |