support for downloads in history
This commit is contained in:
1 parent
9a0c00f842
commit
e20cb336b1
6 files changed
+128
-10
No files matched your search
@@ -26,7 +26,20 @@ class GeckoHistoryService {
|
||||
}
|
||||
|
||||
Future<void> deleteVisit(VisitInfo info) {
|
||||
return _api.deleteVisit(info.url, info.visitTime);
|
||||
switch (info.visitType) {
|
||||
case VisitType.link:
|
||||
case VisitType.typed:
|
||||
case VisitType.embed:
|
||||
case VisitType.redirectPermanent:
|
||||
case VisitType.redirectTemporary:
|
||||
case VisitType.framedLink:
|
||||
case VisitType.reload:
|
||||
return _api.deleteVisit(info.url, info.visitTime);
|
||||
case VisitType.download:
|
||||
return _api.deleteDownload(info.contentId!);
|
||||
case VisitType.bookmark:
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> deleteVisitsBetween(DateTime start, DateTime end) {
|
||||
|
||||
Reference in new issue
Block a user