chromium/chrome/browser/ui/webui/tab_strip/thumbnail_tracker.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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"

// Handles requests for a given tab's thumbnail and watches for thumbnail
// updates for the lifetime of the tab.
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) {}

// static
scoped_refptr<ThumbnailImage> ThumbnailTracker::GetThumbnailFromTabHelper(
    content::WebContents* contents) {}