#include "extensions/test/extension_test_notification_observer.h"
#include "base/memory/raw_ptr.h"
#include <memory>
#include <set>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/test_utils.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
namespace extensions {
class ExtensionTestNotificationObserver::NotificationSet::
ForwardingWebContentsObserver : public content::WebContentsObserver { … };
ExtensionTestNotificationObserver::NotificationSet::NotificationSet(
ProcessManager* manager) { … }
ExtensionTestNotificationObserver::NotificationSet::~NotificationSet() =
default;
void ExtensionTestNotificationObserver::NotificationSet::
OnExtensionFrameUnregistered(const ExtensionId& extension_id,
content::RenderFrameHost* render_frame_host) { … }
void ExtensionTestNotificationObserver::NotificationSet::OnWebContentsCreated(
content::WebContents* web_contents) { … }
void ExtensionTestNotificationObserver::NotificationSet::
StartObservingWebContents(content::WebContents* web_contents) { … }
void ExtensionTestNotificationObserver::NotificationSet::DidStopLoading(
content::WebContents* web_contents) { … }
void ExtensionTestNotificationObserver::NotificationSet::WebContentsDestroyed(
content::WebContents* web_contents) { … }
ExtensionTestNotificationObserver::ExtensionTestNotificationObserver(
content::BrowserContext* context)
: … { … }
ExtensionTestNotificationObserver::~ExtensionTestNotificationObserver() =
default;
void ExtensionTestNotificationObserver::WaitForCondition(
const ConditionCallback& condition,
NotificationSet* notification_set) { … }
void ExtensionTestNotificationObserver::MaybeQuit() { … }
}