#include "media/cast/logging/log_event_dispatcher.h"
#include <utility>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/not_fatal_until.h"
#include "base/ranges/algorithm.h"
#include "base/synchronization/waitable_event.h"
#include "media/cast/cast_environment.h"
namespace media {
namespace cast {
LogEventDispatcher::LogEventDispatcher(CastEnvironment* env)
: … { … }
LogEventDispatcher::~LogEventDispatcher() = default;
void LogEventDispatcher::DispatchFrameEvent(
std::unique_ptr<FrameEvent> event) const { … }
void LogEventDispatcher::DispatchPacketEvent(
std::unique_ptr<PacketEvent> event) const { … }
void LogEventDispatcher::DispatchBatchOfEvents(
std::unique_ptr<std::vector<FrameEvent>> frame_events,
std::unique_ptr<std::vector<PacketEvent>> packet_events) const { … }
void LogEventDispatcher::Subscribe(RawEventSubscriber* subscriber) { … }
void LogEventDispatcher::Unsubscribe(RawEventSubscriber* subscriber) { … }
LogEventDispatcher::Impl::Impl() = default;
LogEventDispatcher::Impl::~Impl() { … }
void LogEventDispatcher::Impl::DispatchFrameEvent(
std::unique_ptr<FrameEvent> event) const { … }
void LogEventDispatcher::Impl::DispatchPacketEvent(
std::unique_ptr<PacketEvent> event) const { … }
void LogEventDispatcher::Impl::DispatchBatchOfEvents(
std::unique_ptr<std::vector<FrameEvent>> frame_events,
std::unique_ptr<std::vector<PacketEvent>> packet_events) const { … }
void LogEventDispatcher::Impl::Subscribe(RawEventSubscriber* subscriber) { … }
void LogEventDispatcher::Impl::Unsubscribe(RawEventSubscriber* subscriber) { … }
}
}