| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/connection_to_client.h" | 5 #include "remoting/protocol/connection_to_client.h" |
| 6 | 6 |
| 7 #include "google/protobuf/message.h" | 7 #include "google/protobuf/message.h" |
| 8 #include "net/base/io_buffer.h" | 8 #include "net/base/io_buffer.h" |
| 9 #include "remoting/protocol/client_control_sender.h" | 9 #include "remoting/protocol/client_control_sender.h" |
| 10 | 10 |
| 11 // TODO(hclam): Remove this header once MessageDispatcher is used. | 11 // TODO(hclam): Remove this header once MessageDispatcher is used. |
| 12 #include "remoting/base/multiple_array_input_stream.h" | 12 #include "remoting/base/compound_buffer.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 namespace protocol { | 15 namespace protocol { |
| 16 | 16 |
| 17 // Determine how many update streams we should count to find the size of | 17 // Determine how many update streams we should count to find the size of |
| 18 // average update stream. | 18 // average update stream. |
| 19 static const size_t kAverageUpdateStream = 10; | 19 static const size_t kAverageUpdateStream = 10; |
| 20 | 20 |
| 21 ConnectionToClient::ConnectionToClient(MessageLoop* message_loop, | 21 ConnectionToClient::ConnectionToClient(MessageLoop* message_loop, |
| 22 EventHandler* handler) | 22 EventHandler* handler) |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 DCHECK(handler_); | 119 DCHECK(handler_); |
| 120 handler_->HandleMessage(this, message); | 120 handler_->HandleMessage(this, message); |
| 121 } | 121 } |
| 122 | 122 |
| 123 // OnClosed() is used as a callback for protocol::Session::Close(). | 123 // OnClosed() is used as a callback for protocol::Session::Close(). |
| 124 void ConnectionToClient::OnClosed() { | 124 void ConnectionToClient::OnClosed() { |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace protocol | 127 } // namespace protocol |
| 128 } // namespace remoting | 128 } // namespace remoting |
| OLD | NEW |