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

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

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged 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/stream_writer.h ('k') | remoting/protocol/video_reader.cc » ('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/util.h" 9 #include "remoting/protocol/util.h"
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 void StreamWriterBase::Close() { 34 void StreamWriterBase::Close() {
35 buffered_writer_->Close(); 35 buffered_writer_->Close();
36 } 36 }
37 37
38 bool EventStreamWriter::SendMessage(const ChromotingClientMessage& message) { 38 bool EventStreamWriter::SendMessage(const ChromotingClientMessage& message) {
39 return buffered_writer_->Write(SerializeAndFrameMessage(message)); 39 return buffered_writer_->Write(SerializeAndFrameMessage(message));
40 } 40 }
41 41
42 bool ControlStreamWriter::SendMessage(const ChromotingHostMessage& message) { 42 bool ControlStreamWriter::SendMessage(const ControlMessage& message) {
43 return buffered_writer_->Write(SerializeAndFrameMessage(message)); 43 return buffered_writer_->Write(SerializeAndFrameMessage(message));
44 } 44 }
45 45
46 } // namespace protocol 46 } // namespace protocol
47 } // namespace remoting 47 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/stream_writer.h ('k') | remoting/protocol/video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698