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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "media/base/audio_codecs.h" |
11 #include "media/base/key_system_properties.h" | 12 #include "media/base/key_system_properties.h" |
12 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
13 #include "media/base/video_codecs.h" | 14 #include "media/base/video_codecs.h" |
14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 | 18 |
18 class MediaClient; | 19 class MediaClient; |
19 | 20 |
20 // Setter for the client. If a customized client is needed, it should be set | 21 // Setter for the client. If a customized client is needed, it should be set |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 // Records a domain and registry of a url to a Rappor privacy-preserving | 66 // Records a domain and registry of a url to a Rappor privacy-preserving |
66 // metric. See: https://www.chromium.org/developers/design-documents/rappor | 67 // metric. See: https://www.chromium.org/developers/design-documents/rappor |
67 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; | 68 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; |
68 | 69 |
69 // Returns true if the given combination of video codec, profile and level is | 70 // Returns true if the given combination of video codec, profile and level is |
70 // supported. The |level| value is codec-specific. | 71 // supported. The |level| value is codec-specific. |
71 virtual bool IsSupportedVideoConfig(VideoCodec codec, | 72 virtual bool IsSupportedVideoConfig(VideoCodec codec, |
72 VideoCodecProfile profile, | 73 VideoCodecProfile profile, |
73 int level) = 0; | 74 int level) = 0; |
| 75 |
| 76 // Returns true if the compressed audio |codec| format is supported by the |
| 77 // audio sink. |
| 78 virtual bool IsSupportedPassthroughAudio(AudioCodec codec) = 0; |
74 }; | 79 }; |
75 | 80 |
76 } // namespace media | 81 } // namespace media |
77 | 82 |
78 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ | 83 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ |
OLD | NEW |