#include "chrome/browser/tab_contents/web_contents_collection.h"
#include "base/check.h"
#include "base/memory/raw_ptr.h"
#include "content/public/browser/web_contents_observer.h"
class WebContentsCollection::ForwardingWebContentsObserver
: public content::WebContentsObserver { … };
WebContentsCollection::WebContentsCollection(
WebContentsCollection::Observer* observer)
: … { … }
WebContentsCollection::~WebContentsCollection() = default;
void WebContentsCollection::StartObserving(content::WebContents* web_contents) { … }
void WebContentsCollection::StopObserving(content::WebContents* web_contents) { … }
void WebContentsCollection::WebContentsDestroyed(
content::WebContents* web_contents) { … }