chromium/extensions/browser/site_access_requests_helper.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_SITE_ACCESS_REQUESTS_HELPER_H_
#define EXTENSIONS_BROWSER_SITE_ACCESS_REQUESTS_HELPER_H_

#include "base/scoped_observation.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/url_pattern.h"

namespace content {
class WebContents;
}  // namespace content

namespace extensions {

class PermissionsManager;

// Per-tab helper that stores extension's site access requests and restores
// them on cross-origin navigations.
// This class should only be used by PermissionsManager since it's an
// implementation detail that was pulled out for legibility.
class SiteAccessRequestsHelper : public ExtensionRegistryObserver,
                                 public content::WebContentsObserver {};

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_SITE_ACCESS_REQUESTS_HELPER_H_