#include "chrome/browser/preloading/preview/preview_manager.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/browser/preloading/preview/preview_tab.h"
#include "content/public/browser/preview_cancel_reason.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
PreviewManager::PreviewManager(content::WebContents* web_contents)
: … { … }
PreviewManager::~PreviewManager() = default;
void PreviewManager::PrimaryPageChanged(content::Page& page) { … }
void PreviewManager::InitiatePreview(const GURL& url) { … }
void PreviewManager::Cancel(content::PreviewCancelReason reason) { … }
void PreviewManager::PromoteToNewTab() { … }
base::WeakPtr<content::WebContents>
PreviewManager::GetWebContentsForPreviewTab() { … }
void PreviewManager::CloseForTesting() { … }
PreviewZoomController* PreviewManager::PreviewZoomControllerForTesting() const { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(PreviewManager);