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

Unified Diff: media/base/buffers.h

Issue 360042: First patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
Index: media/base/buffers.h
===================================================================
--- media/base/buffers.h (revision 30973)
+++ media/base/buffers.h (working copy)
@@ -100,6 +100,9 @@
// If there's no data in this buffer, it represents end of stream.
virtual bool IsEndOfStream() const { return GetData() == NULL; }
+
+ protected:
+ virtual ~Buffer() {}
};
@@ -114,6 +117,9 @@
// Returns the size of the underlying buffer.
virtual size_t GetBufferSize() const = 0;
+
+ protected:
+ ~WritableBuffer() {}
M-A Ruel 2009/11/05 20:31:28 virtual
jam 2009/11/05 21:52:37 Done.
};

Powered by Google App Engine
This is Rietveld 408576698