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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/history/history_util.h
diff --git a/ios/chrome/browser/ui/history/history_util.h b/ios/chrome/browser/ui/history/history_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..f6831cf28b6089b94e25d051c73baa9a030bed36
--- /dev/null
+++ b/ios/chrome/browser/ui/history/history_util.h
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_UTIL_H_
+#define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_UTIL_H_
+
+#include <vector>
+
+#include "base/strings/string16.h"
+
+namespace base {
+class Time;
+}
+
+namespace history {
+
+struct HistoryEntry;
+
+// Returns a localized version of |visit_time| including a relative
+// indicator (e.g. today, yesterday).
+base::string16 GetRelativeDateLocalized(const base::Time& visit_time);
+
+// Sorts and merges duplicate entries from the query results, only retaining the
+// most recent visit to a URL on a particular day. That visit contains the
+// timestamps of the other visits.
+void MergeDuplicateHistoryEntries(std::vector<history::HistoryEntry>* entries);
+} // namespace history
+
+#endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_UTIL_H_
« 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