Replace Signal with std::function. 97/260897/5
authorhuayong.xu <huayong.xu@samsung.com>
Tue, 6 Jul 2021 02:29:13 +0000 (10:29 +0800)
committerhuayong.xu <huayong.xu@samsung.com>
Wed, 7 Jul 2021 07:45:58 +0000 (15:45 +0800)
Originally Signal is used to notify webview when callback of web
engine is called. If Signal is called with a std::shared_ptr<X>,
lifecyle of object X would be managed by Signal only in
csharp-binder. So if Signal are destroyed, object X would be
destroyed too. This might cause some problem.
This patch is to replace Signal with std::fuction, and replace
std:shared_ptr with unique_ptr. Lifecycle of object X would not
be associated with that of Signal.

Change-Id: I7ce7cd977994308541ac645494b6dea97765e818


No differences found