| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
| 34 #include "platform/weborigin/KURL.h" | 34 #include "platform/weborigin/KURL.h" |
| 35 #include "wtf/MainThread.h" | 35 #include "wtf/MainThread.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 History::History(LocalFrame* frame) | 39 History::History(LocalFrame* frame) |
| 40 : DOMWindowProperty(frame) | 40 : DOMWindowProperty(frame) |
| 41 , m_lastStateObjectRequested(nullptr) | 41 , m_lastStateObjectRequested(nullptr) |
| 42 { | 42 { |
| 43 ScriptWrappable::init(this); | |
| 44 } | 43 } |
| 45 | 44 |
| 46 unsigned History::length() const | 45 unsigned History::length() const |
| 47 { | 46 { |
| 48 // FIXME(sky): remove | 47 // FIXME(sky): remove |
| 49 return 0; | 48 return 0; |
| 50 } | 49 } |
| 51 | 50 |
| 52 SerializedScriptValue* History::state() | 51 SerializedScriptValue* History::state() |
| 53 { | 52 { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 return document->url(); | 94 return document->url(); |
| 96 return KURL(document->url(), urlString); | 95 return KURL(document->url(), urlString); |
| 97 } | 96 } |
| 98 | 97 |
| 99 void History::stateObjectAdded(PassRefPtr<SerializedScriptValue> data, const Str
ing& /* title */, const String& urlString, FrameLoadType type, ExceptionState& e
xceptionState) | 98 void History::stateObjectAdded(PassRefPtr<SerializedScriptValue> data, const Str
ing& /* title */, const String& urlString, FrameLoadType type, ExceptionState& e
xceptionState) |
| 100 { | 99 { |
| 101 // FIXME(sky): re-implement. | 100 // FIXME(sky): re-implement. |
| 102 } | 101 } |
| 103 | 102 |
| 104 } // namespace blink | 103 } // namespace blink |
| OLD | NEW |