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

Unified Diff: remoting/protocol/video_stub.h

Issue 9827006: Refactor VideoStub interface to accept ownership of video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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_video_writer_unittest.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_stub.h
diff --git a/remoting/protocol/video_stub.h b/remoting/protocol/video_stub.h
index 064ce1fb56d40e16b7077017fe8409308196d8c5..86875a175ab264d087e44247ac298abdc577334c 100644
--- a/remoting/protocol/video_stub.h
+++ b/remoting/protocol/video_stub.h
@@ -6,6 +6,7 @@
#define REMOTING_PROTOCOL_VIDEO_STUB_H_
#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
namespace remoting {
@@ -20,7 +21,7 @@ class VideoStub {
// TODO(sergeyu): VideoPacket is the protobuf message that is used to send
// video packets in protobuf stream. It should not be used here. Add another
// struct and use it to represent video packets internally.
- virtual void ProcessVideoPacket(const VideoPacket* video_packet,
+ virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
const base::Closure& done) = 0;
// Returns number of packets currently pending in the buffer.
« no previous file with comments | « remoting/protocol/rtp_video_writer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698