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

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

Issue 8468022: Refactor channel dispatchers on the host side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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/host_message_dispatcher.cc ('k') | remoting/remoting.gyp » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/protobuf_video_writer.h" 5 #include "remoting/protocol/protobuf_video_writer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "net/socket/stream_socket.h" 9 #include "net/socket/stream_socket.h"
10 #include "remoting/base/constants.h" 10 #include "remoting/base/constants.h"
11 #include "remoting/proto/video.pb.h" 11 #include "remoting/proto/video.pb.h"
12 #include "remoting/protocol/rtp_writer.h"
13 #include "remoting/protocol/session.h" 12 #include "remoting/protocol/session.h"
14 #include "remoting/protocol/util.h" 13 #include "remoting/protocol/util.h"
15 14
16 namespace remoting { 15 namespace remoting {
17 namespace protocol { 16 namespace protocol {
18 17
19 ProtobufVideoWriter::ProtobufVideoWriter(base::MessageLoopProxy* message_loop) 18 ProtobufVideoWriter::ProtobufVideoWriter(base::MessageLoopProxy* message_loop)
20 : session_(NULL), 19 : session_(NULL),
21 buffered_writer_(new BufferedSocketWriter(message_loop)) { 20 buffered_writer_(new BufferedSocketWriter(message_loop)) {
22 } 21 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const base::Closure& done) { 61 const base::Closure& done) {
63 buffered_writer_->Write(SerializeAndFrameMessage(*packet), done); 62 buffered_writer_->Write(SerializeAndFrameMessage(*packet), done);
64 } 63 }
65 64
66 int ProtobufVideoWriter::GetPendingPackets() { 65 int ProtobufVideoWriter::GetPendingPackets() {
67 return buffered_writer_->GetBufferChunks(); 66 return buffered_writer_->GetBufferChunks();
68 } 67 }
69 68
70 } // namespace protocol 69 } // namespace protocol
71 } // namespace remoting 70 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/host_message_dispatcher.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698