mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Update download_features.cc
This commit is contained in:
parent
1d8d14557b
commit
60447834f8
1 changed files with 44 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue