13 PlatformMessageResponseDarwin::PlatformMessageResponseDarwin(
15 fml::RefPtr<fml::TaskRunner> platform_task_runner)
16 : callback_(callback, fml::scoped_policy::OwnershipPolicy::kRetain),
17 platform_task_runner_(std::move(platform_task_runner)) {}
19 PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin() =
default;
22 fml::RefPtr<PlatformMessageResponseDarwin>
self(
this);
23 platform_task_runner_->PostTask(fml::MakeCopyable([
self, data = std::move(data)]()
mutable {
29 fml::RefPtr<PlatformMessageResponseDarwin>
self(
this);
30 platform_task_runner_->PostTask(
31 fml::MakeCopyable([
self]()
mutable {
self->callback_.get()(nil); }));