mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
Add files via upload
This commit is contained in:
parent
f1d138d674
commit
417ae81dfe
1 changed files with 83 additions and 0 deletions
83
components/download/public/common/download_features.cc
Normal file
83
components/download/public/common/download_features.cc
Normal 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
|
Loading…
Reference in a new issue