chromium/chrome/updater/policy/manager.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 "chrome/updater/policy/manager.h"

#include <optional>
#include <string>
#include <vector>

#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
#include "base/time/time.h"
#include "chrome/updater/constants.h"

namespace updater {

bool UpdatesSuppressedTimes::operator==(
    const UpdatesSuppressedTimes& other) const {}

bool UpdatesSuppressedTimes::operator!=(
    const UpdatesSuppressedTimes& other) const {}

bool UpdatesSuppressedTimes::valid() const {}

bool UpdatesSuppressedTimes::contains(int hour, int minute) const {}

// DefaultValuesPolicyManager returns the default values for policies when no
// other policy manager is present in the system.
class DefaultValuesPolicyManager : public PolicyManagerInterface {};

DefaultValuesPolicyManager::DefaultValuesPolicyManager() = default;

DefaultValuesPolicyManager::~DefaultValuesPolicyManager() = default;

bool DefaultValuesPolicyManager::HasActiveDevicePolicies() const {}

std::string DefaultValuesPolicyManager::source() const {}

std::optional<bool>
DefaultValuesPolicyManager::CloudPolicyOverridesPlatformPolicy() const {}

std::optional<base::TimeDelta> DefaultValuesPolicyManager::GetLastCheckPeriod()
    const {}

std::optional<UpdatesSuppressedTimes>
DefaultValuesPolicyManager::GetUpdatesSuppressedTimes() const {}

std::optional<std::string> DefaultValuesPolicyManager::GetDownloadPreference()
    const {}

std::optional<int> DefaultValuesPolicyManager::GetPackageCacheSizeLimitMBytes()
    const {}

std::optional<int>
DefaultValuesPolicyManager::GetPackageCacheExpirationTimeDays() const {}

std::optional<int> DefaultValuesPolicyManager::GetEffectivePolicyForAppInstalls(
    const std::string& app_id) const {}

std::optional<int> DefaultValuesPolicyManager::GetEffectivePolicyForAppUpdates(
    const std::string& app_id) const {}

std::optional<std::string> DefaultValuesPolicyManager::GetTargetVersionPrefix(
    const std::string& app_id) const {}

std::optional<bool>
DefaultValuesPolicyManager::IsRollbackToTargetVersionAllowed(
    const std::string& app_id) const {}

std::optional<std::string> DefaultValuesPolicyManager::GetProxyMode() const {}

std::optional<std::string> DefaultValuesPolicyManager::GetProxyPacUrl() const {}

std::optional<std::string> DefaultValuesPolicyManager::GetProxyServer() const {}

std::optional<std::string> DefaultValuesPolicyManager::GetTargetChannel(
    const std::string& app_id) const {}

std::optional<std::vector<std::string>>
DefaultValuesPolicyManager::GetForceInstallApps() const {}

std::optional<std::vector<std::string>>
DefaultValuesPolicyManager::GetAppsWithPolicy() const {}

scoped_refptr<PolicyManagerInterface> GetDefaultValuesPolicyManager() {}

}  // namespace updater