| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/secure_channel_factory.h" | 5 #include "remoting/protocol/secure_channel_factory.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "remoting/protocol/authenticator.h" | 10 #include "remoting/protocol/authenticator.h" |
| 9 #include "remoting/protocol/channel_authenticator.h" | 11 #include "remoting/protocol/channel_authenticator.h" |
| 10 #include "remoting/protocol/p2p_stream_socket.h" | 12 #include "remoting/protocol/p2p_stream_socket.h" |
| 11 | 13 |
| 12 namespace remoting { | 14 namespace remoting { |
| 13 namespace protocol { | 15 namespace protocol { |
| 14 | 16 |
| 15 SecureChannelFactory::SecureChannelFactory( | 17 SecureChannelFactory::SecureChannelFactory( |
| 16 StreamChannelFactory* channel_factory, | 18 StreamChannelFactory* channel_factory, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 AuthenticatorMap::iterator it = channel_authenticators_.find(name); | 76 AuthenticatorMap::iterator it = channel_authenticators_.find(name); |
| 75 DCHECK(it != channel_authenticators_.end()); | 77 DCHECK(it != channel_authenticators_.end()); |
| 76 delete it->second; | 78 delete it->second; |
| 77 channel_authenticators_.erase(it); | 79 channel_authenticators_.erase(it); |
| 78 | 80 |
| 79 callback.Run(std::move(socket)); | 81 callback.Run(std::move(socket)); |
| 80 } | 82 } |
| 81 | 83 |
| 82 } // namespace protocol | 84 } // namespace protocol |
| 83 } // namespace remoting | 85 } // namespace remoting |
| OLD | NEW |