Index: services/ui/ws/gpu_host.h |
diff --git a/services/ui/ws/gpu_host.h b/services/ui/ws/gpu_host.h |
index d967b06cdce37634c8a4c375ed33a94042e0f851..247ff63ce9aaa353a12fe6609deb5443a1f9009c 100644 |
--- a/services/ui/ws/gpu_host.h |
+++ b/services/ui/ws/gpu_host.h |
@@ -12,6 +12,7 @@ |
#include "gpu/ipc/client/gpu_channel_host.h" |
#include "mojo/public/cpp/bindings/binding_set.h" |
#include "mojo/public/cpp/bindings/interface_request.h" |
+#include "mojo/public/cpp/bindings/strong_binding_set.h" |
#include "services/ui/gpu/gpu_main.h" |
#include "services/ui/gpu/interfaces/gpu_host.mojom.h" |
#include "services/ui/gpu/interfaces/gpu_service.mojom.h" |
@@ -23,6 +24,12 @@ class ServerGpuMemoryBufferManager; |
namespace ws { |
+class GpuClient; |
+ |
+namespace test { |
+class GpuHostTest; |
+} // namespace test |
+ |
class GpuHostDelegate; |
// Sets up connection from clients to the real service implementation in the GPU |
@@ -42,6 +49,9 @@ class GpuHost : public mojom::GpuHost { |
cc::mojom::DisplayCompositorClientPtr client); |
private: |
+ friend class test::GpuHostTest; |
+ |
+ GpuClient* AddInternal(mojom::GpuRequest request); |
void OnBadMessageFromGpu(); |
// mojom::GpuHost: |
@@ -75,6 +85,8 @@ class GpuHost : public mojom::GpuHost { |
// because that will live in another process soon. |
std::unique_ptr<GpuMain> gpu_main_impl_; |
+ mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GpuHost); |
}; |