Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: components/offline_pages/offline_page_feature.h

Issue 2483463002: [Offline Pages] Feature flag to allow concurrent background loading on svelte (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 kOfflinePagesSvelteConcurrentLoadingFeature;
15 extern const base::Feature kOfflinePagesCTFeature; 16 extern const base::Feature kOfflinePagesCTFeature;
16 extern const base::Feature kOfflinePagesSharingFeature; 17 extern const base::Feature kOfflinePagesSharingFeature;
17 extern const base::Feature kBackgroundLoaderForDownloadsFeature; 18 extern const base::Feature kBackgroundLoaderForDownloadsFeature;
18 extern const base::Feature kOfflinePagesAsyncDownloadFeature; 19 extern const base::Feature kOfflinePagesAsyncDownloadFeature;
19 20
20 // Returns true if saving bookmarked pages for offline viewing is enabled. 21 // Returns true if saving bookmarked pages for offline viewing is enabled.
21 bool IsOfflineBookmarksEnabled(); 22 bool IsOfflineBookmarksEnabled();
22 23
23 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled. 24 // Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
24 bool IsOffliningRecentPagesEnabled(); 25 bool IsOffliningRecentPagesEnabled();
25 26
26 // Returns true if offline CT features are enabled. See crbug.com/620421. 27 // Returns true if offline CT features are enabled. See crbug.com/620421.
27 bool IsOfflinePagesCTEnabled(); 28 bool IsOfflinePagesCTEnabled();
28 29
29 // Returns true if offline page sharing is enabled. 30 // Returns true if offline page sharing is enabled.
30 bool IsOfflinePagesSharingEnabled(); 31 bool IsOfflinePagesSharingEnabled();
31 32
32 // Returns true if saving a foreground tab that is taking too long using the 33 // Returns true if saving a foreground tab that is taking too long using the
33 // background scheduler is enabled. 34 // background scheduler is enabled.
34 bool IsBackgroundLoaderForDownloadsEnabled(); 35 bool IsBackgroundLoaderForDownloadsEnabled();
35 36
37 // Returns true if concurrent background loading is enabled for svelte.
38 bool IsOfflinePagesSvelteConcurrentLoadingEnabled();
39
36 // Returns true if downloading a page asynchonously is enabled. 40 // Returns true if downloading a page asynchonously is enabled.
37 bool IsOfflinePagesAsyncDownloadEnabled(); 41 bool IsOfflinePagesAsyncDownloadEnabled();
38 42
39 } // namespace offline_pages 43 } // namespace offline_pages
40 44
41 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_ 45 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_FEATURE_H_
OLDNEW
« no previous file with comments | « components/offline_pages/background/request_coordinator_unittest.cc ('k') | components/offline_pages/offline_page_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698