#include "chrome/browser/ui/webui/tab_strip/thumbnail_tracker.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "chrome/browser/ui/thumbnails/thumbnail_tab_helper.h"
#include "content/public/browser/web_contents_observer.h"
class ThumbnailTracker::ContentsData : public content::WebContentsObserver { … };
ThumbnailTracker::ThumbnailTracker(ThumbnailUpdatedCallback callback)
: … { … }
ThumbnailTracker::ThumbnailTracker(ThumbnailUpdatedCallback callback,
GetThumbnailCallback thumbnail_getter)
: … { … }
ThumbnailTracker::~ThumbnailTracker() = default;
void ThumbnailTracker::AddTab(content::WebContents* contents) { … }
void ThumbnailTracker::RemoveTab(content::WebContents* contents) { … }
void ThumbnailTracker::ThumbnailUpdated(content::WebContents* contents,
CompressedThumbnailData image) { … }
void ThumbnailTracker::ContentsClosed(content::WebContents* contents) { … }
scoped_refptr<ThumbnailImage> ThumbnailTracker::GetThumbnailFromTabHelper(
content::WebContents* contents) { … }