summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/connection_to_client.h')
-rw-r--r--remoting/protocol/connection_to_client.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index ee8b1d7..769b0a8 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -11,7 +11,6 @@
#include "base/message_loop.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
-#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/message_reader.h"
#include "remoting/protocol/session.h"
#include "remoting/protocol/stream_writer.h"
@@ -20,6 +19,8 @@
namespace remoting {
namespace protocol {
+class ClientStub;
+
// This class represents a remote viewer connected to the chromoting host
// through a libjingle connection. A viewer object is responsible for sending
// screen updates and other messages to the remote viewer. It is also
@@ -63,9 +64,6 @@ class ConnectionToClient :
// Returns the connection in use.
virtual protocol::Session* session();
- // Send information to the client for initialization.
- virtual void SendInitClientMessage(int width, int height);
-
// Send encoded update stream data to the viewer.
virtual void SendVideoPacket(const VideoPacket& packet);
@@ -81,6 +79,9 @@ class ConnectionToClient :
// After this method is called all the send method calls will be ignored.
virtual void Disconnect();
+ // Return pointer to ClientStub.
+ virtual ClientStub* client_stub() { return client_stub_.get(); }
+
protected:
// Protected constructor used by unit test.
ConnectionToClient();
@@ -103,10 +104,12 @@ class ConnectionToClient :
// The libjingle channel used to send and receive data from the remote client.
scoped_refptr<protocol::Session> session_;
- ControlStreamWriter control_writer_;
MessageReader event_reader_;
scoped_ptr<VideoWriter> video_writer_;
+ // ClientStub for sending messages to the client.
+ scoped_ptr<ClientStub> client_stub_;
+
// The message loop that this object runs on.
MessageLoop* loop_;