OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/desktop_session_proxy.h" | 5 #include "remoting/host/desktop_session_proxy.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_CreateSharedBuffer, | 87 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_CreateSharedBuffer, |
88 OnCreateSharedBuffer) | 88 OnCreateSharedBuffer) |
89 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, | 89 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, |
90 OnReleaseSharedBuffer) | 90 OnReleaseSharedBuffer) |
91 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_InjectClipboardEvent, | 91 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_InjectClipboardEvent, |
92 OnInjectClipboardEvent) | 92 OnInjectClipboardEvent) |
93 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_DisconnectSession, | 93 IPC_MESSAGE_HANDLER(ChromotingDesktopNetworkMsg_DisconnectSession, |
94 DisconnectSession); | 94 DisconnectSession); |
95 IPC_END_MESSAGE_MAP() | 95 IPC_END_MESSAGE_MAP() |
96 | 96 |
| 97 CHECK(handled) << "An unexpected IPC message received: type=" |
| 98 << message.type(); |
97 return handled; | 99 return handled; |
98 } | 100 } |
99 | 101 |
100 void DesktopSessionProxy::OnChannelConnected(int32 peer_pid) { | 102 void DesktopSessionProxy::OnChannelConnected(int32 peer_pid) { |
101 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 103 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
102 | 104 |
103 VLOG(1) << "IPC: network <- desktop (" << peer_pid << ")"; | 105 VLOG(1) << "IPC: network <- desktop (" << peer_pid << ")"; |
104 } | 106 } |
105 | 107 |
106 void DesktopSessionProxy::OnChannelError() { | 108 void DesktopSessionProxy::OnChannelError() { |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 466 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
465 | 467 |
466 if (desktop_channel_) { | 468 if (desktop_channel_) { |
467 desktop_channel_->Send(message); | 469 desktop_channel_->Send(message); |
468 } else { | 470 } else { |
469 delete message; | 471 delete message; |
470 } | 472 } |
471 } | 473 } |
472 | 474 |
473 } // namespace remoting | 475 } // namespace remoting |
OLD | NEW |