#ifndef COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLABILITY_AGENT_H_
#define COMPONENTS_DOM_DISTILLER_CONTENT_RENDERER_DISTILLABILITY_AGENT_H_
#include "content/public/renderer/render_frame_observer.h"
namespace ukm {
class UkmRecorder;
}
namespace dom_distiller {
class DistillabilityAgent : public content::RenderFrameObserver {
public:
DistillabilityAgent(content::RenderFrame* render_frame, bool dump_info);
~DistillabilityAgent() override;
void DidMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override;
void OnDestruct() override;
private:
bool dump_info_;
std::unique_ptr<ukm::UkmRecorder> ukm_recorder_;
};
}
#endif