| 236 | } |
| 237 | |
| 238 | void PluginEventRouter::ReportFileTransferEnd(const std::shared_ptr<GrPluginFileTransferEnd>& event) { |
| 239 | app_->PostGlobalTask([=, this]() { |
| 240 | tcrp::RpMessage msg; |
| 241 | msg.set_type(tcrp::kRpFileTransferEnd); |
| 242 | auto sub = msg.mutable_ft_end(); |
| 243 | sub->set_the_file_id(event->the_file_id_); |
| 244 | sub->set_end_timestamp(event->end_timestamp_); |
| 245 | sub->set_success(event->success_); |
| 246 | auto buffer = RpProtoAsData(&msg); |
| 247 | app_->PostPanelMessage(buffer); |
| 248 | }); |
| 249 | } |
| 250 | |
| 251 | void PluginEventRouter::ReportRemoteClipboardResp(const std::shared_ptr<GrPluginRemoteClipboardResp>& event) { |
| 252 | app_->PostGlobalTask([=, this]() { |
nothing calls this directly
no test coverage detected