diff options
Diffstat (limited to 'Source/WebCore/page/History.h')
-rw-r--r-- | Source/WebCore/page/History.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/WebCore/page/History.h b/Source/WebCore/page/History.h index 9ec1914b3..bd50fccd2 100644 --- a/Source/WebCore/page/History.h +++ b/Source/WebCore/page/History.h @@ -26,6 +26,7 @@ #ifndef History_h #define History_h +#include "DOMWindowProperty.h" #include "KURL.h" #include <wtf/Forward.h> #include <wtf/PassRefPtr.h> @@ -38,12 +39,9 @@ class ScriptExecutionContext; class SerializedScriptValue; typedef int ExceptionCode; -class History : public RefCounted<History> { +class History : public RefCounted<History>, public DOMWindowProperty { public: static PassRefPtr<History> create(Frame* frame) { return adoptRef(new History(frame)); } - - Frame* frame() const; - void disconnectFrame(); unsigned length() const; void back(); @@ -61,11 +59,9 @@ public: void stateObjectAdded(PassRefPtr<SerializedScriptValue>, const String& title, const String& url, StateObjectType, ExceptionCode&); private: - History(Frame*); + explicit History(Frame*); KURL urlForState(const String& url); - - Frame* m_frame; }; } // namespace WebCore |