| 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/protocol/channel_multiplexer.h" | 5 #include "remoting/protocol/channel_multiplexer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <utility> |
| 11 |
| 10 #include "base/bind.h" | 12 #include "base/bind.h" |
| 11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 12 #include "base/callback_helpers.h" | 14 #include "base/callback_helpers.h" |
| 13 #include "base/location.h" | 15 #include "base/location.h" |
| 14 #include "base/macros.h" | 16 #include "base/macros.h" |
| 15 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 16 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 17 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
| 18 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 19 #include "remoting/protocol/message_serialization.h" | 21 #include "remoting/protocol/message_serialization.h" |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 channel->OnIncomingPacket(std::move(packet), done_task); | 464 channel->OnIncomingPacket(std::move(packet), done_task); |
| 463 } | 465 } |
| 464 | 466 |
| 465 void ChannelMultiplexer::DoWrite(scoped_ptr<MultiplexPacket> packet, | 467 void ChannelMultiplexer::DoWrite(scoped_ptr<MultiplexPacket> packet, |
| 466 const base::Closure& done_task) { | 468 const base::Closure& done_task) { |
| 467 writer_.Write(SerializeAndFrameMessage(*packet), done_task); | 469 writer_.Write(SerializeAndFrameMessage(*packet), done_task); |
| 468 } | 470 } |
| 469 | 471 |
| 470 } // namespace protocol | 472 } // namespace protocol |
| 471 } // namespace remoting | 473 } // namespace remoting |
| OLD | NEW |