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

Unified Diff: media/remoting/remoting_renderer_controller.h

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Fix nits. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/remoting/remoting_renderer_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/remoting/remoting_renderer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698