Index: remoting/protocol/input_sender.h |
diff --git a/remoting/protocol/input_sender.h b/remoting/protocol/input_sender.h |
deleted file mode 100644 |
index 1733b11b520214ffd0a9c02416da60ff49768266..0000000000000000000000000000000000000000 |
--- a/remoting/protocol/input_sender.h |
+++ /dev/null |
@@ -1,67 +0,0 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-// Implementation of InputStub using sockets created from jingle connection. |
-// It sends messages through the socket after serializing it. |
-// |
-// Object of this class can only be created by ConnectionToHost. |
-// |
-// This class can be used on any thread. An object of socket is given to this |
-// class, its lifetime is strictly greater than this object. |
- |
-#ifndef REMOTING_PROTOCOL_INPUT_SENDER_H_ |
-#define REMOTING_PROTOCOL_INPUT_SENDER_H_ |
- |
-#include "base/basictypes.h" |
-#include "base/memory/ref_counted.h" |
-#include "remoting/protocol/input_stub.h" |
- |
-class Task; |
- |
-namespace base { |
-class MessageLoopProxy; |
-} // namespace base |
- |
-namespace net { |
-class Socket; |
-} // namespace net |
- |
-namespace remoting { |
-namespace protocol { |
- |
-class BufferedSocketWriter; |
- |
-// Implementation of InputStub that sends messages on a socket. Must |
-// be created and closed on the network thread, but can be used on any |
-// other thread. |
-class InputSender : public InputStub { |
- public: |
- // Create a stub using a socket. |
- explicit InputSender(base::MessageLoopProxy* message_loop, |
- net::Socket* socket); |
- virtual ~InputSender(); |
- |
- // InputStub implementation. |
- virtual void InjectKeyEvent(const KeyEvent& event); |
- virtual void InjectMouseEvent(const MouseEvent& event); |
- |
- // Stop writing. Must be called on the network thread when the |
- // underlying socket is being destroyed. |
- void Close(); |
- |
- private: |
- // Helper method to run the task and delete it afterwards. |
- void RunTask(Task* done); |
- |
- // Buffered socket writer holds the serialized message and sends it on the |
- // right thread. |
- scoped_refptr<BufferedSocketWriter> buffered_writer_; |
- |
- DISALLOW_COPY_AND_ASSIGN(InputSender); |
-}; |
- |
-} // namespace protocol |
-} // namespace remoting |
- |
-#endif // REMOTING_PROTOCOL_INPUT_SENDER_H_ |