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

Unified Diff: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h

Issue 2342443006: [Offline pages] Use the new policy bits (Closed)
Patch Set: fix download bridge and ntp suggestions to use correct policy controller Created 4 years, 3 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/ntp_snippets/offline_pages/offline_page_suggestions_provider.h
diff --git a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h
index c4552a6810112a1df2c9a4914489863322bb0c28..0155b249c71b371bfc0d20f9aff5b7f48635824b 100644
--- a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h
+++ b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h
@@ -25,6 +25,10 @@ namespace gfx {
class Image;
}
+namespace offline_pages {
+struct ClientId;
+}
+
namespace ntp_snippets {
// Provides content suggestions from the offline pages model.
@@ -115,6 +119,12 @@ class OfflinePageSuggestionsProvider
void StoreDismissedIDsToPrefs(Category category,
const std::set<std::string>& dismissed_ids);
+ // Determine if |client_id| is supported by downloads feature.
+ bool IsDownload(const offline_pages::ClientId& client_id);
+
+ // Determine if |client_id| is supported by recent tabs feature.
+ bool IsRecentTab(const offline_pages::ClientId& client_id);
+
CategoryStatus recent_tabs_status_;
CategoryStatus downloads_status_;

Powered by Google App Engine
This is Rietveld 408576698