blob: f3471d1e37e64ff424408d5e736606f6e88f0e4f [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef STORAGE_BROWSER_QUOTA_QUOTA_FEATURES_H_
#define STORAGE_BROWSER_QUOTA_QUOTA_FEATURES_H_
#include "base/component_export.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
namespace storage {
namespace features {
COMPONENT_EXPORT(STORAGE_BROWSER)
BASE_DECLARE_FEATURE(kDisableQuotaDbFullFSync);
COMPONENT_EXPORT(STORAGE_BROWSER)
BASE_DECLARE_FEATURE(kNewQuotaEvictionRoutine);
COMPONENT_EXPORT(STORAGE_BROWSER) BASE_DECLARE_FEATURE(kStoragePressureEvent);
COMPONENT_EXPORT(STORAGE_BROWSER) BASE_DECLARE_FEATURE(kStorageQuotaSettings);
extern const base::FeatureParam<double> kMustRemainAvailableBytes;
extern const base::FeatureParam<double> kMustRemainAvailableRatio;
extern const base::FeatureParam<double> kPoolSizeBytes;
extern const base::FeatureParam<double> kPoolSizeRatio;
extern const base::FeatureParam<double> kShouldRemainAvailableBytes;
extern const base::FeatureParam<double> kShouldRemainAvailableRatio;
// Clears quota storage for opaque origins used in prior browsing sessions as
// they will no longer be reachable. See crbug.com/40281870 for more info.
// If kEvictStaleQuotaStorage is off this has no impact.
COMPONENT_EXPORT(STORAGE_BROWSER)
BASE_DECLARE_FEATURE(kEvictOrphanQuotaStorage);
// Clears quota storage last accessed/modified more than 400 days ago.
// See crbug.com/40281870 for more info.
COMPONENT_EXPORT(STORAGE_BROWSER)
BASE_DECLARE_FEATURE(kEvictStaleQuotaStorage);
} // namespace features
} // namespace storage
#endif // STORAGE_BROWSER_QUOTA_QUOTA_FEATURES_H_