OLD | NEW |
---|---|
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_PROTOBUF_VIDEO_READER_H_ | 5 #ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_ |
6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_ | 6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "remoting/proto/video.pb.h" | 9 #include "remoting/proto/video.pb.h" |
10 #include "remoting/protocol/message_reader.h" | 10 #include "remoting/protocol/message_reader.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
26 | 26 |
27 // VideoReader interface. | 27 // VideoReader interface. |
28 virtual void Init(protocol::Session* session, | 28 virtual void Init(protocol::Session* session, |
29 VideoStub* video_stub, | 29 VideoStub* video_stub, |
30 const InitializedCallback& callback) OVERRIDE; | 30 const InitializedCallback& callback) OVERRIDE; |
31 | 31 |
32 private: | 32 private: |
33 void OnChannelReady(net::StreamSocket* socket); | 33 void OnChannelReady(net::StreamSocket* socket); |
34 void OnNewData(VideoPacket* packet, const base::Closure& done_task); | 34 void OnNewData(VideoPacket* packet, const base::Closure& done_task); |
35 | 35 |
36 Session* session_; | |
37 | |
36 InitializedCallback initialized_callback_; | 38 InitializedCallback initialized_callback_; |
37 | 39 |
38 VideoPacketFormat::Encoding encoding_; | 40 VideoPacketFormat::Encoding encoding_; |
39 | 41 |
42 bool creation_finished_; | |
Wez
2011/11/15 22:29:13
Where is this used?
Sergey Ulanov
2011/11/16 00:01:33
Removed
| |
43 | |
40 // TODO(sergeyu): Remove |channel_| and let |reader_| own it. | 44 // TODO(sergeyu): Remove |channel_| and let |reader_| own it. |
41 scoped_ptr<net::StreamSocket> channel_; | 45 scoped_ptr<net::StreamSocket> channel_; |
42 | 46 |
43 ProtobufMessageReader<VideoPacket> reader_; | 47 ProtobufMessageReader<VideoPacket> reader_; |
44 | 48 |
45 // The stub that processes all received packets. | 49 // The stub that processes all received packets. |
46 VideoStub* video_stub_; | 50 VideoStub* video_stub_; |
47 | 51 |
48 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoReader); | 52 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoReader); |
49 }; | 53 }; |
50 | 54 |
51 } // namespace protocol | 55 } // namespace protocol |
52 } // namespace remoting | 56 } // namespace remoting |
53 | 57 |
54 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_ | 58 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_READER_H_ |
OLD | NEW |