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

Side by Side Diff: remoting/protocol/protobuf_video_writer.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_reader.cc ('k') | remoting/protocol/protobuf_video_writer.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_PROTOBUF_VIDEO_WRITER_H_ 5 #ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ 6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 17 matching lines...) Expand all
28 28
29 class ProtobufVideoWriter : public VideoWriter { 29 class ProtobufVideoWriter : public VideoWriter {
30 public: 30 public:
31 ProtobufVideoWriter(base::MessageLoopProxy* message_loop); 31 ProtobufVideoWriter(base::MessageLoopProxy* message_loop);
32 virtual ~ProtobufVideoWriter(); 32 virtual ~ProtobufVideoWriter();
33 33
34 // VideoWriter interface. 34 // VideoWriter interface.
35 virtual void Init(protocol::Session* session, 35 virtual void Init(protocol::Session* session,
36 const InitializedCallback& callback) OVERRIDE; 36 const InitializedCallback& callback) OVERRIDE;
37 virtual void Close() OVERRIDE; 37 virtual void Close() OVERRIDE;
38 virtual bool is_connected() OVERRIDE;
38 39
39 // VideoStub interface. 40 // VideoStub interface.
40 virtual void ProcessVideoPacket(const VideoPacket* packet, 41 virtual void ProcessVideoPacket(const VideoPacket* packet,
41 const base::Closure& done) OVERRIDE; 42 const base::Closure& done) OVERRIDE;
42 virtual int GetPendingPackets() OVERRIDE; 43 virtual int GetPendingPackets() OVERRIDE;
43 44
44 private: 45 private:
45 void OnChannelReady(net::StreamSocket* socket); 46 void OnChannelReady(net::StreamSocket* socket);
46 47
47 Session* session_; 48 Session* session_;
48 49
49 InitializedCallback initialized_callback_; 50 InitializedCallback initialized_callback_;
50 51
51 // TODO(sergeyu): Remove |channel_| and let |buffered_writer_| own it. 52 // TODO(sergeyu): Remove |channel_| and let |buffered_writer_| own it.
52 scoped_ptr<net::StreamSocket> channel_; 53 scoped_ptr<net::StreamSocket> channel_;
53 54
54 scoped_refptr<BufferedSocketWriter> buffered_writer_; 55 scoped_refptr<BufferedSocketWriter> buffered_writer_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); 57 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter);
57 }; 58 };
58 59
59 } // namespace protocol 60 } // namespace protocol
60 } // namespace remoting 61 } // namespace remoting
61 62
62 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ 63 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_reader.cc ('k') | remoting/protocol/protobuf_video_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698