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

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

Issue 7508044: Remove video_channel() from Session interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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
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 "remoting/protocol/rtp_writer.h" 9 #include "remoting/protocol/rtp_writer.h"
9 #include "remoting/protocol/video_writer.h" 10 #include "remoting/protocol/video_writer.h"
10 11
11 namespace remoting { 12 namespace remoting {
12 namespace protocol { 13 namespace protocol {
13 14
14 class Session; 15 class Session;
15 16
16 class RtpVideoWriter : public VideoWriter { 17 class RtpVideoWriter : public VideoWriter {
17 public: 18 public:
18 RtpVideoWriter(); 19 RtpVideoWriter();
19 virtual ~RtpVideoWriter(); 20 virtual ~RtpVideoWriter();
20 21
21 // VideoWriter interface. 22 // VideoWriter interface.
22 virtual void Init(protocol::Session* session) OVERRIDE; 23 virtual void Init(protocol::Session* session,
24 const InitializedCallback& callback) OVERRIDE;
23 virtual void Close() OVERRIDE; 25 virtual void Close() OVERRIDE;
24 26
25 // VideoStub interface. 27 // VideoStub interface.
26 virtual void ProcessVideoPacket(const VideoPacket* packet, 28 virtual void ProcessVideoPacket(const VideoPacket* packet,
27 Task* done) OVERRIDE; 29 Task* done) OVERRIDE;
28 virtual int GetPendingPackets() OVERRIDE; 30 virtual int GetPendingPackets() OVERRIDE;
29 31
30 private: 32 private:
33 void OnChannelReady(const std::string& name, net::Socket* socket);
34
35 bool initialized_;
Wez 2011/08/04 23:49:52 Should be |is_initialized_| here and in reader.
Sergey Ulanov 2011/08/09 19:41:10 I think |initialized_| is much more common in the
36 InitializedCallback initialized_callback_;
37
38 scoped_ptr<net::Socket> rtp_channel_;
31 RtpWriter rtp_writer_; 39 RtpWriter rtp_writer_;
40 scoped_ptr<net::Socket> rtcp_channel_;
32 41
33 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter); 42 DISALLOW_COPY_AND_ASSIGN(RtpVideoWriter);
34 }; 43 };
35 44
36 } // namespace protocol 45 } // namespace protocol
37 } // namespace remoting 46 } // namespace remoting
38 47
39 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_ 48 #endif // REMOTING_PROTOCOL_RTP_VIDEO_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698