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

Unified Diff: chrome/browser/history/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/history_backend.h
===================================================================
--- chrome/browser/history/history_backend.h (revision 3954)
+++ chrome/browser/history/history_backend.h (working copy)
@@ -197,16 +197,16 @@
void CreateDownload(scoped_refptr<DownloadCreateRequest> request,
const DownloadCreateInfo& info);
void RemoveDownload(int64 db_handle);
- void RemoveDownloadsBetween(const Time remove_begin,
- const Time remove_end);
- void RemoveDownloads(const Time remove_end);
+ void RemoveDownloadsBetween(const base::Time remove_begin,
+ const base::Time remove_end);
+ void RemoveDownloads(const base::Time remove_end);
void SearchDownloads(scoped_refptr<DownloadSearchRequest>,
const std::wstring& search_text);
// Segment usage -------------------------------------------------------------
void QuerySegmentUsage(scoped_refptr<QuerySegmentUsageRequest> request,
- const Time from_time);
+ const base::Time from_time);
void DeleteOldSegmentData();
void SetSegmentPresentationIndex(SegmentID segment_id, int index);
@@ -234,8 +234,8 @@
// Calls ExpireHistoryBackend::ExpireHistoryBetween and commits the change.
void ExpireHistoryBetween(scoped_refptr<ExpireHistoryRequest> request,
- Time begin_time,
- Time end_time);
+ base::Time begin_time,
+ base::Time end_time);
// Bookmarks -----------------------------------------------------------------
@@ -282,7 +282,7 @@
// This does not schedule database commits, it is intended to be used as a
// subroutine for AddPage only. It also assumes the database is valid.
std::pair<URLID, VisitID> AddPageVisit(const GURL& url,
- Time time,
+ base::Time time,
VisitID referring_visit,
PageTransition::Type transition);
@@ -345,7 +345,7 @@
VisitID from_visit,
VisitID visit_id,
PageTransition::Type transition_type,
- const Time ts);
+ const base::Time ts);
// Favicons ------------------------------------------------------------------
@@ -454,13 +454,13 @@
// of the timer), so we can try to ensure they're unique when they're added
// to the database by using the last_recorded_time_ (q.v.). We still can't
// enforce or guarantee uniqueness, since the user might set his clock back.
- Time last_requested_time_;
+ base::Time last_requested_time_;
// Timestamp of the last page addition, as it was recorded in the database.
// If two or more requests come in at the same time, we increment that time
// by 1 us between them so it's more likely to be unique in the database.
// This keeps track of that higher-resolution timestamp.
- Time last_recorded_time_;
+ base::Time last_recorded_time_;
// When non-NULL, this is the task that should be invoked on
MessageLoop* backend_destroy_message_loop_;

Powered by Google App Engine
This is Rietveld 408576698