OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. | 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void setLastVisitWasHTTPNonGet(bool wasNotGet) { m_lastVisitWasHTTPNonGet =
wasNotGet; } | 164 void setLastVisitWasHTTPNonGet(bool wasNotGet) { m_lastVisitWasHTTPNonGet =
wasNotGet; } |
165 | 165 |
166 void addChildItem(PassRefPtr<HistoryItem>); | 166 void addChildItem(PassRefPtr<HistoryItem>); |
167 void setChildItem(PassRefPtr<HistoryItem>); | 167 void setChildItem(PassRefPtr<HistoryItem>); |
168 HistoryItem* childItemWithTarget(const String&) const; | 168 HistoryItem* childItemWithTarget(const String&) const; |
169 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const; | 169 HistoryItem* childItemWithDocumentSequenceNumber(long long number) const; |
170 HistoryItem* targetItem(); | 170 HistoryItem* targetItem(); |
171 const HistoryItemVector& children() const; | 171 const HistoryItemVector& children() const; |
172 bool hasChildren() const; | 172 bool hasChildren() const; |
173 void clearChildren(); | 173 void clearChildren(); |
| 174 bool isAncestorOf(const HistoryItem*) const; |
174 | 175 |
175 bool shouldDoSameDocumentNavigationTo(HistoryItem* otherItem) const; | 176 bool shouldDoSameDocumentNavigationTo(HistoryItem* otherItem) const; |
176 bool hasSameFrames(HistoryItem* otherItem) const; | 177 bool hasSameFrames(HistoryItem* otherItem) const; |
177 | 178 |
178 // This should not be called directly for HistoryItems that are already incl
uded | 179 // This should not be called directly for HistoryItems that are already incl
uded |
179 // in GlobalHistory. The WebKit api for this is to use -[WebHistory setLastV
isitedTimeInterval:forItem:] instead. | 180 // in GlobalHistory. The WebKit api for this is to use -[WebHistory setLastV
isitedTimeInterval:forItem:] instead. |
180 void setLastVisitedTime(double); | 181 void setLastVisitedTime(double); |
181 void visited(const String& title, double time, VisitCountBehavior); | 182 void visited(const String& title, double time, VisitCountBehavior); |
182 | 183 |
183 void addRedirectURL(const String&); | 184 void addRedirectURL(const String&); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 }; //class HistoryItem | 303 }; //class HistoryItem |
303 | 304 |
304 } //namespace WebCore | 305 } //namespace WebCore |
305 | 306 |
306 #ifndef NDEBUG | 307 #ifndef NDEBUG |
307 // Outside the WebCore namespace for ease of invocation from gdb. | 308 // Outside the WebCore namespace for ease of invocation from gdb. |
308 extern "C" int showTree(const WebCore::HistoryItem*); | 309 extern "C" int showTree(const WebCore::HistoryItem*); |
309 #endif | 310 #endif |
310 | 311 |
311 #endif // HISTORYITEM_H | 312 #endif // HISTORYITEM_H |
OLD | NEW |