| OLD | NEW |
| 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 Loading... |
| 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|. |
| 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_ |
| OLD | NEW |