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

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

Issue 2783963002: Add IsSupportedAudioConfig in MediaClient (Closed)
Patch Set: Update MediaCanPlayTypeTest Created 3 years, 8 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Adds properties for supported key systems. 63 // Adds properties for supported key systems.
64 virtual void AddSupportedKeySystems( 64 virtual void AddSupportedKeySystems(
65 std::vector<std::unique_ptr<KeySystemProperties>>* 65 std::vector<std::unique_ptr<KeySystemProperties>>*
66 key_systems_properties) = 0; 66 key_systems_properties) = 0;
67 67
68 // Records a domain and registry of a url to a Rappor privacy-preserving 68 // Records a domain and registry of a url to a Rappor privacy-preserving
69 // metric. See: https://www.chromium.org/developers/design-documents/rappor 69 // metric. See: https://www.chromium.org/developers/design-documents/rappor
70 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0; 70 virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0;
71 71
72 // Returns true if the given audio config is supported.
73 virtual bool IsSupportedAudioConfig(const AudioConfig& config) = 0;
74
72 // Returns true if the given combination of video codec, profile and level is 75 // Returns true if the given combination of video codec, profile and level is
73 // supported. The |level| value is codec-specific. 76 // supported. The |level| value is codec-specific.
74 virtual bool IsSupportedVideoConfig(const VideoConfig& config) = 0; 77 virtual bool IsSupportedVideoConfig(const VideoConfig& config) = 0;
75 }; 78 };
76 79
77 } // namespace media 80 } // namespace media
78 81
79 #endif // MEDIA_BASE_MEDIA_CLIENT_H_ 82 #endif // MEDIA_BASE_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698