Index: chrome/common/time_format.h |
=================================================================== |
--- chrome/common/time_format.h (revision 3954) |
+++ chrome/common/time_format.h (working copy) |
@@ -11,8 +11,10 @@ |
#include "unicode/smpdtfmt.h" |
+namespace base { |
class Time; |
class TimeDelta; |
+} |
class TimeFormat { |
public: |
@@ -20,10 +22,10 @@ |
// are simpler than PastTime since this is used for in-progress operations |
// and users have different expectations of units. |
// Ex: "3 mins left", "2 days left". |
- static std::wstring TimeRemaining(const TimeDelta& delta); |
+ static std::wstring TimeRemaining(const base::TimeDelta& delta); |
// Same as TimeRemaining without the "left". |
- static std::wstring TimeRemainingShort(const TimeDelta& delta); |
+ static std::wstring TimeRemainingShort(const base::TimeDelta& delta); |
// For displaying a relative time in the past. This method returns either |
// "Today", "Yesterday", or an empty string if it's older than that. |
@@ -38,9 +40,8 @@ |
// If NULL, the current day's midnight will be retrieved, which can be |
// slow. If many items are being processed, it is best to get the current |
// time once at the beginning and pass it for each computation. |
- static std::wstring RelativeDate(const Time& time, |
- const Time* optional_midnight_today); |
+ static std::wstring RelativeDate(const base::Time& time, |
+ const base::Time* optional_midnight_today); |
}; |
#endif // CHROME_COMMON_TIME_FORMAT_H__ |
- |