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

Side by Side Diff: chromecast/common/media/cast_media_client.h

Issue 2783963002: Add IsSupportedAudioConfig in MediaClient (Closed)
Patch Set: 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ 5 #ifndef CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_
6 #define CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ 6 #define CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_
7 7
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chromecast/media/base/supported_codec_profile_levels_memo.h" 10 #include "chromecast/media/base/supported_codec_profile_levels_memo.h"
(...skipping 12 matching lines...) Expand all
23 static void Initialize(SupportedCodecProfileLevelsMemo* memo); 23 static void Initialize(SupportedCodecProfileLevelsMemo* memo);
24 24
25 // MediaClient implementation 25 // MediaClient implementation
26 void AddKeySystemsInfoForUMA(std::vector<::media::KeySystemInfoForUMA>* 26 void AddKeySystemsInfoForUMA(std::vector<::media::KeySystemInfoForUMA>*
27 key_systems_info_for_uma) override; 27 key_systems_info_for_uma) override;
28 bool IsKeySystemsUpdateNeeded() override; 28 bool IsKeySystemsUpdateNeeded() override;
29 void AddSupportedKeySystems( 29 void AddSupportedKeySystems(
30 std::vector<std::unique_ptr<::media::KeySystemProperties>>* 30 std::vector<std::unique_ptr<::media::KeySystemProperties>>*
31 key_systems_properties) override; 31 key_systems_properties) override;
32 void RecordRapporURL(const std::string& metric, const GURL& url) override; 32 void RecordRapporURL(const std::string& metric, const GURL& url) override;
33 bool IsSupportedAudioConfig(const ::media::AudioConfig& config) override;
33 bool IsSupportedVideoConfig(const ::media::VideoConfig& config) override; 34 bool IsSupportedVideoConfig(const ::media::VideoConfig& config) override;
34 35
35 private: 36 private:
36 friend struct base::LazyInstanceTraitsBase<CastMediaClient>; 37 friend struct base::LazyInstanceTraitsBase<CastMediaClient>;
37 38
38 CastMediaClient(::media::MediaClient* content_media_client, 39 CastMediaClient(::media::MediaClient* content_media_client,
39 SupportedCodecProfileLevelsMemo* supported_profiles); 40 SupportedCodecProfileLevelsMemo* supported_profiles);
40 ~CastMediaClient() override; 41 ~CastMediaClient() override;
41 42
42 ::media::MediaClient* content_media_client_; 43 ::media::MediaClient* content_media_client_;
43 SupportedCodecProfileLevelsMemo* supported_profiles_; 44 SupportedCodecProfileLevelsMemo* supported_profiles_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(CastMediaClient); 46 DISALLOW_COPY_AND_ASSIGN(CastMediaClient);
46 }; 47 };
47 48
48 } // namespace media 49 } // namespace media
49 } // namespace chromecast 50 } // namespace chromecast
50 51
51 #endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ 52 #endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/common/media/cast_media_client.cc » ('j') | chromecast/common/media/cast_media_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698