diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-13 02:49:18 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-13 02:49:18 +0000 |
commit | fa359e46c5c44ecdea2b934ce2c07b918b8ac086 (patch) | |
tree | 91a058393af855bee7faa41176a91551458add34 /remoting/protocol | |
parent | eb35a6f50ee6ebe291a9efc94ae4a600bb4b9d59 (diff) | |
download | chromium_src-fa359e46c5c44ecdea2b934ce2c07b918b8ac086.zip chromium_src-fa359e46c5c44ecdea2b934ce2c07b918b8ac086.tar.gz chromium_src-fa359e46c5c44ecdea2b934ce2c07b918b8ac086.tar.bz2 |
Call ChromotingClient::Initialize() before any packets can arrive.
This CL introduces new ConnectionToHost::State::AUTHENTICATED that ChromotingClient uses as a signal to initialize video and audio decoders. The new state is reported as 'CONNECTED' to the webapp to avoid changing the interface between the plugin and webapp.
BUG=229927
Review URL: https://chromiumcodereview.appspot.com/14109011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/connection_to_host.cc | 2 | ||||
-rw-r--r-- | remoting/protocol/connection_to_host.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc index 105ccba..f778bb0 100644 --- a/remoting/protocol/connection_to_host.cc +++ b/remoting/protocol/connection_to_host.cc @@ -192,6 +192,8 @@ void ConnectionToHost::OnSessionStateChange( base::Unretained(this))); audio_reader_->set_audio_stub(audio_stub_); } + + SetState(AUTHENTICATED, OK); break; case Session::CLOSED: diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h index 25d6d89..1c93b5d 100644 --- a/remoting/protocol/connection_to_host.h +++ b/remoting/protocol/connection_to_host.h @@ -54,6 +54,7 @@ class ConnectionToHost : public SignalStrategy::Listener, enum State { INITIALIZING, CONNECTING, + AUTHENTICATED, CONNECTED, FAILED, CLOSED, |