83 lines
2.6 KiB
C++
83 lines
2.6 KiB
C++
// 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
|