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 CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ |
6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "media/base/media_client.h" | 9 #include "media/base/media_client.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 // RenderMediaClient is purely plumbing to make content embedder customizations | 13 // RenderMediaClient is purely plumbing to make content embedder customizations |
14 // visible to the lower media layer. | 14 // visible to the lower media layer. |
15 class CONTENT_EXPORT RenderMediaClient : public media::MediaClient { | 15 class CONTENT_EXPORT RenderMediaClient : public media::MediaClient { |
16 public: | 16 public: |
17 // Initialize RenderMediaClient and SetMediaClient(). Note that the instance | 17 // Initialize RenderMediaClient and SetMediaClient(). Note that the instance |
18 // is not exposed because no content code needs to directly access it. | 18 // is not exposed because no content code needs to directly access it. |
19 static void Initialize(); | 19 static void Initialize(); |
20 | 20 |
21 // MediaClient implementation. | 21 // MediaClient implementation. |
22 void AddSupportedKeySystems( | 22 void AddSupportedKeySystems( |
23 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) | 23 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) |
24 final; | 24 final; |
25 bool IsKeySystemsUpdateNeeded() final; | 25 bool IsKeySystemsUpdateNeeded() final; |
26 bool IsSupportedAudioConfig(const media::AudioConfig& config) final; | 26 bool IsSupportedAudioConfig(const media::AudioConfig& config) final; |
27 bool IsSupportedVideoConfig(const media::VideoConfig& config) final; | 27 bool IsSupportedVideoConfig(const media::VideoConfig& config) final; |
| 28 bool IsSupportedBitstreamAudio(media::AudioCodec codec) final; |
28 | 29 |
29 private: | 30 private: |
30 RenderMediaClient(); | 31 RenderMediaClient(); |
31 ~RenderMediaClient() override; | 32 ~RenderMediaClient() override; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(RenderMediaClient); | 34 DISALLOW_COPY_AND_ASSIGN(RenderMediaClient); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace content | 37 } // namespace content |
37 | 38 |
38 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ | 39 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_CLIENT_H_ |
OLD | NEW |