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

Unified Diff: components/previews/core/previews_opt_out_store.h

Issue 2387823002: Adding ClearBlackList to the PreviewsBlackList and plumbing to UI (Closed)
Patch Set: tbansal comments Created 4 years, 2 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
« no previous file with comments | « components/previews/core/previews_io_data.cc ('k') | components/previews/core/previews_ui_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/previews/core/previews_opt_out_store.h
diff --git a/components/previews/core/previews_opt_out_store.h b/components/previews/core/previews_opt_out_store.h
index edcbc0233bd62973fdf33851fca43622cc98b7ab..15aa73f3f9c104ddb354350f64471c207ed37687 100644
--- a/components/previews/core/previews_opt_out_store.h
+++ b/components/previews/core/previews_opt_out_store.h
@@ -44,15 +44,18 @@ class PreviewsOptOutStore {
// Adds a new navigation to the store. |opt_out| is whether the user opted out
// of the preview.
virtual void AddPreviewNavigation(bool opt_out,
const std::string& host_name,
PreviewsType type,
base::Time now) = 0;
// Asynchronously loads a map of host names to PreviewsBlackListItem for that
// host from the store. And runs |callback| once loading is finished.
virtual void LoadBlackList(LoadBlackListCallback callback) = 0;
+
+ // Deletes all history in the store between |begin_time| and |end_time|.
+ virtual void ClearBlackList(base::Time begin_time, base::Time end_time) = 0;
};
} // namespace previews
#endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
« no previous file with comments | « components/previews/core/previews_io_data.cc ('k') | components/previews/core/previews_ui_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698