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

Unified Diff: remoting/protocol/client_control_sender.h

Issue 8468022: Refactor channel dispatchers on the host side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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
Index: remoting/protocol/client_control_sender.h
diff --git a/remoting/protocol/client_control_sender.h b/remoting/protocol/client_control_sender.h
deleted file mode 100644
index f563e89cd8a31838ecc50fa7ff6daa94ce7d77ff..0000000000000000000000000000000000000000
--- a/remoting/protocol/client_control_sender.h
+++ /dev/null
@@ -1,57 +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 ClientStub using sockets created from jingle connection.
-// It sends messages through the socket after serializing it.
-//
-// Object of this class can only be created by ConnectionToClient.
-//
-// This class can be used on any thread.
-
-#ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_
-#define REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "remoting/protocol/client_stub.h"
-
-namespace base {
-class MessageLoopProxy;
-} // namespace base
-
-namespace net {
-class Socket;
-} // namespace net
-
-namespace remoting {
-namespace protocol {
-
-class BufferedSocketWriter;
-
-// Implementation of ClientStub that sends commands on a socket. Must
-// be created and closed on the network thread, but can be used on any
-// other thread.
-class ClientControlSender : public ClientStub {
- public:
- explicit ClientControlSender(base::MessageLoopProxy* message_loop,
- net::Socket* socket);
- virtual ~ClientControlSender();
-
- // Stop writing. Must be called on the network thread when the
- // underlying socket is being destroyed.
- void Close();
-
- private:
- // Buffered socket writer holds the serialized message and send it on the
- // right thread.
- scoped_refptr<BufferedSocketWriter> buffered_writer_;
-
- DISALLOW_COPY_AND_ASSIGN(ClientControlSender);
-};
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_
« no previous file with comments | « no previous file | remoting/protocol/client_control_sender.cc » ('j') | remoting/protocol/host_control_dispatcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698