| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ |
| 7 | 7 |
| 8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 namespace offline_pages { | 11 namespace offline_pages { |
| 12 | 12 |
| 13 extern const base::Feature kOfflineBookmarksFeature; | 13 extern const base::Feature kOfflineBookmarksFeature; |
| 14 extern const base::Feature kOffliningRecentPagesFeature; | 14 extern const base::Feature kOffliningRecentPagesFeature; |
| 15 extern const base::Feature kOfflinePagesBackgroundLoadingFeature; | 15 extern const base::Feature kOfflinePagesBackgroundLoadingFeature; |
| 16 extern const base::Feature kOfflinePagesCTFeature; | 16 extern const base::Feature kOfflinePagesCTFeature; |
| 17 extern const base::Feature kOfflinePagesSharingFeature; | 17 extern const base::Feature kOfflinePagesSharingFeature; |
| 18 extern const base::Feature kBackgroundLoaderForDownloadsFeature; | 18 extern const base::Feature kBackgroundLoaderForDownloadsFeature; |
| 19 | 19 |
| 20 // Returns true if offline pages, as result of one or more offline features | |
| 21 // being enabled, is enabled. | |
| 22 bool IsOfflinePagesEnabled(); | |
| 23 | |
| 24 // Returns true if saving bookmarked pages for offline viewing is enabled. | 20 // Returns true if saving bookmarked pages for offline viewing is enabled. |
| 25 bool IsOfflineBookmarksEnabled(); | 21 bool IsOfflineBookmarksEnabled(); |
| 26 | 22 |
| 27 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled. | 23 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled. |
| 28 bool IsOffliningRecentPagesEnabled(); | 24 bool IsOffliningRecentPagesEnabled(); |
| 29 | 25 |
| 30 // Returns true if saving offline pages in the background is enabled. | 26 // Returns true if saving offline pages in the background is enabled. |
| 31 bool IsOfflinePagesBackgroundLoadingEnabled(); | 27 bool IsOfflinePagesBackgroundLoadingEnabled(); |
| 32 | 28 |
| 33 // Returns true if offline CT features are enabled. See crbug.com/620421. | 29 // Returns true if offline CT features are enabled. See crbug.com/620421. |
| 34 bool IsOfflinePagesCTEnabled(); | 30 bool IsOfflinePagesCTEnabled(); |
| 35 | 31 |
| 36 // Returns true if offline page sharing is enabled. | 32 // Returns true if offline page sharing is enabled. |
| 37 bool IsOfflinePagesSharingEnabled(); | 33 bool IsOfflinePagesSharingEnabled(); |
| 38 | 34 |
| 39 bool IsBackgroundLoaderForDownloadsEnabled(); | 35 bool IsBackgroundLoaderForDownloadsEnabled(); |
| 40 | 36 |
| 41 } // namespace offline_pages | 37 } // namespace offline_pages |
| 42 | 38 |
| 43 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_>>>> Flag for Offline | 39 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_>>>> Flag for Offline |
| 44 // Page Sharing | 40 // Page Sharing |
| OLD | NEW |