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

Unified Diff: remoting/protocol/rtcp_writer.cc

Issue 7633009: Use MessageLoopProxy for network message loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 | « remoting/protocol/rtcp_writer.h ('k') | remoting/protocol/rtp_video_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/rtcp_writer.cc
diff --git a/remoting/protocol/rtcp_writer.cc b/remoting/protocol/rtcp_writer.cc
index 5ccf74801332a175b12d93f2c6465422c82decb3..f8b8b7637c89e92cbc6648ce2517ca369d2bb61b 100644
--- a/remoting/protocol/rtcp_writer.cc
+++ b/remoting/protocol/rtcp_writer.cc
@@ -13,7 +13,8 @@
namespace remoting {
namespace protocol {
-RtcpWriter::RtcpWriter() {
+RtcpWriter::RtcpWriter(base::MessageLoopProxy* message_loop)
+ : buffered_rtcp_writer_(new BufferedDatagramWriter(message_loop)) {
}
RtcpWriter::~RtcpWriter() {
@@ -26,7 +27,6 @@ void RtcpWriter::Close() {
// Initializes the writer. Must be called on the thread the sockets
// belong to.
void RtcpWriter::Init(net::Socket* socket) {
- buffered_rtcp_writer_ = new BufferedDatagramWriter();
buffered_rtcp_writer_->Init(socket, NULL);
}
« no previous file with comments | « remoting/protocol/rtcp_writer.h ('k') | remoting/protocol/rtp_video_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698