chromium/components/content_settings/core/common/content_settings_metadata.cc

// Copyright 2023 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/content_settings/core/common/content_settings_metadata.h"

#include <stddef.h>

#include <tuple>

#include "base/time/clock.h"
#include "base/time/time.h"
#include "components/content_settings/core/common/content_settings_constraints.h"

namespace content_settings {

RuleMetaData::RuleMetaData() = default;
RuleMetaData::RuleMetaData(const RuleMetaData& other) = default;

void RuleMetaData::SetFromConstraints(
    const ContentSettingConstraints& constraints) {}

void RuleMetaData::SetExpirationAndLifetime(base::Time expiration,
                                            base::TimeDelta lifetime) {}

bool RuleMetaData::IsExpired(base::Clock* clock) const {}

RuleMetaData& RuleMetaData::operator=(const RuleMetaData& other) = default;
bool RuleMetaData::operator==(const RuleMetaData& other) const = default;

// static
base::TimeDelta RuleMetaData::ComputeLifetime(base::TimeDelta lifetime,
                                              base::Time expiration) {}

}  // namespace content_settings