#ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_EVENT_HANDLER_H_
#define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_EVENT_HANDLER_H_
#include <vector>
#include "content/common/media/media_log_records.mojom.h"
#include "content/renderer/media/batching_media_log.h"
#include "media/base/media_player_logging_id.h"
#include "mojo/public/cpp/bindings/remote.h"
namespace content {
class RenderMediaEventHandler : public BatchingMediaLog::EventHandler {
public:
explicit RenderMediaEventHandler(media::MediaPlayerLoggingID player_id);
~RenderMediaEventHandler() override;
void SendQueuedMediaEvents(std::vector<media::MediaLogRecord>) override;
void OnWebMediaPlayerDestroyed() override;
private:
media::MediaPlayerLoggingID log_id_;
content::mojom::MediaInternalLogRecords& GetMediaInternalRecordLogRemote();
mojo::Remote<content::mojom::MediaInternalLogRecords>
media_internal_log_remote_;
};
}
#endif