summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-27 01:01:50 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-27 01:01:50 +0000
commitcba6f81b198a4781512a0b91ca41f24782ebbb16 (patch)
tree6962eabf5956c6983cfd311573dd76bd7344a4ed /remoting/host/chromoting_host.cc
parent93f8b568bc6d79505ea087bb6eb8b4a2a01a2a1f (diff)
downloadchromium_src-cba6f81b198a4781512a0b91ca41f24782ebbb16.zip
chromium_src-cba6f81b198a4781512a0b91ca41f24782ebbb16.tar.gz
chromium_src-cba6f81b198a4781512a0b91ca41f24782ebbb16.tar.bz2
Cleanups in the host authentication state handling.
- Previously ChromotingHost couldn't destinguish client authentication event from success full client connection. Now ClientSession calls different callbacks for these two events. - All failed unauthenticated connections are now treated as connection failures. - Host now specifies rejection reason for each rejected session. BUG=113273 Review URL: https://chromiumcodereview.appspot.com/9836063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 19f9d2c..63216a4 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -137,6 +137,12 @@ void ChromotingHost::SetAuthenticatorFactory(
void ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
DCHECK(context_->network_message_loop()->BelongsToCurrentThread());
+ // TODO(sergeyu): Update BackoffEntry here.
+}
+
+void ChromotingHost::OnSessionChannelsConnected(ClientSession* client) {
+ DCHECK(context_->network_message_loop()->BelongsToCurrentThread());
+
// Disconnect all other clients.
// Iterate over a copy of the list of clients, to avoid mutating the list
// while iterating over it.