OLD | NEW |
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 17 matching lines...) Expand all Loading... |
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 IsSupportedVideoConfig(::media::VideoCodec codec, | 33 bool IsSupportedVideoConfig(::media::VideoCodec codec, |
34 ::media::VideoCodecProfile profile, | 34 ::media::VideoCodecProfile profile, |
35 int level) override; | 35 int level) override; |
36 | 36 |
37 private: | 37 private: |
38 friend struct base::DefaultLazyInstanceTraits<CastMediaClient>; | 38 friend struct base::LazyInstanceTraitsBase<CastMediaClient>; |
39 | 39 |
40 CastMediaClient(::media::MediaClient* content_media_client, | 40 CastMediaClient(::media::MediaClient* content_media_client, |
41 SupportedCodecProfileLevelsMemo* supported_profiles); | 41 SupportedCodecProfileLevelsMemo* supported_profiles); |
42 ~CastMediaClient() override; | 42 ~CastMediaClient() override; |
43 | 43 |
44 ::media::MediaClient* content_media_client_; | 44 ::media::MediaClient* content_media_client_; |
45 SupportedCodecProfileLevelsMemo* supported_profiles_; | 45 SupportedCodecProfileLevelsMemo* supported_profiles_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(CastMediaClient); | 47 DISALLOW_COPY_AND_ASSIGN(CastMediaClient); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace media | 50 } // namespace media |
51 } // namespace chromecast | 51 } // namespace chromecast |
52 | 52 |
53 #endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ | 53 #endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ |
OLD | NEW |