| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_REJECTING_AUTHENTICATOR_FACTORY_H_ | 5 #ifndef REMOTING_PROTOCOL_REJECTING_AUTHENTICATOR_FACTORY_H_ |
| 6 #define REMOTING_PROTOCOL_REJECTING_AUTHENTICATOR_FACTORY_H_ | 6 #define REMOTING_PROTOCOL_REJECTING_AUTHENTICATOR_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "remoting/protocol/authenticator.h" | 11 #include "remoting/protocol/authenticator.h" |
| 11 | 12 |
| 12 namespace remoting { | 13 namespace remoting { |
| 13 namespace protocol { | 14 namespace protocol { |
| 14 | 15 |
| 15 // Authenticator that accepts one message and rejects connection after that. | 16 // Authenticator that accepts one message and rejects connection after that. |
| 16 class RejectingAuthenticator : public Authenticator { | 17 class RejectingAuthenticator : public Authenticator { |
| 17 public: | 18 public: |
| 18 RejectingAuthenticator(RejectionReason rejection_reason); | 19 RejectingAuthenticator(RejectionReason rejection_reason); |
| 19 ~RejectingAuthenticator() override; | 20 ~RejectingAuthenticator() override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 State state_ = WAITING_MESSAGE; | 34 State state_ = WAITING_MESSAGE; |
| 34 std::string auth_key_; | 35 std::string auth_key_; |
| 35 | 36 |
| 36 DISALLOW_COPY_AND_ASSIGN(RejectingAuthenticator); | 37 DISALLOW_COPY_AND_ASSIGN(RejectingAuthenticator); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace protocol | 40 } // namespace protocol |
| 40 } // namespace remoting | 41 } // namespace remoting |
| 41 | 42 |
| 42 #endif // REMOTING_PROTOCOL_REJECTING_AUTHENTICATOR_FACTORY_H_ | 43 #endif // REMOTING_PROTOCOL_REJECTING_AUTHENTICATOR_FACTORY_H_ |
| OLD | NEW |