Index: content/browser/renderer_host/gpu_message_filter.h |
=================================================================== |
--- content/browser/renderer_host/gpu_message_filter.h (revision 90090) |
+++ content/browser/renderer_host/gpu_message_filter.h (working copy) |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
#pragma once |
+#include "base/memory/ref_counted.h" |
#include "content/browser/browser_message_filter.h" |
#include "content/common/gpu/gpu_process_launch_causes.h" |
#include "ui/gfx/native_widget_types.h" |
@@ -14,6 +15,7 @@ |
class GpuProcessHostUIShim; |
struct GPUCreateCommandBufferConfig; |
struct GPUInfo; |
+class RenderWidgetHelper; |
namespace IPC { |
struct ChannelHandle; |
@@ -25,7 +27,8 @@ |
class GpuMessageFilter : public BrowserMessageFilter, |
public base::SupportsWeakPtr<GpuMessageFilter> { |
public: |
- explicit GpuMessageFilter(int render_process_id); |
+ GpuMessageFilter(int render_process_id, |
+ RenderWidgetHelper* render_widget_helper); |
// BrowserMessageFilter methods: |
virtual bool OnMessageReceived(const IPC::Message& message, |
@@ -41,7 +44,6 @@ |
void OnEstablishGpuChannel(content::CauseForGpuLaunch, |
IPC::Message* reply); |
void OnCreateViewCommandBuffer( |
- gfx::PluginWindowHandle compositing_surface, |
int32 render_view_id, |
const GPUCreateCommandBufferConfig& init_params, |
IPC::Message* reply); |
@@ -49,6 +51,8 @@ |
int gpu_host_id_; |
int render_process_id_; |
+ scoped_refptr<RenderWidgetHelper> render_widget_helper_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); |
}; |