#ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLABLE_PAGE_UTILS_H_
#define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_DISTILLABLE_PAGE_UTILS_H_
#include <optional>
#include <ostream>
#include "base/functional/callback.h"
#include "base/observer_list_types.h"
namespace content {
class WebContents;
}
namespace dom_distiller {
class DistillablePageDetector;
void IsDistillablePageForDetector(content::WebContents* web_contents,
const DistillablePageDetector* detector,
base::OnceCallback<void(bool)> callback);
struct DistillabilityResult { … };
bool operator==(const DistillabilityResult& first,
const DistillabilityResult& second);
std::ostream& operator<<(std::ostream& os, const DistillabilityResult& result);
class DistillabilityObserver : public base::CheckedObserver { … };
void AddObserver(content::WebContents* web_contents,
DistillabilityObserver* observer);
void RemoveObserver(content::WebContents* web_contents,
DistillabilityObserver* observer);
std::optional<DistillabilityResult> GetLatestResult(
content::WebContents* web_contents);
}
#endif