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

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

Issue 8587053: Remove event_channel() and control_channel() from Session interface. (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/protobuf_video_writer.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) 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 #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/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 25
26 class RtpVideoReader : public VideoReader { 26 class RtpVideoReader : public VideoReader {
27 public: 27 public:
28 RtpVideoReader(base::MessageLoopProxy* message_loop); 28 RtpVideoReader(base::MessageLoopProxy* message_loop);
29 virtual ~RtpVideoReader(); 29 virtual ~RtpVideoReader();
30 30
31 // VideoReader interface. 31 // VideoReader interface.
32 virtual void Init(protocol::Session* session, 32 virtual void Init(protocol::Session* session,
33 VideoStub* video_stub, 33 VideoStub* video_stub,
34 const InitializedCallback& callback) OVERRIDE; 34 const InitializedCallback& callback) OVERRIDE;
35 virtual bool is_connected() OVERRIDE;
35 36
36 private: 37 private:
37 friend class RtpVideoReaderTest; 38 friend class RtpVideoReaderTest;
38 39
39 // Following struct is used to store pending packets in |packets_queue_|. 40 // Following struct is used to store pending packets in |packets_queue_|.
40 // Each entry may be in three different states: 41 // Each entry may be in three different states:
41 // |received| == false, |packet| == NULL - packet with the corresponding 42 // |received| == false, |packet| == NULL - packet with the corresponding
42 // sequence number hasn't been received. 43 // sequence number hasn't been received.
43 // |received| == true, |packet| != NULL - packet with the corresponding 44 // |received| == true, |packet| != NULL - packet with the corresponding
44 // sequence number has been received, but hasn't been processed, still 45 // sequence number has been received, but hasn't been processed, still
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // The stub that processes all received packets. 87 // The stub that processes all received packets.
87 VideoStub* video_stub_; 88 VideoStub* video_stub_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); 90 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader);
90 }; 91 };
91 92
92 } // namespace protocol 93 } // namespace protocol
93 } // namespace remoting 94 } // namespace remoting
94 95
95 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ 96 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698