| 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/remote_security_key_ipc_server_impl.h" | 5 #include "remoting/host/security_key/remote_security_key_ipc_server_impl.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include <string> | 8 #include <string> |
| 8 | 9 |
| 9 #include "base/callback.h" | 10 #include "base/callback.h" |
| 10 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
| 15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
| 16 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 17 #include "remoting/base/logging.h" | 17 #include "remoting/base/logging.h" |
| 18 #include "remoting/host/chromoting_messages.h" | 18 #include "remoting/host/chromoting_messages.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Reset the timer to give the client a chance to send the response. | 121 // Reset the timer to give the client a chance to send the response. |
| 122 timer_.Start(FROM_HERE, security_key_request_timeout_, | 122 timer_.Start(FROM_HERE, security_key_request_timeout_, |
| 123 base::Bind(&RemoteSecurityKeyIpcServerImpl::OnChannelError, | 123 base::Bind(&RemoteSecurityKeyIpcServerImpl::OnChannelError, |
| 124 base::Unretained(this))); | 124 base::Unretained(this))); |
| 125 | 125 |
| 126 HOST_LOG << "Received gnubby request: " << GetCommandCode(request_data); | 126 HOST_LOG << "Received gnubby request: " << GetCommandCode(request_data); |
| 127 message_callback_.Run(connection_id_, request_data); | 127 message_callback_.Run(connection_id_, request_data); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace remoting | 130 } // namespace remoting |
| OLD | NEW |