Index: content/renderer/gpu/gpu_video_decode_accelerator_host.h |
diff --git a/content/renderer/gpu/gpu_video_decode_accelerator_host.h b/content/renderer/gpu/gpu_video_decode_accelerator_host.h |
index 70f7a503374dfa04e58142fe2d1847f1877a3a8b..de1c1068220594896c3db98159654bf3da1a30fe 100644 |
--- a/content/renderer/gpu/gpu_video_decode_accelerator_host.h |
+++ b/content/renderer/gpu/gpu_video_decode_accelerator_host.h |
@@ -7,6 +7,7 @@ |
#include <vector> |
+#include "base/memory/weak_ptr.h" |
#include "base/threading/non_thread_safe.h" |
#include "ipc/ipc_channel.h" |
#include "media/video/video_decode_accelerator.h" |
@@ -18,7 +19,8 @@ class GpuChannelHost; |
class GpuVideoDecodeAcceleratorHost |
: public IPC::Channel::Listener, |
public media::VideoDecodeAccelerator, |
- public base::NonThreadSafe { |
+ public base::NonThreadSafe, |
+ public base::SupportsWeakPtr<GpuVideoDecodeAcceleratorHost> { |
public: |
// |channel| is used to send IPC messages to GPU process. |
GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, |