1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
// Copyright 2018 The Chromium Authors
// 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 {
BASE_FEATURE(kParallelDownloading,
"ParallelDownloading",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
);
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
BASE_FEATURE(kBackoffInDownloading,
"BackoffInDownloading",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
bool IsBackoffInDownloadingEnabled() {
#if !BUILDFLAG(IS_WIN) && !BUILDFLAG(IS_MAC)
return false;
#else
return base::FeatureList::IsEnabled(kBackoffInDownloading);
#endif
}
#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kSmartSuggestionForLargeDownloads,
"SmartSuggestionForLargeDownloads",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kRefreshExpirationDate,
"RefreshExpirationDate",
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
BASE_FEATURE(kDownloadNotificationServiceUnifiedAPI,
"DownloadNotificationServiceUnifiedAPI",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
);
BASE_FEATURE(kUseInProgressDownloadManagerForDownloadService,
"UseInProgressDownloadManagerForDownloadService",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAllowDownloadResumptionWithoutStrongValidators,
"AllowDownloadResumptionWithoutStrongValidators",
#if BUILDFLAG(IS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
);
BASE_FEATURE(kUseParallelRequestsForHTTP2,
"UseParallelRequestsForHTTP2",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kUseParallelRequestsForQUIC,
"UseParallelRequestsForQUIC",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDeleteExpiredDownloads,
"DeleteExpiredDownloads",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDeleteOverwrittenDownloads,
"DeleteOverwrittenDownloads",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAllowFileBufferSizeControl,
"AllowFileBufferSizeControl",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAllowedMixedContentInlinePdf,
"AllowedMixedContentInlinePdf",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCopyImageFilenameToClipboard,
"CopyImageFilenameToClipboard",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kEnableAsyncNotificationManagerForDownload,
"EnableAsyncNotificationManagerForDownload",
base::FEATURE_DISABLED_BY_DEFAULT);
#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kEnableSavePackageForOffTheRecord,
"EnableSavePackageForOffTheRecord",
base::FEATURE_ENABLED_BY_DEFAULT);
#endif // BUILDFLAG(IS_ANDROID)
} // namespace features
} // namespace download
|