diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 23:22:20 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 23:22:20 +0000 |
commit | 3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd (patch) | |
tree | 235aee1f595583297e057b058a29d2ed24d9da92 /remoting/protocol/connection_to_host.h | |
parent | 9db9173baebf27623ce30770696f84a3fec74259 (diff) | |
download | chromium_src-3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd.zip chromium_src-3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd.tar.gz chromium_src-3adf1b2a65a85ff7d4b55cd57a4e400f104d27dd.tar.bz2 |
Add VideoPacket struct for video packets. Refactor Decode interface to use it.
Various cleanups.
BUG=None
TEST=Unittests.
Review URL: http://codereview.chromium.org/4476003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_host.h')
-rw-r--r-- | remoting/protocol/connection_to_host.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h index 39aeecd..e2b0ce2 100644 --- a/remoting/protocol/connection_to_host.h +++ b/remoting/protocol/connection_to_host.h @@ -15,6 +15,7 @@ namespace remoting { namespace protocol { +class SessionConfig; class VideoStub; class ConnectionToHost { @@ -23,11 +24,6 @@ class ConnectionToHost { public: virtual ~HostEventCallback() {} - // Handles an event received by the protocol::ConnectionToHost. Ownership - // of the message is passed to the callee. - virtual void HandleMessage(ConnectionToHost* conn, - ChromotingHostMessage* message) = 0; - // Called when the network connection is opened. virtual void OnConnectionOpened(ConnectionToHost* conn) = 0; @@ -48,6 +44,8 @@ class ConnectionToHost { VideoStub* video_stub) = 0; virtual void Disconnect() = 0; + virtual const SessionConfig* config() = 0; + // Send an input event to the host. virtual void SendEvent(const ChromotingClientMessage& msg) = 0; |