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

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

Issue 6277003: Simplified MessageReader and MessageDecoder classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 11 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/protobuf_video_reader.cc ('k') | remoting/protocol/rtp_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 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ 5 #ifndef REMOTING_PROTOCOL_RTP_VIDEO_READER_H_
6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ 6 #define REMOTING_PROTOCOL_RTP_VIDEO_READER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "remoting/protocol/rtcp_writer.h" 9 #include "remoting/protocol/rtcp_writer.h"
10 #include "remoting/protocol/rtp_reader.h" 10 #include "remoting/protocol/rtp_reader.h"
11 #include "remoting/protocol/video_reader.h" 11 #include "remoting/protocol/video_reader.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace protocol { 14 namespace protocol {
15 15
16 class Session; 16 class Session;
17 17
18 class RtpVideoReader : public VideoReader { 18 class RtpVideoReader : public VideoReader {
19 public: 19 public:
20 RtpVideoReader(); 20 RtpVideoReader();
21 virtual ~RtpVideoReader(); 21 virtual ~RtpVideoReader();
22 22
23 // VideoReader interface. 23 // VideoReader interface.
24 virtual void Init(protocol::Session* session, VideoStub* video_stub); 24 virtual void Init(protocol::Session* session, VideoStub* video_stub);
25 virtual void Close();
26 25
27 private: 26 private:
28 friend class RtpVideoReaderTest; 27 friend class RtpVideoReaderTest;
29 28
30 // Following struct is used to store pending packets in |packets_queue_|. 29 // Following struct is used to store pending packets in |packets_queue_|.
31 // Each entry may be in three different states: 30 // Each entry may be in three different states:
32 // |received| == false, |packet| == NULL - packet with the corresponding 31 // |received| == false, |packet| == NULL - packet with the corresponding
33 // sequence number hasn't been received. 32 // sequence number hasn't been received.
34 // |received| == true, |packet| != NULL - packet with the corresponding 33 // |received| == true, |packet| != NULL - packet with the corresponding
35 // sequence number has been received, but hasn't been processed, still 34 // sequence number has been received, but hasn't been processed, still
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // The stub that processes all received packets. 67 // The stub that processes all received packets.
69 VideoStub* video_stub_; 68 VideoStub* video_stub_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); 70 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader);
72 }; 71 };
73 72
74 } // namespace protocol 73 } // namespace protocol
75 } // namespace remoting 74 } // namespace remoting
76 75
77 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ 76 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_reader.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698