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

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

Issue 2858803002: [Offline Pages] Adding support for removed-on-cache-reset pages to query. (Closed)
Patch Set: reset offline_page_model.h Created 3 years, 8 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_model_query.h
diff --git a/components/offline_pages/core/offline_page_model_query.h b/components/offline_pages/core/offline_page_model_query.h
index 526c3707ab90cc1dc073d3693b0724544cdb48f3..ae79913a76570decc4d5f13c49ea44da41a9039a 100644
--- a/components/offline_pages/core/offline_page_model_query.h
+++ b/components/offline_pages/core/offline_page_model_query.h
@@ -86,6 +86,13 @@ class OfflinePageModelQueryBuilder {
const std::vector<GURL>& urls);
// Only include pages whose namespaces satisfy
+ // ClientPolicyController::IsRemovedOnCacheReset(|namespace|) ==
+ // |removed_on_cache_reset|
+ // Multiple calls overwrite previous ones.
+ OfflinePageModelQueryBuilder& RequireRemovedOnCacheReset(
+ Requirement removed_on_cache_reset);
+
+ // Only include pages whose namespaces satisfy
// ClientPolicyController::IsSupportedByDownload(|namespace|) ==
// |supported_by_download|
// Multiple calls overwrite previous ones.
@@ -123,6 +130,7 @@ class OfflinePageModelQueryBuilder {
std::pair<Requirement, std::vector<ClientId>> client_ids_;
std::pair<Requirement, std::vector<GURL>> urls_;
+ Requirement removed_on_cache_reset_ = Requirement::UNSET;
Requirement supported_by_download_ = Requirement::UNSET;
Requirement shown_as_recently_visited_site_ = Requirement::UNSET;
Requirement restricted_to_original_tab_ = Requirement::UNSET;

Powered by Google App Engine
This is Rietveld 408576698