Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / remoting / protocol / connection_to_client.h
index 9865307..8fb9a8b 100644 (file)
 #include "base/threading/non_thread_safe.h"
 #include "remoting/protocol/audio_writer.h"
 #include "remoting/protocol/session.h"
-#include "remoting/protocol/video_writer.h"
-
-namespace net {
-class IPEndPoint;
-}  // namespace net
 
 namespace remoting {
 namespace protocol {
 
 class ClientStub;
 class ClipboardStub;
-class HostStub;
-class InputStub;
 class HostControlDispatcher;
 class HostEventDispatcher;
+class HostStub;
+class HostVideoDispatcher;
+class InputStub;
+class VideoStub;
 
 // This class represents a remote viewer connection to the chromoting
 // host. It sets up all protocol channels and connects them to the
@@ -38,6 +35,9 @@ class ConnectionToClient : public base::NonThreadSafe,
  public:
   class EventHandler {
    public:
+    // Called when the network connection is authenticating
+    virtual void OnConnectionAuthenticating(ConnectionToClient* connection) = 0;
+
     // Called when the network connection is authenticated.
     virtual void OnConnectionAuthenticated(ConnectionToClient* connection) = 0;
 
@@ -129,7 +129,7 @@ class ConnectionToClient : public base::NonThreadSafe,
 
   scoped_ptr<HostControlDispatcher> control_dispatcher_;
   scoped_ptr<HostEventDispatcher> event_dispatcher_;
-  scoped_ptr<VideoWriter> video_writer_;
+  scoped_ptr<HostVideoDispatcher> video_dispatcher_;
   scoped_ptr<AudioWriter> audio_writer_;
 
   DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);