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

Unified Diff: components/translate/core/browser/language_model.h

Issue 2649163003: [LanguageModel] Clear the model when clearing full history (Closed)
Patch Set: Rachel's comments Created 3 years, 11 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/translate/core/browser/language_model.h
diff --git a/components/translate/core/browser/language_model.h b/components/translate/core/browser/language_model.h
index 1dc7436ce1f01f730b82c8255d8b40be2891a49c..b6547f0f7c4f2b47d170faf9bfea5344405b80f7 100644
--- a/components/translate/core/browser/language_model.h
+++ b/components/translate/core/browser/language_model.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/time/time.h"
#include "components/keyed_service/core/keyed_service.h"
class PrefRegistrySimple;
@@ -56,6 +57,9 @@ class LanguageModel : public KeyedService {
// Informs the model that a page with the given language has been visited.
void OnPageVisited(const std::string& language_code);
+ // Reflect in the model that history from |begin| to |end| gets cleared.
+ void ClearHistory(base::Time begin, base::Time end);
+
private:
PrefService* pref_service_;

Powered by Google App Engine
This is Rietveld 408576698