summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/protobuf_video_reader.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 03:57:57 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-28 03:57:57 +0000
commit9302fced9c771b0a067527bcfdf0f0d5a950a609 (patch)
treeff25fc8a147c4d60606831696518de3451fb0bfe /remoting/protocol/protobuf_video_reader.h
parentfe3fa12e9926a165a6d1dd20ea5a1ab41037af3c (diff)
downloadchromium_src-9302fced9c771b0a067527bcfdf0f0d5a950a609.zip
chromium_src-9302fced9c771b0a067527bcfdf0f0d5a950a609.tar.gz
chromium_src-9302fced9c771b0a067527bcfdf0f0d5a950a609.tar.bz2
Refactor VideoStub interface to accept ownership of video packets.
Previously VideoStub::ProcessVideoPacket() did not accept ownership of video packets. Instead the done callback was responsible for deleting the packet. Review URL: http://codereview.chromium.org/9827006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/protobuf_video_reader.h')
-rw-r--r--remoting/protocol/protobuf_video_reader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/protocol/protobuf_video_reader.h b/remoting/protocol/protobuf_video_reader.h
index 9d0d3d2..8bf07b2 100644
--- a/remoting/protocol/protobuf_video_reader.h
+++ b/remoting/protocol/protobuf_video_reader.h
@@ -32,7 +32,8 @@ class ProtobufVideoReader : public VideoReader {
private:
void OnChannelReady(scoped_ptr<net::StreamSocket> socket);
- void OnNewData(VideoPacket* packet, const base::Closure& done_task);
+ void OnNewData(scoped_ptr<VideoPacket> packet,
+ const base::Closure& done_task);
Session* session_;