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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_ 5 #ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_ 6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Adds a new navigation to the store. |opt_out| is whether the user opted out 44 // Adds a new navigation to the store. |opt_out| is whether the user opted out
45 // of the preview. 45 // of the preview.
46 virtual void AddPreviewNavigation(bool opt_out, 46 virtual void AddPreviewNavigation(bool opt_out,
47 const std::string& host_name, 47 const std::string& host_name,
48 PreviewsType type, 48 PreviewsType type,
49 base::Time now) = 0; 49 base::Time now) = 0;
50 50
51 // Asynchronously loads a map of host names to PreviewsBlackListItem for that 51 // Asynchronously loads a map of host names to PreviewsBlackListItem for that
52 // host from the store. And runs |callback| once loading is finished. 52 // host from the store. And runs |callback| once loading is finished.
53 virtual void LoadBlackList(LoadBlackListCallback callback) = 0; 53 virtual void LoadBlackList(LoadBlackListCallback callback) = 0;
54
55 // Deletes all history in the store between |begin_time| and |end_time|.
tbansal1 2016/10/04 00:17:00 s/Deletes/Synchronously deletes/ Also add: both i
tbansal1 2016/10/04 01:31:46 nm, this makes sense now.
56 virtual void ClearBlackList(base::Time begin_time, base::Time end_time) = 0;
54 }; 57 };
55 58
56 } // namespace previews 59 } // namespace previews
57 60
58 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_ 61 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_OPT_OUT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698