| 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_
|
|
|