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

Unified Diff: content/renderer/gpu/compositor_thread.cc

Issue 10071038: RefCounted types should not have public destructors, content/browser part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright bump Created 8 years, 8 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
« no previous file with comments | « content/renderer/devtools_agent_filter.cc ('k') | content/renderer/media/audio_input_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_thread.cc
diff --git a/content/renderer/gpu/compositor_thread.cc b/content/renderer/gpu/compositor_thread.cc
index 665ae33917a36cdd38078d7eaf319181c8b1b778..8cbe079836732a005c8ed8252948744583d45895 100644
--- a/content/renderer/gpu/compositor_thread.cc
+++ b/content/renderer/gpu/compositor_thread.cc
@@ -42,10 +42,6 @@ class CompositorThread::InputHandlerWrapper
render_view_impl_, params));
}
- virtual ~InputHandlerWrapper() {
- input_handler_->setClient(NULL);
- }
-
int routing_id() const { return routing_id_; }
WebKit::WebCompositorInputHandler* input_handler() const {
return input_handler_;
@@ -66,6 +62,12 @@ class CompositorThread::InputHandlerWrapper
}
private:
+ friend class base::RefCountedThreadSafe<InputHandlerWrapper>;
+
+ virtual ~InputHandlerWrapper() {
+ input_handler_->setClient(NULL);
+ }
+
CompositorThread* compositor_thread_;
int routing_id_;
WebKit::WebCompositorInputHandler* input_handler_;
« no previous file with comments | « content/renderer/devtools_agent_filter.cc ('k') | content/renderer/media/audio_input_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698