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

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: 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/common/gpu/client/gpu_video_decode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index d9c51922c7153873401eef30fca646b20a5f98e5..42e4d8b0fe099c77e2180400d0823a63cbd68e86 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);
@@ -106,7 +105,12 @@ class GpuChannel : public IPC::Channel::Listener,
// discrete GPU even if they would otherwise use the integrated GPU.
bool ShouldPreferDiscreteGpu() const;
+ protected:
+ virtual ~GpuChannel();
+
private:
+ friend class base::RefCountedThreadSafe<GpuChannel>;
+
void OnDestroy();
bool OnControlMessageReceived(const IPC::Message& msg);
« no previous file with comments | « content/common/gpu/client/gpu_video_decode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698