Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: remoting/protocol/connection_to_client.cc

Issue 4779001: Added CompoundBuffer that will be used to store data in the encoding/decoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/base/multiple_array_input_stream_unittest.cc ('k') | remoting/protocol/host_message_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698