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

Side by Side Diff: content/renderer/gpu_channel_host.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/audio_message_filter.h ('k') | content/renderer/indexed_db_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_CHANNEL_HOST_H_
6 #define CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_RENDERER_GPU_CHANNEL_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 kUnconnected, 35 kUnconnected,
36 // Ready to use. 36 // Ready to use.
37 kConnected, 37 kConnected,
38 // An error caused the host to become disconnected. Recreate channel to 38 // An error caused the host to become disconnected. Recreate channel to
39 // reestablish connection. 39 // reestablish connection.
40 kLost 40 kLost
41 }; 41 };
42 42
43 // Called on the render thread 43 // Called on the render thread
44 GpuChannelHost(); 44 GpuChannelHost();
45 ~GpuChannelHost(); 45 virtual ~GpuChannelHost();
46 46
47 // Connect to GPU process channel. 47 // Connect to GPU process channel.
48 void Connect(const IPC::ChannelHandle& channel_handle, 48 void Connect(const IPC::ChannelHandle& channel_handle,
49 base::ProcessHandle renderer_process_for_gpu); 49 base::ProcessHandle renderer_process_for_gpu);
50 50
51 State state() const { return state_; } 51 State state() const { return state_; }
52 52
53 // Change state to kLost. 53 // Change state to kLost.
54 void SetStateLost(); 54 void SetStateLost();
55 55
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_; 114 scoped_refptr<GpuVideoServiceHost> gpu_video_service_host_;
115 115
116 // This is a MessageFilter to intercept IPC messages related to transport 116 // This is a MessageFilter to intercept IPC messages related to transport
117 // textures. These messages are routed to TransportTextureHost. 117 // textures. These messages are routed to TransportTextureHost.
118 scoped_refptr<TransportTextureService> transport_texture_service_; 118 scoped_refptr<TransportTextureService> transport_texture_service_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 120 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
121 }; 121 };
122 122
123 #endif // CONTENT_RENDERER_GPU_CHANNEL_HOST_H_ 123 #endif // CONTENT_RENDERER_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/audio_message_filter.h ('k') | content/renderer/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698