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

Side by Side Diff: remoting/protocol/rtp_video_writer.h

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 months 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/rtp_video_reader_unittest.cc ('k') | remoting/protocol/rtp_video_writer.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 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_
6 #define REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ 6 #define REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "remoting/protocol/rtp_writer.h" 9 #include "remoting/protocol/rtp_writer.h"
10 #include "remoting/protocol/video_writer.h" 10 #include "remoting/protocol/video_writer.h"
(...skipping 12 matching lines...) Expand all
23 RtpVideoWriter(base::MessageLoopProxy* message_loop); 23 RtpVideoWriter(base::MessageLoopProxy* message_loop);
24 virtual ~RtpVideoWriter(); 24 virtual ~RtpVideoWriter();
25 25
26 // VideoWriter interface. 26 // VideoWriter interface.
27 virtual void Init(protocol::Session* session, 27 virtual void Init(protocol::Session* session,
28 const InitializedCallback& callback) OVERRIDE; 28 const InitializedCallback& callback) OVERRIDE;
29 virtual void Close() OVERRIDE; 29 virtual void Close() OVERRIDE;
30 30
31 // VideoStub interface. 31 // VideoStub interface.
32 virtual void ProcessVideoPacket(const VideoPacket* packet, 32 virtual void ProcessVideoPacket(const VideoPacket* packet,
33 Task* done) OVERRIDE; 33 const base::Closure& done) OVERRIDE;
34 virtual int GetPendingPackets() OVERRIDE; 34 virtual int GetPendingPackets() OVERRIDE;
35 35
36 private: 36 private:
37 void OnChannelReady(bool rtp, net::Socket* socket); 37 void OnChannelReady(bool rtp, net::Socket* socket);
38 38
39 bool initialized_; 39 bool initialized_;
40 InitializedCallback initialized_callback_; 40 InitializedCallback initialized_callback_;
41 41
42 scoped_ptr<net::Socket> rtp_channel_; 42 scoped_ptr<net::Socket> rtp_channel_;
43 RtpWriter rtp_writer_; 43 RtpWriter rtp_writer_;
44 scoped_ptr<net::Socket> rtcp_channel_; 44 scoped_ptr<net::Socket> rtcp_channel_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter); 46 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter);
47 }; 47 };
48 48
49 } // namespace protocol 49 } // namespace protocol
50 } // namespace remoting 50 } // namespace remoting
51 51
52 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ 52 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/rtp_video_reader_unittest.cc ('k') | remoting/protocol/rtp_video_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698