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

Side by Side Diff: ios/chrome/browser/ui/history/history_util.h

Issue 2590473002: Upstream Chrome on iOS source code [5/11]. (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/history/history_ui_egtest.mm ('k') | ios/chrome/browser/ui/history/history_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698