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

Unified Diff: media/video/video_decode_accelerator.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 5fa0d2149348fd07854f14993ab2d3a0988b0c3a..1c98b1bb17c1ebcd3ad1ddbeda15a056ba04b109 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -46,8 +46,6 @@ class MEDIA_EXPORT VideoDecodeAccelerator
// implements.
class MEDIA_EXPORT Client {
public:
- virtual ~Client() {}
-
// Callback to notify client that decoder has been initialized.
virtual void NotifyInitializeDone() = 0;
@@ -73,6 +71,9 @@ class MEDIA_EXPORT VideoDecodeAccelerator
// Callback to notify about decoding errors.
virtual void NotifyError(Error error) = 0;
+
+ protected:
+ virtual ~Client() {}
};
// Video decoder functions.

Powered by Google App Engine
This is Rietveld 408576698