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

Unified Diff: remoting/protocol/input_sender.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/host_stub.h ('k') | remoting/protocol/jingle_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/input_sender.cc
diff --git a/remoting/protocol/input_sender.cc b/remoting/protocol/input_sender.cc
index b02956a68fd406ed877e0f47723aaca8c0edd368..0ab2923bd0dc2bef515f6aeb8add96ec52495063 100644
--- a/remoting/protocol/input_sender.cc
+++ b/remoting/protocol/input_sender.cc
@@ -22,7 +22,7 @@ InputSender::InputSender(base::MessageLoopProxy* message_loop,
: buffered_writer_(new BufferedSocketWriter(message_loop)) {
// TODO(garykac) Set write failed callback.
DCHECK(socket);
- buffered_writer_->Init(socket, NULL);
+ buffered_writer_->Init(socket, BufferedSocketWriter::WriteFailedCallback());
}
InputSender::~InputSender() {
@@ -32,14 +32,14 @@ void InputSender::InjectKeyEvent(const KeyEvent& event) {
EventMessage message;
message.set_sequence_number(base::Time::Now().ToInternalValue());
message.mutable_key_event()->CopyFrom(event);
- buffered_writer_->Write(SerializeAndFrameMessage(message), NULL);
+ buffered_writer_->Write(SerializeAndFrameMessage(message), base::Closure());
}
void InputSender::InjectMouseEvent(const MouseEvent& event) {
EventMessage message;
message.set_sequence_number(base::Time::Now().ToInternalValue());
message.mutable_mouse_event()->CopyFrom(event);
- buffered_writer_->Write(SerializeAndFrameMessage(message), NULL);
+ buffered_writer_->Write(SerializeAndFrameMessage(message), base::Closure());
}
void InputSender::Close() {
« no previous file with comments | « remoting/protocol/host_stub.h ('k') | remoting/protocol/jingle_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698