DescriptionInterfacePtr: not setup proxy until actual read/write is needed.
A common usage of InterfacePtr is:
(1) Create a new InterfacePtr instance.
(2) BindToProxy() is called to bind the interface pointer to an implementation.
(3) Immediately, the message pipe handle underneath the interface pointer is detached and sent over another message pipe.
In step (2), currently we do all the setup work for the interface pointer: construct Router and Connector instance, post task to start watching the message pipe handle, etc. All the work is thrown away at step (3).
With this CL, the proxy setup work won't be done until actual read/write is needed.
BUG=394883
TEST=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284034
Patch Set 1 #Patch Set 2 : #
Messages
Total messages: 6 (0 generated)
|