Index: mojo/public/cpp/bindings/lib/multiplex_router.h |
diff --git a/mojo/public/cpp/bindings/lib/multiplex_router.h b/mojo/public/cpp/bindings/lib/multiplex_router.h |
index fc0d27eaaed90eaba6acca11ee0c6a834c459d90..553ba5cf4d425231c93ea7a7391b0ddb39817505 100644 |
--- a/mojo/public/cpp/bindings/lib/multiplex_router.h |
+++ b/mojo/public/cpp/bindings/lib/multiplex_router.h |
@@ -138,6 +138,12 @@ class MultiplexRouter |
return connector_.is_valid(); |
} |
+ // TODO(yzshen): consider removing this getter. |
+ MessagePipeHandle handle() const { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ return connector_.handle(); |
+ } |
+ |
private: |
friend class base::RefCountedDeleteOnMessageLoop<MultiplexRouter>; |
friend class base::DeleteHelper<MultiplexRouter>; |