diff options
Diffstat (limited to 'media/video')
-rw-r--r-- | media/video/capture/video_capture.h | 9 | ||||
-rw-r--r-- | media/video/video_decode_accelerator.h | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/media/video/capture/video_capture.h b/media/video/capture/video_capture.h index b825dff..d0aef98 100644 --- a/media/video/capture/video_capture.h +++ b/media/video/capture/video_capture.h @@ -44,7 +44,7 @@ class MEDIA_EXPORT VideoCapture { // TODO(wjia): add error codes. // Callbacks provided by client for notification of events. - class EventHandler { + class MEDIA_EXPORT EventHandler { public: // Notify client that video capture has been started. virtual void OnStarted(VideoCapture* capture) = 0; @@ -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); }; diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h index c04d8dc..83d0b95 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; @@ -74,6 +72,9 @@ class MEDIA_EXPORT VideoDecodeAccelerator // Callback to notify about decoding errors. virtual void NotifyError(Error error) = 0; + + protected: + virtual ~Client() {} }; // Video decoder functions. |