1 // Copyright 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/download/public/common/download_features.h" 6 7 #include "build/build_config.h" 8 9 namespace download { 10 namespace features { 11 12 const base::Feature kUseDownloadOfflineContentProvider{ 13 "UseDownloadOfflineContentProvider", base::FEATURE_DISABLED_BY_DEFAULT}; 14 15 const base::Feature kDownloadAutoResumptionNative { 16 "DownloadsAutoResumptionNative", 17 #if defined(OS_ANDROID) 18 base::FEATURE_DISABLED_BY_DEFAULT 19 #else 20 base::FEATURE_DISABLED_BY_DEFAULT 21 #endif 22 }; 23 24 const base::Feature kParallelDownloading { 25 "ParallelDownloading", 26 #if defined(OS_ANDROID) 27 base::FEATURE_ENABLED_BY_DEFAULT 28 #else 29 base::FEATURE_DISABLED_BY_DEFAULT 30 #endif 31 }; 32 33 const base::Feature kDownloadLater{"DownloadLater", 34 base::FEATURE_DISABLED_BY_DEFAULT}; 35 36 #if defined(OS_ANDROID) 37 const base::Feature kSmartSuggestionForLargeDownloads{ 38 "SmartSuggestionForLargeDownloads", base::FEATURE_DISABLED_BY_DEFAULT}; 39 40 const base::Feature kRefreshExpirationDate{"RefreshExpirationDate", 41 base::FEATURE_ENABLED_BY_DEFAULT}; 42 #endif 43 44 const base::Feature kUseInProgressDownloadManagerForDownloadService{ 45 "UseInProgressDownloadManagerForDownloadService", 46 base::FEATURE_DISABLED_BY_DEFAULT}; 47 48 const base::Feature kAllowDownloadResumptionWithoutStrongValidators{ 49 "AllowDownloadResumptionWithoutStrongValidators", 50 #if defined(OS_ANDROID) 51 base::FEATURE_ENABLED_BY_DEFAULT 52 #else 53 base::FEATURE_DISABLED_BY_DEFAULT 54 #endif 55 }; 56 57 const base::Feature kUseParallelRequestsForUnknwonRangeSupport{ 58 "UseParallelRequestForUnknownRangeSupport", 59 base::FEATURE_ENABLED_BY_DEFAULT}; 60 61 const base::Feature kUseParallelRequestsForHTTP2{ 62 "UseParallelRequestsForHTTP2", base::FEATURE_ENABLED_BY_DEFAULT}; 63 64 const base::Feature kUseParallelRequestsForQUIC{ 65 "UseParallelRequestsForQUIC", base::FEATURE_ENABLED_BY_DEFAULT}; 66 67 const base::Feature kDeleteExpiredDownloads{"DeleteExpiredDownloads", 68 base::FEATURE_ENABLED_BY_DEFAULT}; 69 70 } // namespace features 71 72 namespace switches { 73 74 const char kDownloadLaterDebugOnWifi[] = "download-later-debug-on-wifi"; 75 76 } // namespace switches 77 78 } // namespace download 79