From 21e2affa57ee95c17f8ef213f88d18cf072ca3cd Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 18 Jul 2006 18:35:48 +0000 Subject: [PATCH] Bug 328598 r=bryner Expire history as you browse for faster shutdown times. Original committer: brettw%gmail.com Original revision: 1.69 Original date: 2006/04/10 22:29:32 --- .../places/src/nsNavHistoryResult.cpp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/toolkit/components/places/src/nsNavHistoryResult.cpp b/toolkit/components/places/src/nsNavHistoryResult.cpp index b4e81fb0bf1..5af6b3515ff 100644 --- a/toolkit/components/places/src/nsNavHistoryResult.cpp +++ b/toolkit/components/places/src/nsNavHistoryResult.cpp @@ -2205,6 +2205,19 @@ nsNavHistoryQueryResultNode::OnPageChanged(nsIURI *aURI, PRUint32 aWhat, } +// nsNavHistoryQueryResultNode::OnPageExpired +// +// Do nothing. Perhaps we want to handle this case. If so, add the call to +// the result to enumerate the history observers. + +NS_IMETHODIMP +nsNavHistoryQueryResultNode::OnPageExpired(nsIURI* aURI, PRTime aVisitTime, + PRBool aWholeEntry) +{ + return NS_OK; +} + + // nsNavHistoryQueryResultNode bookmark observers // // These are the bookmark observer functions for query nodes. They listen @@ -3713,6 +3726,20 @@ nsNavHistoryResult::OnPageChanged(nsIURI *aURI, return NS_OK; } + +// nsNavHistoryResult;:OnPageExpired (nsINavHistoryObserver) +// +// Don't do anything when pages expire. Perhaps we want to find the item +// to delete it. + +NS_IMETHODIMP +nsNavHistoryResult::OnPageExpired(nsIURI* aURI, PRTime aVisitTime, + PRBool aWholeEntry) +{ + return NS_OK; +} + + // nsNavHistoryResultTreeViewer ************************************************ NS_IMPL_ADDREF(nsNavHistoryResultTreeViewer)