Index: ui/ozone/platform/dri/gpu_platform_support_host_gbm.h |
diff --git a/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h b/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h |
index 6463413c32111b32bb7d78e61133fe2030e252d6..6f60b9e01f39dd2198bcf708b70eab59dfe9c917 100644 |
--- a/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h |
+++ b/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h |
@@ -5,6 +5,8 @@ |
#ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_HOST_GBM_H_ |
#define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_HOST_GBM_H_ |
+#include <vector> |
+ |
#include "ui/gfx/native_widget_types.h" |
#include "ui/ozone/platform/dri/hardware_cursor_delegate.h" |
#include "ui/ozone/public/gpu_platform_support_host.h" |
@@ -18,9 +20,14 @@ class Point; |
namespace ui { |
class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost, |
- public HardwareCursorDelegate { |
+ public HardwareCursorDelegate, |
+ public IPC::Sender { |
public: |
GpuPlatformSupportHostGbm(); |
+ virtual ~GpuPlatformSupportHostGbm(); |
+ |
+ void RegisterHandler(GpuPlatformSupportHost* handler); |
+ void UnregisterHandler(GpuPlatformSupportHost* handler); |
// GpuPlatformSupportHost: |
virtual void OnChannelEstablished(int host_id, IPC::Sender* sender) OVERRIDE; |
@@ -29,6 +36,9 @@ class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost, |
// IPC::Listener: |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
+ // IPC::Sender: |
+ virtual bool Send(IPC::Message* message) OVERRIDE; |
+ |
// HardwareCursorDelegate: |
virtual void SetHardwareCursor(gfx::AcceleratedWidget widget, |
const SkBitmap& bitmap, |
@@ -39,6 +49,7 @@ class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost, |
private: |
int host_id_; |
IPC::Sender* sender_; |
+ std::vector<GpuPlatformSupportHost*> handlers_; |
}; |
} // namespace ui |