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 IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_DELEGATE_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_DELEGATE_H_ |
| 7 |
| 8 #include "ios/chrome/browser/ui/history/history_service_facade.h" |
| 9 |
| 10 // Delegate for HistoryServiceFacade. Defines methods to manage history query |
| 11 // results and deletion actions. |
| 12 @protocol HistoryServiceFacadeDelegate<NSObject> |
| 13 |
| 14 @optional |
| 15 |
| 16 // Notifies the delegate that the result of a history query has been retrieved. |
| 17 // Entries in |result| are already sorted. |
| 18 - (void)historyServiceFacade:(HistoryServiceFacade*)facade |
| 19 didReceiveQueryResult:(HistoryServiceFacade::QueryResult)result; |
| 20 |
| 21 // Notifies the delegate that history entries have been deleted by a different |
| 22 // client and that the UI should be updated. |
| 23 - (void)historyServiceFacadeDidObserveHistoryDeletion: |
| 24 (HistoryServiceFacade*)facade; |
| 25 |
| 26 // Indicates to the delegate whether to show notice about other forms of |
| 27 // browsing history. |
| 28 - (void)historyServiceFacade:(HistoryServiceFacade*)facade |
| 29 shouldShowNoticeAboutOtherFormsOfBrowsingHistory:(BOOL)shouldShowNotice; |
| 30 |
| 31 // Notifies the delegate that history entry deletion has completed. |
| 32 - (void)historyServiceFacadeDidCompleteEntryRemoval: |
| 33 (HistoryServiceFacade*)facade; |
| 34 |
| 35 @end |
| 36 |
| 37 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_SERVICE_FACADE_DELEGATE_H_ |
OLD | NEW |