| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ | |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ | |
| 7 | |
| 8 #include "base/feature_list.h" | |
| 9 #include "build/build_config.h" | |
| 10 | |
| 11 namespace offline_pages { | |
| 12 | |
| 13 extern const base::Feature kOfflineBookmarksFeature; | |
| 14 extern const base::Feature kOffliningRecentPagesFeature; | |
| 15 extern const base::Feature kOfflinePagesSvelteConcurrentLoadingFeature; | |
| 16 extern const base::Feature kOfflinePagesCTFeature; | |
| 17 extern const base::Feature kOfflinePagesSharingFeature; | |
| 18 extern const base::Feature kBackgroundLoaderForDownloadsFeature; | |
| 19 extern const base::Feature kOfflinePagesAsyncDownloadFeature; | |
| 20 | |
| 21 // Returns true if saving bookmarked pages for offline viewing is enabled. | |
| 22 bool IsOfflineBookmarksEnabled(); | |
| 23 | |
| 24 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled. | |
| 25 bool IsOffliningRecentPagesEnabled(); | |
| 26 | |
| 27 // Returns true if offline CT features are enabled. See crbug.com/620421. | |
| 28 bool IsOfflinePagesCTEnabled(); | |
| 29 | |
| 30 // Returns true if offline page sharing is enabled. | |
| 31 bool IsOfflinePagesSharingEnabled(); | |
| 32 | |
| 33 // Returns true if saving a foreground tab that is taking too long using the | |
| 34 // background scheduler is enabled. | |
| 35 bool IsBackgroundLoaderForDownloadsEnabled(); | |
| 36 | |
| 37 // Returns true if concurrent background loading is enabled for svelte. | |
| 38 bool IsOfflinePagesSvelteConcurrentLoadingEnabled(); | |
| 39 | |
| 40 // Returns true if downloading a page asynchonously is enabled. | |
| 41 bool IsOfflinePagesAsyncDownloadEnabled(); | |
| 42 | |
| 43 } // namespace offline_pages | |
| 44 | |
| 45 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ | |
| OLD | NEW |