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

Unified Diff: chrome/browser/history/browsing_history_service_handler.h

Issue 2450453002: Refactor BrowsingHistoryHandler, create BrowsingHistoryService (Closed)
Patch Set: Add missing import Created 4 years, 1 month 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: chrome/browser/history/browsing_history_service_handler.h
diff --git a/chrome/browser/history/browsing_history_service_handler.h b/chrome/browser/history/browsing_history_service_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..a00cb83e3dd4288aa2309275c65e6ada9983dc30
--- /dev/null
+++ b/chrome/browser/history/browsing_history_service_handler.h
@@ -0,0 +1,39 @@
+// 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 CHROME_BROWSER_HISTORY_BROWSING_HISTORY_SERVICE_HANDLER_H_
+#define CHROME_BROWSER_HISTORY_BROWSING_HISTORY_SERVICE_HANDLER_H_
+
+#include "chrome/browser/history/browsing_history_service.h"
+
+// Interface for handling calls from the BrowsingHistoryService.
+class BrowsingHistoryServiceHandler {
+ public:
+ // Callback for QueryHistory().
+ virtual void OnQueryComplete(
+ std::vector<BrowsingHistoryService::HistoryEntry>* results,
+ BrowsingHistoryService::QueryResultsInfo* query_results_info) = 0;
+
+ // Callback for RemoveVisits().
+ virtual void OnRemoveVisitsComplete() = 0;
+
+ // Callback for RemoveVisits() that fails.
+ virtual void OnRemoveVisitsFailed() = 0;
+
+ // Called when HistoryService or WebHistoryService deletes one or more
+ // items.
+ virtual void HistoryDeleted() = 0;
+
+ // Whether other forms of browsing history were found on the history
+ // service.
+ virtual void HasOtherFormsOfBrowsingHistory(
+ bool has_other_forms, bool has_synced_results) = 0;
+
+ protected:
+ BrowsingHistoryServiceHandler() {}
+
+ DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryServiceHandler);
+};
+
+#endif // CHROME_BROWSER_HISTORY_BROWSING_HISTORY_SERVICE_HANDLER_H_
« no previous file with comments | « chrome/browser/history/browsing_history_service.cc ('k') | chrome/browser/history/browsing_history_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698