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

Unified Diff: media/remoting/renderer_controller.cc

Issue 2951523002: Media Remoting: Add mojo interfaces between browser and extension. (Closed)
Patch Set: Rebased again. Created 3 years, 5 months 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/mojo/interfaces/remoting_common.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/renderer_controller.cc
diff --git a/media/remoting/renderer_controller.cc b/media/remoting/renderer_controller.cc
index 998fa9923aaadfbcac1586a1a36a85f454b634b7..176c930152bdeb54a0e83fc2817b0fb5863a4a9f 100644
--- a/media/remoting/renderer_controller.cc
+++ b/media/remoting/renderer_controller.cc
@@ -118,6 +118,7 @@ void RendererController::OnBecameDominantVisibleContent(bool is_dominant) {
}
void RendererController::OnSetCdm(CdmContext* cdm_context) {
+ VLOG(2) << __func__;
DCHECK(thread_checker_.CalledOnValidThread());
auto* remoting_cdm_context = RemotingCdmContext::From(cdm_context);
@@ -131,6 +132,7 @@ void RendererController::OnSetCdm(CdmContext* cdm_context) {
}
void RendererController::OnRemotePlaybackDisabled(bool disabled) {
+ VLOG(2) << __func__ << ": disabled = " << disabled;
DCHECK(thread_checker_.CalledOnValidThread());
is_remote_playback_disabled_ = disabled;
@@ -290,6 +292,10 @@ bool RendererController::ShouldBeRemoting() {
case mojom::RemotingSinkCapabilities::RENDERING_ONLY:
case mojom::RemotingSinkCapabilities::CONTENT_DECRYPTION_AND_RENDERING:
break; // The sink is capable of remote rendering.
+ default:
+ // TODO(xjz): Will be changed in a coming CL that passes the receiver's
+ // capabilities.
+ NOTREACHED();
}
if ((!has_audio() && !has_video()) ||
@@ -352,6 +358,7 @@ void RendererController::UpdateAndMaybeSwitch(StartTrigger start_trigger,
}
void RendererController::OnRendererFatalError(StopTrigger stop_trigger) {
+ VLOG(2) << __func__ << ": stop_trigger= " << stop_trigger;
DCHECK(thread_checker_.CalledOnValidThread());
// Do not act on errors caused by things like Mojo pipes being closed during
« no previous file with comments | « media/mojo/interfaces/remoting_common.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698