chromium/chrome/browser/notifications/scheduler/internal/scheduler_config.cc

// Copyright 2019 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/browser/notifications/scheduler/internal/scheduler_config.h"

#include <string>

#include "base/metrics/field_trial_params.h"
#include "base/numerics/clamped_math.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/notifications/scheduler/public/features.h"

namespace notifications {
namespace {

// Helper routine to get Finch experiment parameter. If no Finch seed was
// found,
// use the |default_value|. The |name| should match an experiment
// parameter in Finch server configuration.
int GetFinchConfigUInt(const std::string& name, int default_value) {}

}  // namespace

// Default number of maximum daily shown all type.
constexpr int kDefaultMaxDailyShownAllType =;

// Default number of maximum daily shown per type.
constexpr int kDefaultMaxDailyShownPerType =;

// Default number of initial daily shown per type.
constexpr int kDefaultInitialDailyShownPerType =;

// Default number of dismiss count.
constexpr int kDefaultDismissCount =;

// The notification data is hold for one week.
constexpr base::TimeDelta kDefaultNotificationExpiration =;

// The impression history is hold for 4 weeks.
constexpr base::TimeDelta kDefaultImpressionExpiration =;

// The suppression lasts 8 weeks.
constexpr base::TimeDelta kDefaultSuppressionDuration =;

// Check consecutive notification dismisses in this duration to generate a
// dismiss event.
constexpr base::TimeDelta kDefaultDismissDuration =;

// Default background task time window duration.
constexpr base::TimeDelta kDefaultBackgroundTaskWindowDuration =;

// static
std::unique_ptr<SchedulerConfig> SchedulerConfig::Create() {}

std::unique_ptr<SchedulerConfig> SchedulerConfig::CreateFromFinch() {}

SchedulerConfig::SchedulerConfig()
    :{}

SchedulerConfig::~SchedulerConfig() = default;

}  // namespace notifications