| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 MEDIA_BASE_MIME_UTIL_INTERNAL_H_ | 5 #ifndef MEDIA_BASE_MIME_UTIL_INTERNAL_H_ |
| 6 #define MEDIA_BASE_MIME_UTIL_INTERNAL_H_ | 6 #define MEDIA_BASE_MIME_UTIL_INTERNAL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // Platform configuration structure. Controls which codecs are supported at | 47 // Platform configuration structure. Controls which codecs are supported at |
| 48 // runtime. Also used by tests to simulate platform differences. | 48 // runtime. Also used by tests to simulate platform differences. |
| 49 struct PlatformInfo { | 49 struct PlatformInfo { |
| 50 bool has_platform_decoders = false; | 50 bool has_platform_decoders = false; |
| 51 | 51 |
| 52 bool has_platform_vp8_decoder = false; | 52 bool has_platform_vp8_decoder = false; |
| 53 bool has_platform_vp9_decoder = false; | 53 bool has_platform_vp9_decoder = false; |
| 54 bool supports_opus = false; | 54 bool supports_opus = false; |
| 55 | |
| 56 bool is_unified_media_pipeline_enabled = false; | |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 // See mime_util.h for more information on these methods. | 57 // See mime_util.h for more information on these methods. |
| 60 bool IsSupportedMediaMimeType(const std::string& mime_type) const; | 58 bool IsSupportedMediaMimeType(const std::string& mime_type) const; |
| 61 void ParseCodecString(const std::string& codecs, | 59 void ParseCodecString(const std::string& codecs, |
| 62 std::vector<std::string>* codecs_out, | 60 std::vector<std::string>* codecs_out, |
| 63 bool strip); | 61 bool strip); |
| 64 SupportsType IsSupportedMediaFormat(const std::string& mime_type, | 62 SupportsType IsSupportedMediaFormat(const std::string& mime_type, |
| 65 const std::vector<std::string>& codecs, | 63 const std::vector<std::string>& codecs, |
| 66 bool is_encrypted) const; | 64 bool is_encrypted) const; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // Lookup table for string compare based string -> Codec mappings. | 168 // Lookup table for string compare based string -> Codec mappings. |
| 171 StringToCodecMappings string_to_codec_map_; | 169 StringToCodecMappings string_to_codec_map_; |
| 172 | 170 |
| 173 DISALLOW_COPY_AND_ASSIGN(MimeUtil); | 171 DISALLOW_COPY_AND_ASSIGN(MimeUtil); |
| 174 }; | 172 }; |
| 175 | 173 |
| 176 } // namespace internal | 174 } // namespace internal |
| 177 } // namespace media | 175 } // namespace media |
| 178 | 176 |
| 179 #endif // MEDIA_BASE_MIME_UTIL_INTERNAL_H_ | 177 #endif // MEDIA_BASE_MIME_UTIL_INTERNAL_H_ |
| OLD | NEW |