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

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

Issue 4313001: Rename classes for Chromoting: (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Resolve merge conflicts 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
« no previous file with comments | « remoting/protocol/session_manager.h ('k') | remoting/protocol/video_reader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/stream_writer.h" 5 #include "remoting/protocol/stream_writer.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "remoting/protocol/buffered_socket_writer.h" 8 #include "remoting/protocol/buffered_socket_writer.h"
9 #include "remoting/protocol/chromotocol_connection.h"
10 #include "remoting/protocol/util.h" 9 #include "remoting/protocol/util.h"
11 10
12 namespace remoting { 11 namespace remoting {
13 12
14 StreamWriterBase::StreamWriterBase() 13 StreamWriterBase::StreamWriterBase()
15 : socket_(NULL), 14 : socket_(NULL),
16 buffered_writer_(new BufferedSocketWriter()) { 15 buffered_writer_(new BufferedSocketWriter()) {
17 } 16 }
18 17
19 StreamWriterBase::~StreamWriterBase() { } 18 StreamWriterBase::~StreamWriterBase() { }
(...skipping 17 matching lines...) Expand all
37 36
38 bool EventStreamWriter::SendMessage(const ChromotingClientMessage& message) { 37 bool EventStreamWriter::SendMessage(const ChromotingClientMessage& message) {
39 return buffered_writer_->Write(SerializeAndFrameMessage(message)); 38 return buffered_writer_->Write(SerializeAndFrameMessage(message));
40 } 39 }
41 40
42 bool ControlStreamWriter::SendMessage(const ChromotingHostMessage& message) { 41 bool ControlStreamWriter::SendMessage(const ChromotingHostMessage& message) {
43 return buffered_writer_->Write(SerializeAndFrameMessage(message)); 42 return buffered_writer_->Write(SerializeAndFrameMessage(message));
44 } 43 }
45 44
46 } // namespace remoting 45 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/session_manager.h ('k') | remoting/protocol/video_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698