| 362 | } |
| 363 | |
| 364 | void PluginNetEventRouter::ProcessHeartBeat(std::shared_ptr<Message>&& msg) { |
| 365 | app_->PostGlobalTask([=, this]() { |
| 366 | auto& hb = msg->heartbeat(); |
| 367 | auto proto_msg = NetMessageMaker::MakeOnHeartBeatMsg(app_, hb.index(), hb.timestamp()); |
| 368 | app_->PostNetMessage(proto_msg); |
| 369 | }); |
| 370 | |
| 371 | auto event = std::make_shared<MsgClientHeartbeat>(); |
| 372 | event->device_id_ = msg->device_id(); |
| 373 | event->stream_id_ = msg->stream_id(); |
| 374 | event->hb_index_ = msg->heartbeat().index(); |
| 375 | event->timestamp_ = msg->heartbeat().timestamp(); |
| 376 | plugin_manager_->VisitAllPlugins([=, this](GrPluginInterface* plugin) { |
| 377 | plugin->DispatchAppEvent(event); |
| 378 | }); |
| 379 | } |
| 380 | |
| 381 | void PluginNetEventRouter::ProcessClipboardInfo(std::shared_ptr<Message>&& msg) { |
| 382 | //if (auto plugin = plugin_manager_->GetClipboardPlugin(); plugin) { |
nothing calls this directly
no test coverage detected