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

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

Issue 7633009: Use MessageLoopProxy for network message loop. (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
« no previous file with comments | « remoting/protocol/rtcp_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"
11 #include "remoting/protocol/rtcp_writer.h" 11 #include "remoting/protocol/rtcp_writer.h"
12 #include "remoting/protocol/rtp_reader.h" 12 #include "remoting/protocol/rtp_reader.h"
13 #include "remoting/protocol/video_reader.h" 13 #include "remoting/protocol/video_reader.h"
14 14
15 namespace base {
16 class MessageLoopProxy;
17 } // namespace base
18
15 namespace remoting { 19 namespace remoting {
16 namespace protocol { 20 namespace protocol {
17 21
18 class RtcpWriter; 22 class RtcpWriter;
19 class RtpReader; 23 class RtpReader;
20 class Session; 24 class Session;
21 25
22 class RtpVideoReader : public VideoReader { 26 class RtpVideoReader : public VideoReader {
23 public: 27 public:
24 RtpVideoReader(); 28 RtpVideoReader(base::MessageLoopProxy* message_loop);
25 virtual ~RtpVideoReader(); 29 virtual ~RtpVideoReader();
26 30
27 // VideoReader interface. 31 // VideoReader interface.
28 virtual void Init(protocol::Session* session, 32 virtual void Init(protocol::Session* session,
29 VideoStub* video_stub, 33 VideoStub* video_stub,
30 const InitializedCallback& callback) OVERRIDE; 34 const InitializedCallback& callback) OVERRIDE;
31 35
32 private: 36 private:
33 friend class RtpVideoReaderTest; 37 friend class RtpVideoReaderTest;
34 38
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // The stub that processes all received packets. 84 // The stub that processes all received packets.
81 VideoStub* video_stub_; 85 VideoStub* video_stub_;
82 86
83 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader); 87 DISALLOW_COPY_AND_ASSIGN(RtpVideoReader);
84 }; 88 };
85 89
86 } // namespace protocol 90 } // namespace protocol
87 } // namespace remoting 91 } // namespace remoting
88 92
89 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_ 93 #endif // REMOTING_PROTOCOL_RTP_VIDEO_READER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/rtcp_writer.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698