| 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_BROWSER_MEDIA_MEDIA_CAPS_IMPL_H_ | 5 #ifndef CHROMECAST_BROWSER_MEDIA_MEDIA_CAPS_IMPL_H_ |
| 6 #define CHROMECAST_BROWSER_MEDIA_MEDIA_CAPS_IMPL_H_ | 6 #define CHROMECAST_BROWSER_MEDIA_MEDIA_CAPS_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chromecast/common/media/media_caps.mojom.h" | 11 #include "chromecast/common/media/media_caps.mojom.h" |
| 12 #include "mojo/public/cpp/bindings/binding_set.h" | 12 #include "mojo/public/cpp/bindings/binding_set.h" |
| 13 #include "mojo/public/cpp/bindings/interface_ptr_set.h" | 13 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
| 14 #include "ui/gfx/geometry/size.h" | 14 #include "ui/gfx/geometry/size.h" |
| 15 | 15 |
| 16 namespace service_manager { |
| 17 struct BindSourceInfo; |
| 18 } |
| 19 |
| 16 namespace chromecast { | 20 namespace chromecast { |
| 17 namespace media { | 21 namespace media { |
| 18 | 22 |
| 19 struct CodecProfileLevel; | 23 struct CodecProfileLevel; |
| 20 | 24 |
| 21 class MediaCapsImpl : public mojom::MediaCaps { | 25 class MediaCapsImpl : public mojom::MediaCaps { |
| 22 public: | 26 public: |
| 23 MediaCapsImpl(); | 27 MediaCapsImpl(); |
| 24 ~MediaCapsImpl() override; | 28 ~MediaCapsImpl() override; |
| 25 | 29 |
| 26 void Initialize(); | 30 void Initialize(); |
| 27 void AddBinding(mojom::MediaCapsRequest request); | 31 void AddBinding(const service_manager::BindSourceInfo& source_info, |
| 32 mojom::MediaCapsRequest request); |
| 28 | 33 |
| 29 void SetSupportedHdmiSinkCodecs(unsigned int supported_codecs_bitmask); | 34 void SetSupportedHdmiSinkCodecs(unsigned int supported_codecs_bitmask); |
| 30 void ScreenResolutionChanged(unsigned width, unsigned height); | 35 void ScreenResolutionChanged(unsigned width, unsigned height); |
| 31 void ScreenInfoChanged(int hdcp_version, | 36 void ScreenInfoChanged(int hdcp_version, |
| 32 int supported_eotfs, | 37 int supported_eotfs, |
| 33 int dolby_vision_flags, | 38 int dolby_vision_flags, |
| 34 int screen_width_mm, | 39 int screen_width_mm, |
| 35 int screen_height_mm, | 40 int screen_height_mm, |
| 36 bool current_mode_supports_hdr, | 41 bool current_mode_supports_hdr, |
| 37 bool current_mode_supports_dv); | 42 bool current_mode_supports_dv); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 55 mojo::InterfacePtrSet<mojom::MediaCapsObserver> observers_; | 60 mojo::InterfacePtrSet<mojom::MediaCapsObserver> observers_; |
| 56 mojo::BindingSet<mojom::MediaCaps> bindings_; | 61 mojo::BindingSet<mojom::MediaCaps> bindings_; |
| 57 | 62 |
| 58 DISALLOW_COPY_AND_ASSIGN(MediaCapsImpl); | 63 DISALLOW_COPY_AND_ASSIGN(MediaCapsImpl); |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 } // namespace media | 66 } // namespace media |
| 62 } // namespace chromecast | 67 } // namespace chromecast |
| 63 | 68 |
| 64 #endif // CHROMECAST_BROWSER_MEDIA_MEDIA_CAPS_IMPL_H_ | 69 #endif // CHROMECAST_BROWSER_MEDIA_MEDIA_CAPS_IMPL_H_ |
| OLD | NEW |