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

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

Issue 7218061: Close all writers before JingleSession is destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 9 years, 5 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/input_sender.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 "base/compiler_specific.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
9 #include "remoting/protocol/video_writer.h" 10 #include "remoting/protocol/video_writer.h"
10 11
11 namespace remoting { 12 namespace remoting {
12 namespace protocol { 13 namespace protocol {
13 14
14 class BufferedSocketWriter; 15 class BufferedSocketWriter;
15 class Session; 16 class Session;
16 17
17 class ProtobufVideoWriter : public VideoWriter { 18 class ProtobufVideoWriter : public VideoWriter {
18 public: 19 public:
19 ProtobufVideoWriter(); 20 ProtobufVideoWriter();
20 virtual ~ProtobufVideoWriter(); 21 virtual ~ProtobufVideoWriter();
21 22
22 // VideoWriter interface. 23 // VideoWriter interface.
23 virtual void Init(protocol::Session* session); 24 virtual void Init(protocol::Session* session) OVERRIDE;
25 virtual void Close() OVERRIDE;
24 26
25 // VideoStub interface. 27 // VideoStub interface.
26 virtual void ProcessVideoPacket(const VideoPacket* packet, Task* done); 28 virtual void ProcessVideoPacket(const VideoPacket* packet,
27 virtual int GetPendingPackets(); 29 Task* done) OVERRIDE;
30 virtual int GetPendingPackets() OVERRIDE;
28 31
29 private: 32 private:
30 scoped_refptr<BufferedSocketWriter> buffered_writer_; 33 scoped_refptr<BufferedSocketWriter> buffered_writer_;
31 34
32 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); 35 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter);
33 }; 36 };
34 37
35 } // namespace protocol 38 } // namespace protocol
36 } // namespace remoting 39 } // namespace remoting
37 40
38 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ 41 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/input_sender.cc ('k') | remoting/protocol/protobuf_video_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698