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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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