Index: content/gpu/gpu_child_thread.h |
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h |
index a0e2bd36d52727e375831d86085c21217f206fcf..55c5f0ece5397ef4dc809496ec7c076dd8d152e2 100644 |
--- a/content/gpu/gpu_child_thread.h |
+++ b/content/gpu/gpu_child_thread.h |
@@ -15,6 +15,7 @@ |
#include "base/command_line.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
+#include "base/memory/weak_ptr.h" |
#include "base/metrics/field_trial.h" |
#include "base/time/time.h" |
#include "build/build_config.h" |
@@ -130,6 +131,11 @@ class GpuChildThread : public ChildThreadImpl, |
std::unique_ptr<ui::GpuService> gpu_service_; |
mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
+ // Holds a closure that releases pending interface requests on the IO thread. |
+ base::Closure release_pending_requests_closure_; |
+ |
+ base::WeakPtrFactory<GpuChildThread> weak_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
}; |