| 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_remote_security_key_ipc_client.h" | 5 #include "remoting/host/security_key/fake_remote_security_key_ipc_client.h" |
| 6 | 6 |
| 7 #include <memory> |
| 8 |
| 7 #include "base/callback.h" | 9 #include "base/callback.h" |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 13 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
| 14 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
| 15 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 16 #include "remoting/host/chromoting_messages.h" | 17 #include "remoting/host/chromoting_messages.h" |
| 17 | 18 |
| 18 namespace remoting { | 19 namespace remoting { |
| 19 | 20 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 channel_event_callback_.Run(); | 119 channel_event_callback_.Run(); |
| 119 } | 120 } |
| 120 | 121 |
| 121 void FakeRemoteSecurityKeyIpcClient::OnSecurityKeyResponse( | 122 void FakeRemoteSecurityKeyIpcClient::OnSecurityKeyResponse( |
| 122 const std::string& request_data) { | 123 const std::string& request_data) { |
| 123 last_message_received_ = request_data; | 124 last_message_received_ = request_data; |
| 124 channel_event_callback_.Run(); | 125 channel_event_callback_.Run(); |
| 125 } | 126 } |
| 126 | 127 |
| 127 } // namespace remoting | 128 } // namespace remoting |
| OLD | NEW |