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

Unified Diff: remoting/client/chromoting_client.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 | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.h
diff --git a/remoting/client/chromoting_client.h b/remoting/client/chromoting_client.h
index 66b22deaa8d9f97a1f52a04f15deb209ba43c07f..c71475efc5fe8743abea34ea10e816d102385a14 100644
--- a/remoting/client/chromoting_client.h
+++ b/remoting/client/chromoting_client.h
@@ -55,15 +55,16 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
protocol::ErrorCode error) OVERRIDE;
// VideoStub implementation.
- virtual void ProcessVideoPacket(const VideoPacket* packet,
+ virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
const base::Closure& done) OVERRIDE;
virtual int GetPendingPackets() OVERRIDE;
private:
struct QueuedVideoPacket {
- QueuedVideoPacket(const VideoPacket* packet, const base::Closure& done);
+ QueuedVideoPacket(scoped_ptr<VideoPacket> packet,
+ const base::Closure& done);
~QueuedVideoPacket();
- const VideoPacket* packet;
+ VideoPacket* packet;
base::Closure done;
};
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698