#include "chrome/browser/ui/thumbnails/thumbnail_readiness_tracker.h"
#include <utility>
#include "content/public/browser/navigation_handle.h"
namespace {
bool NavigationShouldInvalidateThumbnail(
content::NavigationHandle* navigation) { … }
}
ThumbnailReadinessTracker::ThumbnailReadinessTracker(
content::WebContents* web_contents,
ReadinessChangeCallback callback)
: … { … }
ThumbnailReadinessTracker::~ThumbnailReadinessTracker() = default;
void ThumbnailReadinessTracker::DidStartNavigation(
content::NavigationHandle* navigation_handle) { … }
void ThumbnailReadinessTracker::DidFinishNavigation(
content::NavigationHandle* navigation_handle) { … }
void ThumbnailReadinessTracker::DocumentOnLoadCompletedInPrimaryMainFrame() { … }
void ThumbnailReadinessTracker::WebContentsDestroyed() { … }
void ThumbnailReadinessTracker::UpdateReadiness(Readiness readiness) { … }