| 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_CORE_OFFLINE_PAGE_FEATURE_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_FEATURE_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_OFFLINE_PAGE_FEATURE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_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 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Returns true if concurrent background loading is enabled for svelte. | 38 // Returns true if concurrent background loading is enabled for svelte. |
| 39 bool IsOfflinePagesSvelteConcurrentLoadingEnabled(); | 39 bool IsOfflinePagesSvelteConcurrentLoadingEnabled(); |
| 40 | 40 |
| 41 // Returns true if downloading a page asynchonously is enabled. | 41 // Returns true if downloading a page asynchonously is enabled. |
| 42 bool IsOfflinePagesAsyncDownloadEnabled(); | 42 bool IsOfflinePagesAsyncDownloadEnabled(); |
| 43 | 43 |
| 44 // Returns true if we should use background loader rather than prerenderer | 44 // Returns true if we should use background loader rather than prerenderer |
| 45 // to offline pages. | 45 // to offline pages. |
| 46 bool ShouldUseNewBackgroundLoader(); | 46 bool ShouldUseNewBackgroundLoader(); |
| 47 | 47 |
| 48 // Returns true if a command line for test has been set that shortens the |
| 49 // snapshot delay. |
| 50 bool ShouldUseTestingSnapshotDelay(); |
| 51 |
| 48 } // namespace offline_pages | 52 } // namespace offline_pages |
| 49 | 53 |
| 50 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ | 54 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ |
| OLD | NEW |