summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_client.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 02:14:35 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-11 02:14:35 +0000
commit182ec8f2c5515db4677e1ae5e6750ddbeffeeb19 (patch)
tree0d0e316403711beebfeb4fafa001855ae0a86da0 /remoting/protocol/connection_to_client.h
parentde719a407c847bbc4c6884a5f5a07e2327e97233 (diff)
downloadchromium_src-182ec8f2c5515db4677e1ae5e6750ddbeffeeb19.zip
chromium_src-182ec8f2c5515db4677e1ae5e6750ddbeffeeb19.tar.gz
chromium_src-182ec8f2c5515db4677e1ae5e6750ddbeffeeb19.tar.bz2
Remove video_channel() from Session interface
BUG=None TEST=Unittests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96089 Review URL: http://codereview.chromium.org/7508044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_client.h')
-rw-r--r--remoting/protocol/connection_to_client.h31
1 files changed, 20 insertions, 11 deletions
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index 296ce63..76e95de 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -90,16 +90,15 @@ class ConnectionToClient :
// Callback for protocol Session.
void OnSessionStateChange(Session::State state);
- // Stops writing in the channels.
- void CloseChannels();
+ // Callback for VideoReader::Init().
+ void OnVideoInitialized(bool successful);
- // The libjingle channel used to send and receive data from the remote client.
- scoped_ptr<Session> session_;
+ void NotifyIfChannelsReady();
- scoped_ptr<VideoWriter> video_writer_;
+ void CloseOnError();
- // ClientStub for sending messages to the client.
- scoped_ptr<ClientControlSender> client_control_sender_;
+ // Stops writing in the channels.
+ void CloseChannels();
// The message loop that this object runs on.
MessageLoop* loop_;
@@ -107,15 +106,25 @@ class ConnectionToClient :
// Event handler for handling events sent from this object.
EventHandler* handler_;
- // HostStub for receiving control events from the client.
+ // Stubs that are called for incoming messages.
HostStub* host_stub_;
-
- // InputStub for receiving input events from the client.
InputStub* input_stub_;
- // Dispatcher for submitting messages to stubs.
+ // The libjingle channel used to send and receive data from the remote client.
+ scoped_ptr<Session> session_;
+
+ // Writers for outgoing channels.
+ scoped_ptr<VideoWriter> video_writer_;
+ scoped_ptr<ClientControlSender> client_control_sender_;
+
+ // Dispatcher for incoming messages.
scoped_ptr<HostMessageDispatcher> dispatcher_;
+ // State of the channels.
+ bool control_connected_;
+ bool input_connected_;
+ bool video_connected_;
+
DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
};