Change arguments for the private channel-rpc interface
The new interface provides the operationContext as a raw pointer and
also contains the initial serialized argument to start the call.
We observed that having shared ownership of the context between the
channel and the QGrpcOperation is problematic. The latter is owned by
the user, and if the QGrpcOperation is destroyed, there is no point in
keeping the context alive any longer. Channel implementations should
also treat the context as a weak reference and either connect to its
destroyed signal or check for validity.
This patch provides a better lifetime contract and prepares to remove
the unneeded storage overhead of QGrpcOperationContext::argument.
[ChangeLog][Important Behavior Changes][QAbstractGrpcChannel] The
abstract interface of private RPC functions has changed. Users of this
private, undocumented API must adapt their code.
Change-Id: I0baa7dc8639ec49fd28ce122476981545a36a0b4
Reviewed-by: Alexey Edelev <semlanik@gmail.com>