OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_UTIL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_UTIL_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/strings/string16.h" |
| 11 |
| 12 namespace base { |
| 13 class Time; |
| 14 } |
| 15 |
| 16 namespace history { |
| 17 |
| 18 struct HistoryEntry; |
| 19 |
| 20 // Returns a localized version of |visit_time| including a relative |
| 21 // indicator (e.g. today, yesterday). |
| 22 base::string16 GetRelativeDateLocalized(const base::Time& visit_time); |
| 23 |
| 24 // Sorts and merges duplicate entries from the query results, only retaining the |
| 25 // most recent visit to a URL on a particular day. That visit contains the |
| 26 // timestamps of the other visits. |
| 27 void MergeDuplicateHistoryEntries(std::vector<history::HistoryEntry>* entries); |
| 28 } // namespace history |
| 29 |
| 30 #endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_UTIL_H_ |
OLD | NEW |