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

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

Issue 10879085: Cleanup RectangleUpdateDecoder and VideoStub (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 19 matching lines...) Expand all
30 30
31 // VideoWriter interface. 31 // VideoWriter interface.
32 virtual void Init(protocol::Session* session, 32 virtual void Init(protocol::Session* session,
33 const InitializedCallback& callback) OVERRIDE; 33 const InitializedCallback& callback) OVERRIDE;
34 virtual void Close() OVERRIDE; 34 virtual void Close() OVERRIDE;
35 virtual bool is_connected() OVERRIDE; 35 virtual bool is_connected() OVERRIDE;
36 36
37 // VideoStub interface. 37 // VideoStub interface.
38 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, 38 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
39 const base::Closure& done) OVERRIDE; 39 const base::Closure& done) OVERRIDE;
40 virtual int GetPendingVideoPackets() OVERRIDE;
41 40
42 private: 41 private:
43 void OnChannelReady(scoped_ptr<net::StreamSocket> socket); 42 void OnChannelReady(scoped_ptr<net::StreamSocket> socket);
44 43
45 InitializedCallback initialized_callback_; 44 InitializedCallback initialized_callback_;
46 45
47 ChannelFactory* channel_factory_; 46 ChannelFactory* channel_factory_;
48 scoped_ptr<net::StreamSocket> channel_; 47 scoped_ptr<net::StreamSocket> channel_;
49 48
50 BufferedSocketWriter buffered_writer_; 49 BufferedSocketWriter buffered_writer_;
51 50
52 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); 51 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter);
53 }; 52 };
54 53
55 } // namespace protocol 54 } // namespace protocol
56 } // namespace remoting 55 } // namespace remoting
57 56
58 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ 57 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698