| 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/pseudotcp_channel_factory.h" | 5 #include "remoting/protocol/pseudotcp_channel_factory.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 9 #include "remoting/base/constants.h" | 11 #include "remoting/base/constants.h" |
| 10 #include "remoting/protocol/datagram_channel_factory.h" | 12 #include "remoting/protocol/datagram_channel_factory.h" |
| 11 #include "remoting/protocol/p2p_datagram_socket.h" | 13 #include "remoting/protocol/p2p_datagram_socket.h" |
| 12 #include "remoting/protocol/pseudotcp_adapter.h" | 14 #include "remoting/protocol/pseudotcp_adapter.h" |
| 13 | 15 |
| 14 namespace remoting { | 16 namespace remoting { |
| 15 namespace protocol { | 17 namespace protocol { |
| 16 | 18 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 pending_sockets_.erase(it); | 92 pending_sockets_.erase(it); |
| 91 | 93 |
| 92 if (result != net::OK) | 94 if (result != net::OK) |
| 93 socket.reset(); | 95 socket.reset(); |
| 94 | 96 |
| 95 callback.Run(std::move(socket)); | 97 callback.Run(std::move(socket)); |
| 96 } | 98 } |
| 97 | 99 |
| 98 } // namespace protocol | 100 } // namespace protocol |
| 99 } // namespace remoting | 101 } // namespace remoting |
| OLD | NEW |