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

Unified Diff: chrome/renderer/media/cast_transport_ipc.cc

Issue 2048033003: Refactoring: CastTransport InitializeAudio/InitializeVideo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments. Created 4 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 | « chrome/renderer/media/cast_transport_ipc.h ('k') | media/cast/net/cast_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_transport_ipc.cc
diff --git a/chrome/renderer/media/cast_transport_ipc.cc b/chrome/renderer/media/cast_transport_ipc.cc
index ed89d53109d77cceb6cf4d050992f34b9a416a11..b0c1e761e34189325f214e95f3a5a9d0cb82dca0 100644
--- a/chrome/renderer/media/cast_transport_ipc.cc
+++ b/chrome/renderer/media/cast_transport_ipc.cc
@@ -38,20 +38,12 @@ CastTransportIPC::~CastTransportIPC() {
}
}
-void CastTransportIPC::InitializeAudio(
+void CastTransportIPC::InitializeStream(
const media::cast::CastTransportRtpConfig& config,
std::unique_ptr<media::cast::RtcpObserver> rtcp_observer) {
DCHECK(clients_.find(config.ssrc) == clients_.end());
clients_[config.ssrc] = std::move(rtcp_observer);
- Send(new CastHostMsg_InitializeAudio(channel_id_, config));
-}
-
-void CastTransportIPC::InitializeVideo(
- const media::cast::CastTransportRtpConfig& config,
- std::unique_ptr<media::cast::RtcpObserver> rtcp_observer) {
- DCHECK(clients_.find(config.ssrc) == clients_.end());
- clients_[config.ssrc] = std::move(rtcp_observer);
- Send(new CastHostMsg_InitializeVideo(channel_id_, config));
+ Send(new CastHostMsg_InitializeStream(channel_id_, config));
}
void CastTransportIPC::InsertFrame(uint32_t ssrc,
« no previous file with comments | « chrome/renderer/media/cast_transport_ipc.h ('k') | media/cast/net/cast_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698