| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "remoting/protocol/rejecting_authenticator.h" | 5 #include "remoting/protocol/rejecting_authenticator.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "remoting/protocol/channel_authenticator.h" | 9 #include "remoting/protocol/channel_authenticator.h" |
| 10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 void RejectingAuthenticator::ProcessMessage( | 34 void RejectingAuthenticator::ProcessMessage( |
| 35 const buzz::XmlElement* message, | 35 const buzz::XmlElement* message, |
| 36 const base::Closure& resume_callback) { | 36 const base::Closure& resume_callback) { |
| 37 DCHECK_EQ(state_, WAITING_MESSAGE); | 37 DCHECK_EQ(state_, WAITING_MESSAGE); |
| 38 state_ = REJECTED; | 38 state_ = REJECTED; |
| 39 resume_callback.Run(); | 39 resume_callback.Run(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 scoped_ptr<buzz::XmlElement> RejectingAuthenticator::GetNextMessage() { | 42 std::unique_ptr<buzz::XmlElement> RejectingAuthenticator::GetNextMessage() { |
| 43 NOTREACHED(); | 43 NOTREACHED(); |
| 44 return nullptr; | 44 return nullptr; |
| 45 } | 45 } |
| 46 | 46 |
| 47 const std::string& RejectingAuthenticator::GetAuthKey() const { | 47 const std::string& RejectingAuthenticator::GetAuthKey() const { |
| 48 NOTREACHED(); | 48 NOTREACHED(); |
| 49 return auth_key_; | 49 return auth_key_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 scoped_ptr<ChannelAuthenticator> | 52 std::unique_ptr<ChannelAuthenticator> |
| 53 RejectingAuthenticator::CreateChannelAuthenticator() const { | 53 RejectingAuthenticator::CreateChannelAuthenticator() const { |
| 54 NOTREACHED(); | 54 NOTREACHED(); |
| 55 return nullptr; | 55 return nullptr; |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace protocol | 58 } // namespace protocol |
| 59 } // namespace remoting | 59 } // namespace remoting |
| OLD | NEW |