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

Unified Diff: content/common/gpu/gpu_channel.h

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: 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
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index a92ed87ad2cea6fc6d1d935d515069cb994b5f9e..c520a591f4bff081945805763d22d562bb01c24b 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -45,7 +45,6 @@ class GpuChannel : public IPC::Channel::Listener,
gfx::GLShareGroup* share_group,
int client_id,
bool software);
- virtual ~GpuChannel();
bool Init(base::MessageLoopProxy* io_message_loop,
base::WaitableEvent* shutdown_event);
@@ -110,6 +109,9 @@ class GpuChannel : public IPC::Channel::Listener,
bool ShouldPreferDiscreteGpu() const;
private:
+ friend class base::RefCountedThreadSafe<GpuChannel>;
+ virtual ~GpuChannel();
+
void OnDestroy();
bool OnControlMessageReceived(const IPC::Message& msg);

Powered by Google App Engine
This is Rietveld 408576698