diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 08:02:27 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 08:02:27 +0000 |
commit | 6eeb33f99e9d3b8dfb06fd006a809b66b73e3a62 (patch) | |
tree | 6bf4109928227b9b99d15a8366ac86d07228f627 /remoting/client/chromoting_client.h | |
parent | 257b1a074158f98f2f26636bd5a9d1a1c0463724 (diff) | |
download | chromium_src-6eeb33f99e9d3b8dfb06fd006a809b66b73e3a62.zip chromium_src-6eeb33f99e9d3b8dfb06fd006a809b66b73e3a62.tar.gz chromium_src-6eeb33f99e9d3b8dfb06fd006a809b66b73e3a62.tar.bz2 |
Do not use host_stub() before it was created.
This CL splits conntection initialization in ChromotingClient in two steps:
- ChromotingClient::OnAuthenticated() is called before any channels are created. Any listeners should be created at this point.
- ChromotingClient::OnChannelsConnected() is called after the channels have been created, so messages can be sent at this point.
BUG=235155
Review URL: https://chromiumcodereview.appspot.com/14457005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/chromoting_client.h')
-rw-r--r-- | remoting/client/chromoting_client.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/remoting/client/chromoting_client.h b/remoting/client/chromoting_client.h index a04606e..d46743c 100644 --- a/remoting/client/chromoting_client.h +++ b/remoting/client/chromoting_client.h @@ -80,8 +80,11 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, virtual void OnConnectionReady(bool ready) OVERRIDE; private: - // Initializes connection. - void Initialize(); + // Called when the connection is authenticated. + void OnAuthenticated(); + + // Called when all channels are connected. + void OnChannelsConnected(); void OnDisconnected(const base::Closure& shutdown_task); |