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

Unified Diff: media/video/capture/video_capture.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/capture/video_capture.h
diff --git a/media/video/capture/video_capture.h b/media/video/capture/video_capture.h
index b825dff7592471bcde3f7586cc744a85609cb697..f96a36d7483559356478d9b0e9594850bc597661 100644
--- a/media/video/capture/video_capture.h
+++ b/media/video/capture/video_capture.h
@@ -70,10 +70,12 @@ class MEDIA_EXPORT VideoCapture {
virtual void OnDeviceInfoReceived(
VideoCapture* capture,
const VideoCaptureParams& device_info) = 0;
+
+ protected:
+ virtual ~EventHandler() {}
};
VideoCapture() {}
- virtual ~VideoCapture() {}
// Request video capture to start capturing with |capability|.
// Also register |handler| with video capture for event handling.
@@ -93,6 +95,9 @@ class MEDIA_EXPORT VideoCapture {
virtual int CaptureHeight() = 0;
virtual int CaptureFrameRate() = 0;
+ protected:
+ virtual ~VideoCapture() {}
+
private:
DISALLOW_COPY_AND_ASSIGN(VideoCapture);
};

Powered by Google App Engine
This is Rietveld 408576698