#include "chrome/browser/ui/webui/tab_strip/tab_before_unload_tracker.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
namespace tab_strip_ui {
TabBeforeUnloadTracker::TabBeforeUnloadTracker(
TabCloseCancelledCallback cancelled_callback)
: … { … }
TabBeforeUnloadTracker::~TabBeforeUnloadTracker() = default;
void TabBeforeUnloadTracker::Observe(content::WebContents* contents) { … }
void TabBeforeUnloadTracker::Unobserve(content::WebContents* contents) { … }
void TabBeforeUnloadTracker::OnBeforeUnloadDialogCancelled(
content::WebContents* contents) { … }
class TabBeforeUnloadTracker::TabObserver
: public content::WebContentsObserver { … };
}