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

Unified Diff: components/offline_pages/core/offline_page_feature.h

Issue 2602473004: Offline Page Cache uses user interaction triggers for saving pages. (Closed)
Patch Set: Rebased and added the other missing histogram.xml entry... Created 3 years, 12 months 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 side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/offline_page_feature.h
diff --git a/components/offline_pages/core/offline_page_feature.h b/components/offline_pages/core/offline_page_feature.h
index 3210afb696e4eddf63f9d3ca31b185248eb4d493..242adb45f4f051bf9b7781539f32d8c7a7c2d6ec 100644
--- a/components/offline_pages/core/offline_page_feature.h
+++ b/components/offline_pages/core/offline_page_feature.h
@@ -12,6 +12,7 @@ namespace offline_pages {
extern const base::Feature kOfflineBookmarksFeature;
extern const base::Feature kOffliningRecentPagesFeature;
+extern const base::Feature kOffliningUsesNavigationTriggersFeature;
extern const base::Feature kOfflinePagesSvelteConcurrentLoadingFeature;
extern const base::Feature kOfflinePagesCTFeature;
extern const base::Feature kOfflinePagesSharingFeature;
@@ -25,6 +26,14 @@ bool IsOfflineBookmarksEnabled();
// Returns true if offlining of recent pages (aka 'Last N pages') is enabled.
bool IsOffliningRecentPagesEnabled();
+// Returns true only if both offlining of recent pages is enabled and navigation
+// events should be used to create snapshots of recent pages.
+bool IsOffliningRecentPagesUsingNavigationTriggers();
+
+// Returns true only if both offlining of recent pages is enabled and user
+// interaction events should be used to create snapshots of recent pages.
+bool IsOffliningRecentPagesUsingInteractionTriggers();
+
// Returns true if offline CT features are enabled. See crbug.com/620421.
bool IsOfflinePagesCTEnabled();

Powered by Google App Engine
This is Rietveld 408576698