Index: content/browser/gpu/gpu_process_host_ui_shim.h |
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.h b/content/browser/gpu/gpu_process_host_ui_shim.h |
index 2fe19789bfe5adf0840c4d53a58983a0d7d025fd..6cf3181e3aee99dac2a7bd4f327b65cd469f6d29 100644 |
--- a/content/browser/gpu/gpu_process_host_ui_shim.h |
+++ b/content/browser/gpu/gpu_process_host_ui_shim.h |
@@ -78,6 +78,10 @@ class GpuProcessHostUIShim : public IPC::Listener, |
CONTENT_EXPORT void SimulateCrash(); |
CONTENT_EXPORT void SimulateHang(); |
+ // Called to add a listener for a particular message routing ID. |
rjkroege
2014/06/16 21:38:49
This comment probably should say why this is here.
|
+ // Returns true if succeeded. |
+ void AddRoute(int32 routing_id, IPC::Listener* listener); |
+ |
private: |
explicit GpuProcessHostUIShim(int host_id); |
virtual ~GpuProcessHostUIShim(); |
@@ -104,9 +108,13 @@ class GpuProcessHostUIShim : public IPC::Listener, |
base::TimeTicks timebase, |
base::TimeDelta interval); |
void OnFrameDrawn(const std::vector<ui::LatencyInfo>& latency_info); |
+ void OnPlatformSupportInitialized(int32 host_route_id, int32 gpu_route_id); |
rjkroege
2014/06/16 21:38:49
More comments about this message?
|
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
int host_id_; |
+ |
+ // Listeners for routed messages. |
+ IDMap<IPC::Listener> routes_; |
}; |
} // namespace content |