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

Unified Diff: third_party/WebKit/WebCore/history/HistoryItem.h

Issue 21152: WebKit merge 40668:40722 part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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: third_party/WebKit/WebCore/history/HistoryItem.h
===================================================================
--- third_party/WebKit/WebCore/history/HistoryItem.h (revision 9310)
+++ third_party/WebKit/WebCore/history/HistoryItem.h (working copy)
@@ -122,6 +122,7 @@
void setFormInfoFromRequest(const ResourceRequest&);
+ void recordInitialVisit();
void setVisitCount(int);
void setLastVisitWasFailure(bool wasFailure) { m_lastVisitWasFailure = wasFailure; }
@@ -165,6 +166,10 @@
int showTreeWithIndent(unsigned indentLevel) const;
#endif
+ void adoptVisitCounts(Vector<int>& dailyCounts, Vector<int>& weeklyCounts);
+ const Vector<int>& dailyVisitCounts() { return m_dailyVisitCounts; }
+ const Vector<int>& weeklyVisitCounts() { return m_weeklyVisitCounts; }
+
private:
HistoryItem();
HistoryItem(const String& urlString, const String& title, double lastVisited);
@@ -173,6 +178,10 @@
HistoryItem(const HistoryItem&);
+ void padDailyCountsForNewVisit(double time);
+ void collapseDailyVisitsToWeekly();
+ void recordVisitAtTime(double);
+
String m_urlString;
String m_originalURLString;
String m_referrer;
@@ -192,6 +201,8 @@
bool m_lastVisitWasFailure;
bool m_isTargetItem;
int m_visitCount;
+ Vector<int> m_dailyVisitCounts;
+ Vector<int> m_weeklyVisitCounts;
OwnPtr<Vector<String> > m_redirectURLs;
« no previous file with comments | « third_party/WebKit/WebCore/editing/mac/SelectionControllerMac.mm ('k') | third_party/WebKit/WebCore/history/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698