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

Unified Diff: remoting/protocol/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, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/rtp_writer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_writer.h
diff --git a/remoting/protocol/video_writer.h b/remoting/protocol/video_writer.h
index b9216c05dc7bd4720743b636456b11026ba49f7f..be4c715c01468b5c26323d6bed46a13a2d616362 100644
--- a/remoting/protocol/video_writer.h
+++ b/remoting/protocol/video_writer.h
@@ -19,7 +19,6 @@ namespace protocol {
class Session;
class SessionConfig;
-// TODO(sergeyu): VideoWriter should implement VideoStub interface.
class VideoWriter : public VideoStub {
public:
virtual ~VideoWriter();
@@ -29,6 +28,10 @@ class VideoWriter : public VideoStub {
// Initializes the writer.
virtual void Init(Session* session) = 0;
+ // Stops writing. Must be called on the network thread before this
+ // object is destroyed.
+ virtual void Close() = 0;
+
protected:
VideoWriter() { }
« no previous file with comments | « remoting/protocol/rtp_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698