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

Unified Diff: chrome/browser/history/expire_history_backend.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/expire_history_backend.h
===================================================================
--- chrome/browser/history/expire_history_backend.h (revision 3954)
+++ chrome/browser/history/expire_history_backend.h (working copy)
@@ -59,25 +59,25 @@
// Begins periodic expiration of history older than the given threshold. This
// will continue until the object is deleted.
- void StartArchivingOldStuff(TimeDelta expiration_threshold);
+ void StartArchivingOldStuff(base::TimeDelta expiration_threshold);
// Deletes everything associated with a URL.
void DeleteURL(const GURL& url);
// Removes all visits in the given time range, updating the URLs accordingly.
- void ExpireHistoryBetween(Time begin_time, Time end_time);
+ void ExpireHistoryBetween(base::Time begin_time, base::Time end_time);
// Archives all visits before and including the given time, updating the URLs
// accordingly. This function is intended for migrating old databases
// (which encompased all time) to the tiered structure and testing, and
// probably isn't useful for anything else.
- void ArchiveHistoryBefore(Time end_time);
+ void ArchiveHistoryBefore(base::Time end_time);
// Returns the current time that we are archiving stuff to. This will return
// the threshold in absolute time rather than a delta, so the caller should
// not save it.
- Time GetCurrentArchiveTime() const {
- return Time::Now() - expiration_threshold_;
+ base::Time GetCurrentArchiveTime() const {
+ return base::Time::Now() - expiration_threshold_;
}
private:
@@ -90,7 +90,7 @@
struct DeleteDependencies {
// The time range affected. These can be is_null() to be unbounded in one
// or both directions.
- Time begin_time, end_time;
+ base::Time begin_time, end_time;
// ----- Filled by DeleteVisitRelatedInfo or manually if a function doesn't
// call that function. -----
@@ -208,7 +208,7 @@
// Schedules a call to DoArchiveIteration at the given time in the
// future.
- void ScheduleArchive(TimeDelta delay);
+ void ScheduleArchive(base::TimeDelta delay);
// Calls ArchiveSomeOldHistory to expire some amount of old history, and
// schedules another call to happen in the future.
@@ -218,7 +218,7 @@
// than |time_threshold|. The return value indicates if we think there might
// be more history to expire with the current time threshold (it does not
// indicate success or failure).
- bool ArchiveSomeOldHistory(Time time_threshold, int max_visits);
+ bool ArchiveSomeOldHistory(base::Time time_threshold, int max_visits);
// Tries to detect possible bad history or inconsistencies in the database
// and deletes items. For example, URLs with no visits.
@@ -243,7 +243,7 @@
// The threshold for "old" history where we will automatically expire it to
// the archived database.
- TimeDelta expiration_threshold_;
+ base::TimeDelta expiration_threshold_;
// The BookmarkService; may be null. This is owned by the Profile.
//

Powered by Google App Engine
This is Rietveld 408576698