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

Unified Diff: remoting/base/encoder.h

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (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/base/codec_test.cc ('k') | remoting/base/encoder_row_based.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder.h
diff --git a/remoting/base/encoder.h b/remoting/base/encoder.h
index d1f226a4c293a812734883adc3afe5abac6120c8..73acbdc67768bb678b1b7e952dfdbace3bad1302 100644
--- a/remoting/base/encoder.h
+++ b/remoting/base/encoder.h
@@ -27,9 +27,7 @@ class Encoder {
// DataAvailableCallback is called as blocks of data are made available
// from the encoder. Data made available by the encoder is in the form
// of HostMessage to reduce the amount of memory copies.
- // The callback takes ownership of the HostMessage and is responsible for
- // deleting it.
- typedef base::Callback<void(VideoPacket*)> DataAvailableCallback;
+ typedef base::Callback<void(scoped_ptr<VideoPacket>)> DataAvailableCallback;
virtual ~Encoder() {}
« no previous file with comments | « remoting/base/codec_test.cc ('k') | remoting/base/encoder_row_based.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698