chromium/components/reporting/storage/storage_configuration.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/reporting/storage/storage_configuration.h"

#include "base/files/file_path.h"

namespace reporting {

namespace {

// Parameters of individual queues.
// TODO(b/159352842): Deliver space and upload parameters from outside.

constexpr base::FilePath::CharType kSecurityQueueSubdir[] =);
constexpr base::FilePath::CharType kSecurityQueuePrefix[] =);

constexpr base::FilePath::CharType kImmediateQueueSubdir[] =);
constexpr base::FilePath::CharType kImmediateQueuePrefix[] =);

constexpr base::FilePath::CharType kFastBatchQueueSubdir[] =);
constexpr base::FilePath::CharType kFastBatchQueuePrefix[] =);
constexpr base::TimeDelta kFastBatchUploadPeriod =;

constexpr base::FilePath::CharType kSlowBatchQueueSubdir[] =);
constexpr base::FilePath::CharType kSlowBatchQueuePrefix[] =);
constexpr base::TimeDelta kSlowBatchUploadPeriod =;

constexpr base::FilePath::CharType kBackgroundQueueSubdir[] =);
constexpr base::FilePath::CharType kBackgroundQueuePrefix[] =);
constexpr base::TimeDelta kBackgroundQueueUploadPeriod =;

constexpr base::FilePath::CharType kManualQueueSubdir[] =);
constexpr base::FilePath::CharType kManualQueuePrefix[] =);
constexpr base::TimeDelta kManualUploadPeriod =;

constexpr base::FilePath::CharType kManualLacrosQueueSubdir[] =);
constexpr base::FilePath::CharType kManualLacrosQueuePrefix[] =);

// Failed upload retry delay: if an upload fails and there are no more incoming
// events, collected events will not get uploaded for an indefinite time (see
// b/192666219).
constexpr base::TimeDelta kFailedUploadRetryDelay =;

}  // namespace

StorageOptions::StorageOptions()
    :{}
StorageOptions::StorageOptions(const StorageOptions& options) = default;
StorageOptions::~StorageOptions() = default;

// Returns vector of <priority, queue_options> for all expected queues in
// Storage. Queues are all located under the given root directory.
StorageOptions::QueuesOptionsList StorageOptions::ProduceQueuesOptions() const {}

QueueOptions::QueueOptions(const StorageOptions& storage_options)
    :{}
QueueOptions::QueueOptions(const QueueOptions& options) = default;
}  // namespace reporting