Add files via upload

This commit is contained in:
Alexander David Frick 2022-05-12 08:17:49 -05:00 committed by GitHub
parent f1d138d674
commit 417ae81dfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,83 @@
// Copyright 2022 The Chromium Authors and Alex313031. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/download/public/common/download_features.h"
#include "build/build_config.h"
namespace download {
namespace features {
const base::Feature kUseDownloadOfflineContentProvider{
"UseDownloadOfflineContentProvider", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kDownloadAutoResumptionNative {
"DownloadsAutoResumptionNative",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
const base::Feature kParallelDownloading {
"ParallelDownloading",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_ENABLED_BY_DEFAULT
#endif
};
const base::Feature kDownloadLater{"DownloadLater",
base::FEATURE_DISABLED_BY_DEFAULT};
#if BUILDFLAG(IS_ANDROID)
const base::Feature kSmartSuggestionForLargeDownloads{
"SmartSuggestionForLargeDownloads", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kRefreshExpirationDate{"RefreshExpirationDate",
base::FEATURE_ENABLED_BY_DEFAULT};
#endif
const base::Feature kUseInProgressDownloadManagerForDownloadService{
"UseInProgressDownloadManagerForDownloadService",
base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kAllowDownloadResumptionWithoutStrongValidators{
"AllowDownloadResumptionWithoutStrongValidators",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
const base::Feature kUseParallelRequestsForHTTP2{
"UseParallelRequestsForHTTP2", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kUseParallelRequestsForQUIC{
"UseParallelRequestsForQUIC", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kDeleteExpiredDownloads{"DeleteExpiredDownloads",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kDeleteOverwrittenDownloads{
"DeleteOverwrittenDownloads", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kAllowFileBufferSizeControl{
"AllowFileBufferSizeControl", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kDownloadRange{"DownloadRange",
base::FEATURE_ENABLED_BY_DEFAULT};
} // namespace features
namespace switches {
const char kDownloadLaterDebugOnWifi[] = "download-later-debug-on-wifi";
} // namespace switches
} // namespace download