Chromium Code Reviews| 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 "media/base/media_client.h" | 10 #include "media/base/media_client.h" |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 void AddKeySystemsInfoForUMA(std::vector<::media::KeySystemInfoForUMA>* | 25 void AddKeySystemsInfoForUMA(std::vector<::media::KeySystemInfoForUMA>* |
| 26 key_systems_info_for_uma) override; | 26 key_systems_info_for_uma) override; |
| 27 bool IsKeySystemsUpdateNeeded() override; | 27 bool IsKeySystemsUpdateNeeded() override; |
| 28 void AddSupportedKeySystems( | 28 void AddSupportedKeySystems( |
| 29 std::vector<std::unique_ptr<::media::KeySystemProperties>>* | 29 std::vector<std::unique_ptr<::media::KeySystemProperties>>* |
| 30 key_systems_properties) override; | 30 key_systems_properties) override; |
| 31 void RecordRapporURL(const std::string& metric, const GURL& url) override; | 31 void RecordRapporURL(const std::string& metric, const GURL& url) override; |
| 32 bool IsSupportedVideoConfig(::media::VideoCodec codec, | 32 bool IsSupportedVideoConfig(::media::VideoCodec codec, |
| 33 ::media::VideoCodecProfile profile, | 33 ::media::VideoCodecProfile profile, |
| 34 int level) override; | 34 int level) override; |
| 35 bool IsSupportedPassthroughAudio(::media::AudioCodec codec) override; | |
|
DaleCurtis
2016/11/01 23:05:13
IsPassthroughAudioSupported() ?
AndyWu
2016/11/04 18:04:24
Done.
| |
| 35 | 36 |
| 36 private: | 37 private: |
| 37 friend struct base::DefaultLazyInstanceTraits<CastMediaClient>; | 38 friend struct base::DefaultLazyInstanceTraits<CastMediaClient>; |
| 38 | 39 |
| 39 CastMediaClient(); | 40 CastMediaClient(); |
| 40 ~CastMediaClient() override; | 41 ~CastMediaClient() override; |
| 41 | 42 |
| 42 ::media::MediaClient* content_media_client_; | 43 ::media::MediaClient* content_media_client_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(CastMediaClient); | 45 DISALLOW_COPY_AND_ASSIGN(CastMediaClient); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace media | 48 } // namespace media |
| 48 } // namespace chromecast | 49 } // namespace chromecast |
| 49 | 50 |
| 50 #endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ | 51 #endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_ |
| OLD | NEW |