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

Unified Diff: media/remoting/remoting_cdm_factory.cc

Issue 2643253003: Media Remoting Clean-up: Less-redundant naming, style consistency, etc. (Closed)
Patch Set: REBASE Created 3 years, 11 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/remoting/remoting_cdm_factory.h ('k') | media/remoting/remoting_interstitial_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/remoting_cdm_factory.cc
diff --git a/media/remoting/remoting_cdm_factory.cc b/media/remoting/remoting_cdm_factory.cc
index 114878c3810d3dcfcb364c1e14231f104422422b..5418dcaf69e0813cb1c2b7a4e0d8e9d6a78b237c 100644
--- a/media/remoting/remoting_cdm_factory.cc
+++ b/media/remoting/remoting_cdm_factory.cc
@@ -11,11 +11,12 @@
#include "media/remoting/remoting_cdm.h"
namespace media {
+namespace remoting {
RemotingCdmFactory::RemotingCdmFactory(
std::unique_ptr<CdmFactory> default_cdm_factory,
mojom::RemoterFactory* remoter_factory,
- std::unique_ptr<RemotingSinkObserver> sink_observer)
+ std::unique_ptr<SinkAvailabilityObserver> sink_observer)
: default_cdm_factory_(std::move(default_cdm_factory)),
remoter_factory_(remoter_factory),
sink_observer_(std::move(sink_observer)),
@@ -34,15 +35,14 @@ RemotingCdmFactory::CreateRemotingCdmController() {
mojom::RemoterPtr remoter;
remoter_factory_->Create(std::move(remoting_source),
mojo::MakeRequest(&remoter));
- scoped_refptr<RemotingSourceImpl> remoting_source_impl =
- new RemotingSourceImpl(std::move(remoting_source_request),
- std::move(remoter));
+ scoped_refptr<SharedSession> session =
+ new SharedSession(std::move(remoting_source_request), std::move(remoter));
// HACK: Copy-over the sink availability status from |sink_observer_| before
// the RemotingCdmController would naturally get the notification. This is to
// avoid the possible delay on OnSinkAvailable() call from browser.
if (sink_observer_->is_remote_decryption_available())
- remoting_source_impl->OnSinkAvailable(sink_observer_->sink_capabilities());
- return base::MakeUnique<RemotingCdmController>(remoting_source_impl);
+ session->OnSinkAvailable(sink_observer_->sink_capabilities());
+ return base::MakeUnique<RemotingCdmController>(std::move(session));
}
// TODO(xjz): Replace the callbacks with an interface. http://crbug.com/657940.
@@ -100,4 +100,5 @@ void RemotingCdmFactory::CreateCdm(
}
}
+} // namespace remoting
} // namespace media
« no previous file with comments | « media/remoting/remoting_cdm_factory.h ('k') | media/remoting/remoting_interstitial_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698