| Index: media/remoting/remoting_renderer_controller.h
|
| diff --git a/media/remoting/remoting_renderer_controller.h b/media/remoting/remoting_renderer_controller.h
|
| index 6779313845faeeb371aebfc85ce82693edabcb2f..6d31513267852361543430c9db7f4381dba1b9bd 100644
|
| --- a/media/remoting/remoting_renderer_controller.h
|
| +++ b/media/remoting/remoting_renderer_controller.h
|
| @@ -41,6 +41,8 @@ class RemotingRendererController final : public RemotingSourceImpl::Client,
|
| void OnRemotePlaybackDisabled(bool disabled) override;
|
|
|
| void SetSwitchRendererCallback(const base::Closure& cb);
|
| + void SetRemoteSinkAvailableChangedCallback(
|
| + const base::Callback<void(bool)>& cb);
|
|
|
| base::WeakPtr<RemotingRendererController> GetWeakPtr() {
|
| return weak_factory_.GetWeakPtr();
|
| @@ -84,6 +86,7 @@ class RemotingRendererController final : public RemotingSourceImpl::Client,
|
|
|
| bool IsVideoCodecSupported();
|
| bool IsAudioCodecSupported();
|
| + bool IsRemoteSinkAvailable();
|
|
|
| // Helper to decide whether to enter or leave Remoting mode.
|
| bool ShouldBeRemoting();
|
| @@ -120,6 +123,9 @@ class RemotingRendererController final : public RemotingSourceImpl::Client,
|
| // The callback to switch the media renderer.
|
| base::Closure switch_renderer_cb_;
|
|
|
| + // Called when remoting sink availability is changed.
|
| + base::Callback<void(bool)> sink_available_changed_cb_;
|
| +
|
| // This is initially the RemotingSourceImpl passed to the ctor, and might be
|
| // replaced with a different instance later if OnSetCdm() is called.
|
| scoped_refptr<RemotingSourceImpl> remoting_source_;
|
|
|