| 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 #include "remoting/host/security_key/fake_security_key_ipc_server.h" | 5 #include "remoting/host/security_key/fake_security_key_ipc_server.h" |
| 6 | 6 |
| 7 #include <cstdint> | 7 #include <cstdint> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 base::TimeDelta initial_connect_timeout, | 123 base::TimeDelta initial_connect_timeout, |
| 124 const SecurityKeyAuthHandler::SendMessageCallback& send_message_callback, | 124 const SecurityKeyAuthHandler::SendMessageCallback& send_message_callback, |
| 125 const base::Closure& connect_callback, | 125 const base::Closure& connect_callback, |
| 126 const base::Closure& done_callback) { | 126 const base::Closure& done_callback) { |
| 127 auto fake_ipc_server = base::MakeUnique<FakeSecurityKeyIpcServer>( | 127 auto fake_ipc_server = base::MakeUnique<FakeSecurityKeyIpcServer>( |
| 128 connection_id, client_session_details, initial_connect_timeout, | 128 connection_id, client_session_details, initial_connect_timeout, |
| 129 send_message_callback, connect_callback, done_callback); | 129 send_message_callback, connect_callback, done_callback); |
| 130 | 130 |
| 131 ipc_server_map_[connection_id] = fake_ipc_server->AsWeakPtr(); | 131 ipc_server_map_[connection_id] = fake_ipc_server->AsWeakPtr(); |
| 132 | 132 |
| 133 return fake_ipc_server; | 133 return std::move(fake_ipc_server); |
| 134 } | 134 } |
| 135 | 135 |
| 136 base::WeakPtr<FakeSecurityKeyIpcServer> | 136 base::WeakPtr<FakeSecurityKeyIpcServer> |
| 137 FakeSecurityKeyIpcServerFactory::GetIpcServerObject(int connection_id) { | 137 FakeSecurityKeyIpcServerFactory::GetIpcServerObject(int connection_id) { |
| 138 return ipc_server_map_[connection_id]; | 138 return ipc_server_map_[connection_id]; |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace remoting | 141 } // namespace remoting |
| OLD | NEW |