chromium/extensions/browser/test_extension_console_observer.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_TEST_EXTENSION_CONSOLE_OBSERVER_H_
#define EXTENSIONS_BROWSER_TEST_EXTENSION_CONSOLE_OBSERVER_H_

#include <string>
#include <vector>

#include "base/containers/flat_set.h"
#include "base/scoped_observation.h"
#include "content/public/browser/service_worker_context.h"
#include "content/public/browser/service_worker_context_observer.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/common/extension_id.h"
#include "url/gurl.h"

namespace content {
class BrowserContext;
struct ConsoleMessage;
class RenderFrameHost;
}  // namespace content

namespace extensions {

// Monitors an extension's console for errors or warnings.
class TestExtensionConsoleObserver
    : public content::ServiceWorkerContextObserver,
      public content::WebContentsObserver {};

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_TEST_EXTENSION_CONSOLE_OBSERVER_H_