#ifndef MEDIA_CAST_LOGGING_LOGGING_IMPL_H_
#define MEDIA_CAST_LOGGING_LOGGING_IMPL_H_
#include "base/memory/ref_counted.h"
#include "base/threading/thread_checker.h"
#include "media/cast/cast_config.h"
#include "media/cast/logging/logging_defines.h"
#include "media/cast/logging/logging_raw.h"
namespace media {
namespace cast {
class LoggingImpl {
public:
LoggingImpl();
~LoggingImpl();
void InsertFrameEvent(const base::TimeTicks& time_of_event,
CastLoggingEvent event, uint32 rtp_timestamp,
uint32 frame_id);
void InsertFrameEventWithSize(const base::TimeTicks& time_of_event,
CastLoggingEvent event, uint32 rtp_timestamp,
uint32 frame_id, int frame_size);
void InsertFrameEventWithDelay(const base::TimeTicks& time_of_event,
CastLoggingEvent event, uint32 rtp_timestamp,
uint32 frame_id, base::TimeDelta delay);
void InsertSinglePacketEvent(const base::TimeTicks& time_of_event,
CastLoggingEvent event,
const Packet& packet);
void InsertPacketListEvent(const base::TimeTicks& time_of_event,
CastLoggingEvent event, const PacketList& packets);
void InsertPacketEvent(const base::TimeTicks& time_of_event,
CastLoggingEvent event, uint32 rtp_timestamp,
uint32 frame_id, uint16 packet_id,
uint16 max_packet_id, size_t size);
void InsertGenericEvent(const base::TimeTicks& time_of_event,
CastLoggingEvent event, int value);
void AddRawEventSubscriber(RawEventSubscriber* subscriber);
void RemoveRawEventSubscriber(RawEventSubscriber* subscriber);
private:
base::ThreadChecker thread_checker_;
LoggingRaw raw_;
DISALLOW_COPY_AND_ASSIGN(LoggingImpl);
};
}
}
#endif