OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MEDIA_CLIENT_H_ | 5 #ifndef MEDIA_BASE_MEDIA_CLIENT_H_ |
6 #define MEDIA_BASE_MEDIA_CLIENT_H_ | 6 #define MEDIA_BASE_MEDIA_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "media/base/audio_codecs.h" |
12 #include "media/base/decode_capabilities.h" | 13 #include "media/base/decode_capabilities.h" |
13 #include "media/base/key_system_properties.h" | 14 #include "media/base/key_system_properties.h" |
14 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
15 #include "media/base/video_codecs.h" | 16 #include "media/base/video_codecs.h" |
16 #include "media/base/video_color_space.h" | 17 #include "media/base/video_color_space.h" |
17 #include "ui/gfx/color_space.h" | 18 #include "ui/gfx/color_space.h" |
18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
19 | 20 |
20 namespace media { | 21 namespace media { |
21 | 22 |
(...skipping 23 matching lines...) Expand all Loading... |
45 // Returns whether client key systems properties should be updated. | 46 // Returns whether client key systems properties should be updated. |
46 // TODO(chcunningham): Refactor this to a proper change "observer" API that is | 47 // TODO(chcunningham): Refactor this to a proper change "observer" API that is |
47 // less fragile (don't assume AddSupportedKeySystems has just one caller). | 48 // less fragile (don't assume AddSupportedKeySystems has just one caller). |
48 virtual bool IsKeySystemsUpdateNeeded() = 0; | 49 virtual bool IsKeySystemsUpdateNeeded() = 0; |
49 | 50 |
50 // Returns true if the given audio config is supported. | 51 // Returns true if the given audio config is supported. |
51 virtual bool IsSupportedAudioConfig(const AudioConfig& config) = 0; | 52 virtual bool IsSupportedAudioConfig(const AudioConfig& config) = 0; |
52 | 53 |
53 // Returns true if the given video config is supported. | 54 // Returns true if the given video config is supported. |
54 virtual bool IsSupportedVideoConfig(const VideoConfig& config) = 0; | 55 virtual bool IsSupportedVideoConfig(const VideoConfig& config) = 0; |
| 56 |
| 57 // Returns true if the compressed audio |codec| format is supported by the |
| 58 // audio sink. |
| 59 virtual bool IsSupportedBitstreamAudioCodec(AudioCodec codec) = 0; |
55 }; | 60 }; |
56 | 61 |
57 } // namespace media | 62 } // namespace media |
58 | 63 |
59 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ | 64 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ |
OLD | NEW |