Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_ | |
| 6 #define REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "remoting/protocol/authenticator.h" | |
| 11 | |
| 12 namespace remoting { | |
| 13 namespace protocol { | |
| 14 | |
| 15 class SimpleClientAuthenticator : public Authenticator { | |
|
Wez
2011/11/22 22:58:05
More descriptive name?
Wez
2011/11/22 22:58:05
Simple is not a very descriptive name. :(
Sergey Ulanov
2011/11/23 02:02:25
Done.
Sergey Ulanov
2011/11/23 02:02:25
Done.
| |
| 16 public: | |
| 17 explicit SimpleClientAuthenticator(const std::string& local_jid, | |
| 18 const std::string& shared_secret); | |
| 19 virtual ~SimpleClientAuthenticator(); | |
| 20 | |
| 21 // Authenticator implementation. | |
|
Wez
2011/11/22 22:58:05
nit: implementation -> interface?
Sergey Ulanov
2011/11/23 02:02:25
Done.
| |
| 22 virtual State state() const OVERRIDE; | |
| 23 virtual void ProcessMessage(const buzz::XmlElement* message) OVERRIDE; | |
| 24 virtual buzz::XmlElement* GetNextMessage() OVERRIDE; | |
| 25 virtual ChannelAuthenticator* CreateChannelAuthenticator() const OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 std::string local_jid_; | |
| 29 std::string shared_secret_; | |
| 30 std::string remote_cert_; | |
| 31 State state_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(SimpleClientAuthenticator); | |
| 34 }; | |
| 35 | |
| 36 } // namespace protocol | |
| 37 } // namespace remoting | |
| 38 | |
| 39 #endif // REMOTING_PROTOCOL_SIMPLE_CLIENT_AUTHENTICATOR_H_ | |
| OLD | NEW |