diff options
Diffstat (limited to 'remoting/host/session_manager.h')
-rw-r--r-- | remoting/host/session_manager.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/remoting/host/session_manager.h b/remoting/host/session_manager.h index fedfc4f..46e02df 100644 --- a/remoting/host/session_manager.h +++ b/remoting/host/session_manager.h @@ -14,7 +14,8 @@ #include "base/time.h" #include "remoting/base/encoder.h" #include "remoting/host/capturer.h" -#include "remoting/proto/video.pb.h" +// TODO(hclam): This class should not know the internal protobuf types. +#include "remoting/proto/internal.pb.h" namespace remoting { @@ -125,7 +126,8 @@ class SessionManager : public base::RefCountedThreadSafe<SessionManager> { void DoRateControl(); // DoSendUpdate takes ownership of header and is responsible for deleting it. - void DoSendVideoPacket(VideoPacket* packet); + void DoSendUpdate(ChromotingHostMessage* message, + Encoder::EncodingState state); void DoSendInit(scoped_refptr<ClientConnection> client, int width, int height); @@ -139,7 +141,8 @@ class SessionManager : public base::RefCountedThreadSafe<SessionManager> { // EncodeDataAvailableTask takes ownership of header and is responsible for // deleting it. - void EncodeDataAvailableTask(VideoPacket* packet); + void EncodeDataAvailableTask(ChromotingHostMessage* message, + Encoder::EncodingState state); // Message loops used by this class. MessageLoop* capture_loop_; |