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

Side by Side Diff: WebCore/history/HistoryItem.h

Issue 3573012: Merge 68742... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 2 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 unified diff | Download patch
« no previous file with comments | « WebCore/ChangeLog ('k') | WebCore/history/HistoryItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 void addChildItem(PassRefPtr<HistoryItem>); 155 void addChildItem(PassRefPtr<HistoryItem>);
156 void setChildItem(PassRefPtr<HistoryItem>); 156 void setChildItem(PassRefPtr<HistoryItem>);
157 HistoryItem* childItemWithTarget(const String&) const; 157 HistoryItem* childItemWithTarget(const String&) const;
158 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const; 158 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const;
159 HistoryItem* targetItem(); 159 HistoryItem* targetItem();
160 const HistoryItemVector& children() const; 160 const HistoryItemVector& children() const;
161 bool hasChildren() const; 161 bool hasChildren() const;
162 void clearChildren(); 162 void clearChildren();
163 163
164 bool hasSameDocuments(HistoryItem* otherItem); 164 bool shouldDoSameDocumentNavigationTo(HistoryItem* otherItem) const;
165 bool hasSameFrames(HistoryItem* otherItem); 165 bool hasSameFrames(HistoryItem* otherItem) const;
166 166
167 // This should not be called directly for HistoryItems that are already incl uded 167 // This should not be called directly for HistoryItems that are already incl uded
168 // in GlobalHistory. The WebKit api for this is to use -[WebHistory setLastV isitedTimeInterval:forItem:] instead. 168 // in GlobalHistory. The WebKit api for this is to use -[WebHistory setLastV isitedTimeInterval:forItem:] instead.
169 void setLastVisitedTime(double); 169 void setLastVisitedTime(double);
170 void visited(const String& title, double time, VisitCountBehavior); 170 void visited(const String& title, double time, VisitCountBehavior);
171 171
172 void addRedirectURL(const String&); 172 void addRedirectURL(const String&);
173 Vector<String>* redirectURLs() const; 173 Vector<String>* redirectURLs() const;
174 void setRedirectURLs(PassOwnPtr<Vector<String> >); 174 void setRedirectURLs(PassOwnPtr<Vector<String> >);
175 175
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 HistoryItem(); 211 HistoryItem();
212 HistoryItem(const String& urlString, const String& title, double lastVisited ); 212 HistoryItem(const String& urlString, const String& title, double lastVisited );
213 HistoryItem(const String& urlString, const String& title, const String& alte rnateTitle, double lastVisited); 213 HistoryItem(const String& urlString, const String& title, const String& alte rnateTitle, double lastVisited);
214 HistoryItem(const KURL& url, const String& frameName, const String& parent, const String& title); 214 HistoryItem(const KURL& url, const String& frameName, const String& parent, const String& title);
215 215
216 HistoryItem(const HistoryItem&); 216 HistoryItem(const HistoryItem&);
217 217
218 void padDailyCountsForNewVisit(double time); 218 void padDailyCountsForNewVisit(double time);
219 void collapseDailyVisitsToWeekly(); 219 void collapseDailyVisitsToWeekly();
220 void recordVisitAtTime(double, VisitCountBehavior = IncreaseVisitCount); 220 void recordVisitAtTime(double, VisitCountBehavior = IncreaseVisitCount);
221
222 bool hasSameDocumentTree(HistoryItem* otherItem) const;
221 223
222 HistoryItem* findTargetItem(); 224 HistoryItem* findTargetItem();
223 225
224 /* When adding new member variables to this class, please notify the Qt team . 226 /* When adding new member variables to this class, please notify the Qt team .
225 * qt/HistoryItemQt.cpp contains code to serialize history items. 227 * qt/HistoryItemQt.cpp contains code to serialize history items.
226 */ 228 */
227 229
228 String m_urlString; 230 String m_urlString;
229 String m_originalURLString; 231 String m_originalURLString;
230 String m_referrer; 232 String m_referrer;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 }; //class HistoryItem 282 }; //class HistoryItem
281 283
282 } //namespace WebCore 284 } //namespace WebCore
283 285
284 #ifndef NDEBUG 286 #ifndef NDEBUG
285 // Outside the WebCore namespace for ease of invocation from gdb. 287 // Outside the WebCore namespace for ease of invocation from gdb.
286 extern "C" int showTree(const WebCore::HistoryItem*); 288 extern "C" int showTree(const WebCore::HistoryItem*);
287 #endif 289 #endif
288 290
289 #endif // HISTORYITEM_H 291 #endif // HISTORYITEM_H
OLDNEW
« no previous file with comments | « WebCore/ChangeLog ('k') | WebCore/history/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698