Index: Source/core/dom/PopStateEvent.h |
diff --git a/Source/core/dom/PopStateEvent.h b/Source/core/dom/PopStateEvent.h |
index cbe4627905420624bad6653467bd8243690ab12b..46f6dd8449f5fe52c5d0660139149f9e92c37461 100644 |
--- a/Source/core/dom/PopStateEvent.h |
+++ b/Source/core/dom/PopStateEvent.h |
@@ -31,11 +31,11 @@ |
namespace WebCore { |
-typedef EventInit PopStateEventInit; |
- |
class History; |
class SerializedScriptValue; |
+typedef EventInit PopStateEventInit; |
+ |
class PopStateEvent : public Event { |
public: |
virtual ~PopStateEvent(); |
@@ -44,6 +44,11 @@ public: |
static PassRefPtr<PopStateEvent> create(const AtomicString&, const PopStateEventInit&); |
SerializedScriptValue* serializedState() const { return m_serializedState.get(); } |
+ void setSerializedState(PassRefPtr<SerializedScriptValue> state) |
+ { |
+ ASSERT(!m_serializedState); |
+ m_serializedState = state; |
+ } |
History* history() const { return m_history.get(); } |
virtual const AtomicString& interfaceName() const; |