diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-24 20:50:27 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-24 20:50:27 +0000 |
commit | 6bad55cb026fd7e753629a79946e3e6c205d74d7 (patch) | |
tree | 9457284a83cb9b6ae3bd671099793465fc0f0bc3 /remoting/protocol/fake_authenticator.h | |
parent | 511754da96f03f48d1c9a30c9d1622d9f9da2525 (diff) | |
download | chromium_src-6bad55cb026fd7e753629a79946e3e6c205d74d7.zip chromium_src-6bad55cb026fd7e753629a79946e3e6c205d74d7.tar.gz chromium_src-6bad55cb026fd7e753629a79946e3e6c205d74d7.tar.bz2 |
Change Authenticator interface to properly handle protocol errors.
Previously all error of the auth protocol were interpreted as invalid
credentials even when the error was due to some other reason, e.g.
incompatible protocol.
BUG=105214
Review URL: http://codereview.chromium.org/9270052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/fake_authenticator.h')
-rw-r--r-- | remoting/protocol/fake_authenticator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/protocol/fake_authenticator.h b/remoting/protocol/fake_authenticator.h index a1a6db5..d9750a5 100644 --- a/remoting/protocol/fake_authenticator.h +++ b/remoting/protocol/fake_authenticator.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -53,6 +53,7 @@ class FakeAuthenticator : public Authenticator { // Authenticator interface. virtual State state() const OVERRIDE; + virtual RejectionReason rejection_reason() const OVERRIDE; virtual void ProcessMessage(const buzz::XmlElement* message) OVERRIDE; virtual scoped_ptr<buzz::XmlElement> GetNextMessage() OVERRIDE; virtual scoped_ptr<ChannelAuthenticator> |