| 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 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef HistoryItem_h | 27 #ifndef HistoryItem_h |
| 28 #define HistoryItem_h | 28 #define HistoryItem_h |
| 29 | 29 |
| 30 #include "IntPoint.h" | 30 #include "IntPoint.h" |
| 31 #include "SerializedScriptValue.h" |
| 31 #include <wtf/HashMap.h> | 32 #include <wtf/HashMap.h> |
| 32 #include <wtf/OwnPtr.h> | 33 #include <wtf/OwnPtr.h> |
| 33 #include <wtf/PassOwnPtr.h> | 34 #include <wtf/PassOwnPtr.h> |
| 34 #include <wtf/RefCounted.h> | 35 #include <wtf/RefCounted.h> |
| 35 #include <wtf/text/WTFString.h> | 36 #include <wtf/text/WTFString.h> |
| 36 | 37 |
| 37 #if PLATFORM(MAC) | 38 #if PLATFORM(MAC) |
| 38 #import <wtf/RetainPtr.h> | 39 #import <wtf/RetainPtr.h> |
| 39 typedef struct objc_object* id; | 40 typedef struct objc_object* id; |
| 40 #endif | 41 #endif |
| (...skipping 10 matching lines...) Expand all Loading... |
| 51 | 52 |
| 52 namespace WebCore { | 53 namespace WebCore { |
| 53 | 54 |
| 54 class CachedPage; | 55 class CachedPage; |
| 55 class Document; | 56 class Document; |
| 56 class FormData; | 57 class FormData; |
| 57 class HistoryItem; | 58 class HistoryItem; |
| 58 class Image; | 59 class Image; |
| 59 class KURL; | 60 class KURL; |
| 60 class ResourceRequest; | 61 class ResourceRequest; |
| 61 class SerializedScriptValue; | |
| 62 | 62 |
| 63 typedef Vector<RefPtr<HistoryItem> > HistoryItemVector; | 63 typedef Vector<RefPtr<HistoryItem> > HistoryItemVector; |
| 64 | 64 |
| 65 extern void (*notifyHistoryItemChanged)(HistoryItem*); | 65 extern void (*notifyHistoryItemChanged)(HistoryItem*); |
| 66 | 66 |
| 67 enum VisitCountBehavior { | 67 enum VisitCountBehavior { |
| 68 IncreaseVisitCount, | 68 IncreaseVisitCount, |
| 69 DoNotIncreaseVisitCount | 69 DoNotIncreaseVisitCount |
| 70 }; | 70 }; |
| 71 | 71 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void setURL(const KURL&); | 138 void setURL(const KURL&); |
| 139 void setURLString(const String&); | 139 void setURLString(const String&); |
| 140 void setOriginalURLString(const String&); | 140 void setOriginalURLString(const String&); |
| 141 void setReferrer(const String&); | 141 void setReferrer(const String&); |
| 142 void setTarget(const String&); | 142 void setTarget(const String&); |
| 143 void setParent(const String&); | 143 void setParent(const String&); |
| 144 void setTitle(const String&); | 144 void setTitle(const String&); |
| 145 void setIsTargetItem(bool); | 145 void setIsTargetItem(bool); |
| 146 | 146 |
| 147 void setStateObject(PassRefPtr<SerializedScriptValue> object); | 147 void setStateObject(PassRefPtr<SerializedScriptValue> object); |
| 148 SerializedScriptValue* stateObject() const { return m_stateObject.get(); } | 148 PassRefPtr<SerializedScriptValue> stateObject() const { return m_stateObject
; } |
| 149 | 149 |
| 150 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number
; } | 150 void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number
; } |
| 151 long long itemSequenceNumber() const { return m_itemSequenceNumber; } | 151 long long itemSequenceNumber() const { return m_itemSequenceNumber; } |
| 152 | 152 |
| 153 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber
= number; } | 153 void setDocumentSequenceNumber(long long number) { m_documentSequenceNumber
= number; } |
| 154 long long documentSequenceNumber() const { return m_documentSequenceNumber;
} | 154 long long documentSequenceNumber() const { return m_documentSequenceNumber;
} |
| 155 | 155 |
| 156 void setFormInfoFromRequest(const ResourceRequest&); | 156 void setFormInfoFromRequest(const ResourceRequest&); |
| 157 void setFormData(PassRefPtr<FormData>); | 157 void setFormData(PassRefPtr<FormData>); |
| 158 void setFormContentType(const String&); | 158 void setFormContentType(const String&); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 }; //class HistoryItem | 303 }; //class HistoryItem |
| 304 | 304 |
| 305 } //namespace WebCore | 305 } //namespace WebCore |
| 306 | 306 |
| 307 #ifndef NDEBUG | 307 #ifndef NDEBUG |
| 308 // Outside the WebCore namespace for ease of invocation from gdb. | 308 // Outside the WebCore namespace for ease of invocation from gdb. |
| 309 extern "C" int showTree(const WebCore::HistoryItem*); | 309 extern "C" int showTree(const WebCore::HistoryItem*); |
| 310 #endif | 310 #endif |
| 311 | 311 |
| 312 #endif // HISTORYITEM_H | 312 #endif // HISTORYITEM_H |
| OLD | NEW |