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/history/core/browser/web_history_service_observer.h

Issue 2263613002: Make BrowsingDataHandler observe WebHistoryService deletions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved comments inside 'if'. Created 4 years, 4 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/history/core/browser/web_history_service_observer.h
diff --git a/components/history/core/browser/web_history_service_observer.h b/components/history/core/browser/web_history_service_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..00fc817108cd048fd55794e731cd5646055c0f32
--- /dev/null
+++ b/components/history/core/browser/web_history_service_observer.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_HISTORY_CORE_BROWSER_WEB_HISTORY_SERVICE_OBSERVER_H_
+#define COMPONENTS_HISTORY_CORE_BROWSER_WEB_HISTORY_SERVICE_OBSERVER_H_
+
+namespace history {
+
+// Observes WebHistoryService actions. Currently only history expiration
+// is supported.
+// TODO(msramek): Consider defining ObservableHistoryService as a common
+// abstract ancestor for HistoryService and WebHistoryService. Then, we could
+// change the signatures of HistoryServiceObserver to use it for both classes.
+class WebHistoryServiceObserver {
+ public:
+ // Called after a successful WebHistoryService deletion request. This could
+ // be partial or complete history deletion.
+ virtual void OnWebHistoryDeleted() = 0;
+
+ protected:
+ virtual ~WebHistoryServiceObserver() {}
+};
+
+} // history
+
+#endif // COMPONENTS_HISTORY_CORE_BROWSER_WEB_HISTORY_SERVICE_OBSERVER_H_
« no previous file with comments | « components/history/core/browser/web_history_service.cc ('k') | components/history/core/test/fake_web_history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698