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

Unified Diff: media/base/data_buffer.h

Issue 9015015: Take advantage of the new Pass() machinery on scoped_ptr{,_malloc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 | « media/base/composite_data_source_factory.cc ('k') | media/base/data_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/data_buffer.h
diff --git a/media/base/data_buffer.h b/media/base/data_buffer.h
index bb010f3f8ef1fc48f1000d85345d0a3b80ba3edc..d5226b23ecc05a504df84530e0ccff289ace4a30 100644
--- a/media/base/data_buffer.h
+++ b/media/base/data_buffer.h
@@ -17,9 +17,8 @@ namespace media {
class MEDIA_EXPORT DataBuffer : public Buffer {
public:
- // Takes ownership of the passed |buffer|, assumes valid data of size
- // |buffer_size|.
- DataBuffer(uint8* buffer, size_t buffer_size);
+ // Assumes valid data of size |buffer_size|.
+ DataBuffer(scoped_array<uint8> buffer, size_t buffer_size);
// Allocates buffer of size |buffer_size|. If |buffer_size| is 0, |data_| is
// set to a NULL ptr.
« no previous file with comments | « media/base/composite_data_source_factory.cc ('k') | media/base/data_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698