| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
| 6 #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "remoting/protocol/authenticator.h" | 10 #include "remoting/protocol/authenticator.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ACCEPT, | 56 ACCEPT, |
| 57 REJECT, | 57 REJECT, |
| 58 REJECT_CHANNEL | 58 REJECT_CHANNEL |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 FakeAuthenticator(Type type, int round_trips, Action action, bool async); | 61 FakeAuthenticator(Type type, int round_trips, Action action, bool async); |
| 62 virtual ~FakeAuthenticator(); | 62 virtual ~FakeAuthenticator(); |
| 63 | 63 |
| 64 // Authenticator interface. | 64 // Authenticator interface. |
| 65 virtual State state() const OVERRIDE; | 65 virtual State state() const OVERRIDE; |
| 66 virtual bool has_auth_started() const OVERRIDE; |
| 66 virtual RejectionReason rejection_reason() const OVERRIDE; | 67 virtual RejectionReason rejection_reason() const OVERRIDE; |
| 67 virtual void ProcessMessage(const buzz::XmlElement* message, | 68 virtual void ProcessMessage(const buzz::XmlElement* message, |
| 68 const base::Closure& resume_callback) OVERRIDE; | 69 const base::Closure& resume_callback) OVERRIDE; |
| 69 virtual scoped_ptr<buzz::XmlElement> GetNextMessage() OVERRIDE; | 70 virtual scoped_ptr<buzz::XmlElement> GetNextMessage() OVERRIDE; |
| 70 virtual scoped_ptr<ChannelAuthenticator> | 71 virtual scoped_ptr<ChannelAuthenticator> |
| 71 CreateChannelAuthenticator() const OVERRIDE; | 72 CreateChannelAuthenticator() const OVERRIDE; |
| 72 | 73 |
| 73 protected: | 74 protected: |
| 74 Type type_; | 75 Type type_; |
| 75 int round_trips_; | 76 int round_trips_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 99 FakeAuthenticator::Action action_; | 100 FakeAuthenticator::Action action_; |
| 100 bool async_; | 101 bool async_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); | 103 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace protocol | 106 } // namespace protocol |
| 106 } // namespace remoting | 107 } // namespace remoting |
| 107 | 108 |
| 108 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ | 109 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
| OLD | NEW |