Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: media/base/media_client.h

Issue 2914273004: Add IsSupportedBitstreamAudioCodec() function in MediaClient. (Closed)
Patch Set: Fix one typo Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/key_systems_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/base/key_systems_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698