Update download_features.cc

This commit is contained in:
Alexander David Frick 2022-10-14 19:36:43 -05:00 committed by GitHub
parent 1d8d14557b
commit 60447834f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
// Copyright 2022 The Chromium Authors and Alex313031. All rights reserved.
// Copyright 2022 The Chromium Authors and Alex313031.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -9,75 +9,73 @@
namespace download {
namespace features {
const base::Feature kUseDownloadOfflineContentProvider{
"UseDownloadOfflineContentProvider", base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kUseDownloadOfflineContentProvider,
"UseDownloadOfflineContentProvider",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::Feature kDownloadAutoResumptionNative {
"DownloadsAutoResumptionNative",
BASE_FEATURE(kDownloadAutoResumptionNative,
"DownloadsAutoResumptionNative",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
);
const base::Feature kParallelDownloading {
"ParallelDownloading",
BASE_FEATURE(kParallelDownloading,
"ParallelDownloading",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_ENABLED_BY_DEFAULT
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};
BASE_FEATURE(kSmartSuggestionForLargeDownloads,
"SmartSuggestionForLargeDownloads",
base::FEATURE_DISABLED_BY_DEFAULT);
const base::Feature kRefreshExpirationDate{"RefreshExpirationDate",
base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kRefreshExpirationDate,
"RefreshExpirationDate",
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
const base::Feature kUseInProgressDownloadManagerForDownloadService{
"UseInProgressDownloadManagerForDownloadService",
base::FEATURE_DISABLED_BY_DEFAULT};
BASE_FEATURE(kUseInProgressDownloadManagerForDownloadService,
"UseInProgressDownloadManagerForDownloadService",
base::FEATURE_DISABLED_BY_DEFAULT);
const base::Feature kAllowDownloadResumptionWithoutStrongValidators{
"AllowDownloadResumptionWithoutStrongValidators",
BASE_FEATURE(kAllowDownloadResumptionWithoutStrongValidators,
"AllowDownloadResumptionWithoutStrongValidators",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
);
const base::Feature kUseParallelRequestsForHTTP2{
"UseParallelRequestsForHTTP2", base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kUseParallelRequestsForHTTP2,
"UseParallelRequestsForHTTP2",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::Feature kUseParallelRequestsForQUIC{
"UseParallelRequestsForQUIC", base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kUseParallelRequestsForQUIC,
"UseParallelRequestsForQUIC",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::Feature kDeleteExpiredDownloads{"DeleteExpiredDownloads",
base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kDeleteExpiredDownloads,
"DeleteExpiredDownloads",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::Feature kDeleteOverwrittenDownloads{
"DeleteOverwrittenDownloads", base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kDeleteOverwrittenDownloads,
"DeleteOverwrittenDownloads",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::Feature kAllowFileBufferSizeControl{
"AllowFileBufferSizeControl", base::FEATURE_ENABLED_BY_DEFAULT};
BASE_FEATURE(kAllowFileBufferSizeControl,
"AllowFileBufferSizeControl",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::Feature kDownloadRange{"DownloadRange",
base::FEATURE_ENABLED_BY_DEFAULT};
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