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: remoting/protocol/rtcp_writer.cc

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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/protocol_test_client.cc ('k') | remoting/protocol/rtp_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 f8b8b7637c89e92cbc6648ce2517ca369d2bb61b..f039ec500673d43dda6c25a35a35e1a684aaff9b 100644
--- a/remoting/protocol/rtcp_writer.cc
+++ b/remoting/protocol/rtcp_writer.cc
@@ -27,7 +27,8 @@ 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_->Init(socket, NULL);
+ buffered_rtcp_writer_->Init(
+ socket, BufferedSocketWriter::WriteFailedCallback());
}
void RtcpWriter::SendReport(const RtcpReceiverReport& report) {
@@ -37,7 +38,7 @@ void RtcpWriter::SendReport(const RtcpReceiverReport& report) {
PackRtcpReceiverReport(report, reinterpret_cast<uint8*>(buffer->data()),
size);
- buffered_rtcp_writer_->Write(buffer, NULL);
+ buffered_rtcp_writer_->Write(buffer, base::Closure());
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/protocol_test_client.cc ('k') | remoting/protocol/rtp_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698