| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_HISTORY_BROWSING_HISTORY_SERVICE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_HISTORY_BROWSING_HISTORY_SERVICE_HANDLER_H_ |
| 7 |
| 8 #include "chrome/browser/history/browsing_history_service.h" |
| 9 |
| 10 // Interface for handling calls from the BrowsingHistoryService. |
| 11 class BrowsingHistoryServiceHandler { |
| 12 public: |
| 13 // Callback for QueryHistory(). |
| 14 virtual void OnQueryComplete( |
| 15 std::vector<BrowsingHistoryService::HistoryEntry>* results, |
| 16 BrowsingHistoryService::QueryResultsInfo* query_results_info) = 0; |
| 17 |
| 18 // Callback for RemoveVisits(). |
| 19 virtual void OnRemoveVisitsComplete() = 0; |
| 20 |
| 21 // Callback for RemoveVisits() that fails. |
| 22 virtual void OnRemoveVisitsFailed() = 0; |
| 23 |
| 24 // Called when HistoryService or WebHistoryService deletes one or more |
| 25 // items. |
| 26 virtual void HistoryDeleted() = 0; |
| 27 |
| 28 // Whether other forms of browsing history were found on the history |
| 29 // service. |
| 30 virtual void HasOtherFormsOfBrowsingHistory( |
| 31 bool has_other_forms, bool has_synced_results) = 0; |
| 32 |
| 33 protected: |
| 34 BrowsingHistoryServiceHandler() {} |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(BrowsingHistoryServiceHandler); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_HISTORY_BROWSING_HISTORY_SERVICE_HANDLER_H_ |
| OLD | NEW |