Inspecting https://chromium.googlesource.com/chromium/src/+/24b51059ba90de3650e81b784f798f1eff8e53bf/docs/callback.md#memory-management-and-passing, I'm a little confused.Specifically, if callee keeps the RepeatingCallback parameter (or a copy of it), has ownership been transferred to callee (and pass-by-value should be used)? Or not? Even if the caller continues to use the RepeatingCallback object?
From chat on https://chromium-review.googlesource.com/c/chromium/src/+/1099935, it seems pass-by-value is best even in this case; if a copy of the (currently const&) param is taken by the callee, change to pass-by-value and consider callee using std::move to potentially reduce copy count back to the const& number -- all to improve readability and give caller flexibility to give up ownership independently of the callee.Before I engage in related refactoring in //media (https://bugs.chromium.org/p/chromium/issues/detail?id=852972), I'd like to be sure I'm using the recommended style.Thanks,Matt