// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_COLLECTION_H_ #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_COLLECTION_H_ #include <memory> #include "base/containers/flat_map.h" #include "base/memory/raw_ptr.h" #include "content/public/browser/web_contents_observer.h" namespace content { class WebContents; } // namespace content // Utility class for receiving `WebContentsObserver` callbacks from sets of // `WebContents`. Manages a set of `WebContentsObserver` which forward their // callbacks annotated with the WebContents they occurred in to an observer. The // collection ensures that observer lifetimes are properly handled. class WebContentsCollection { … }; #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_COLLECTION_H_