chromium/components/permissions/permission_auditing_service.cc

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

#include "components/permissions/permission_auditing_service.h"

#include "utility"

#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/task/sequenced_task_runner.h"
#include "components/permissions/permission_auditing_database.h"

namespace {

// Specifies the permissions usage session lifetime. Each session older
// than this value is to be deleted.
constexpr base::TimeDelta kUsageSessionMaxAge =;

// Specifies the time period between the regular sessions deletions.
constexpr base::TimeDelta kUsageSessionCullingInterval =;

}  // namespace

namespace permissions {

PermissionAuditingService::PermissionAuditingService(
    scoped_refptr<base::SequencedTaskRunner> backend_task_runner)
    :{}

PermissionAuditingService::~PermissionAuditingService() {}

void PermissionAuditingService::Init(const base::FilePath& database_path) {}

void PermissionAuditingService::StartPeriodicCullingOfExpiredSessions() {}

void PermissionAuditingService::StorePermissionUsage(
    const PermissionUsageSession& session) {}

void PermissionAuditingService::GetPermissionUsageHistory(
    ContentSettingsType type,
    const url::Origin& origin,
    base::Time start_time,
    PermissionUsageHistoryCallback result_callback) {}

void PermissionAuditingService::GetLastPermissionUsageTime(
    ContentSettingsType type,
    const url::Origin& origin,
    LastPermissionUsageTimeCallback result_callback) {}

void PermissionAuditingService::UpdateEndTime(ContentSettingsType type,
                                              const url::Origin& origin,
                                              base::Time start_time,
                                              base::Time new_end_time) {}

void PermissionAuditingService::DeleteSessionsBetween(base::Time start,
                                                      base::Time end) {}

void PermissionAuditingService::ExpireOldSessions() {}

// static
base::TimeDelta PermissionAuditingService::GetUsageSessionMaxAge() {}

// static
base::TimeDelta PermissionAuditingService::GetUsageSessionCullingInterval() {}

}  // namespace permissions