chromium/extensions/browser/site_access_requests_helper.cc

// 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.

#include "extensions/browser/site_access_requests_helper.h"

#include <sys/types.h>

#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/permissions_manager.h"
#include "extensions/common/extension.h"
#include "extensions/common/url_pattern.h"

namespace extensions {

SiteAccessRequestsHelper::SiteAccessRequestsHelper(
    PassKey pass_key,
    PermissionsManager* permissions_manager,
    content::WebContents* web_contents,
    int tab_id)
    :{}

SiteAccessRequestsHelper::~SiteAccessRequestsHelper() = default;

void SiteAccessRequestsHelper::AddRequest(
    const Extension& extension,
    const std::optional<URLPattern>& filter) {}

void SiteAccessRequestsHelper::UpdateRequest(
    const Extension& extension,
    const std::optional<URLPattern>& filter) {}

bool SiteAccessRequestsHelper::RemoveRequest(
    const ExtensionId& extension_id,
    const std::optional<URLPattern>& filter) {}

bool SiteAccessRequestsHelper::RemoveRequestIfGrantedAccess(
    const Extension& extension) {}

void SiteAccessRequestsHelper::UserDismissedRequest(
    const ExtensionId& extension_id) {}

bool SiteAccessRequestsHelper::HasRequest(
    const ExtensionId& extension_id) const {}

bool SiteAccessRequestsHelper::HasActiveRequest(
    const ExtensionId& extension_id) const {}

bool SiteAccessRequestsHelper::HasRequests() {}

void SiteAccessRequestsHelper::OnExtensionUnloaded(
    content::BrowserContext* browser_context,
    const Extension* extension,
    UnloadedExtensionReason reason) {}

void SiteAccessRequestsHelper::DidFinishNavigation(
    content::NavigationHandle* navigation_handle) {}

void SiteAccessRequestsHelper::WebContentsDestroyed() {}

}  // namespace extensions