Chromium Code Reviews| 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 14 matching lines...) Expand all Loading... | |
| 25 | 25 |
| 26 #ifndef History_h | 26 #ifndef History_h |
| 27 #define History_h | 27 #define History_h |
| 28 | 28 |
| 29 #include "bindings/core/v8/ScriptWrappable.h" | 29 #include "bindings/core/v8/ScriptWrappable.h" |
| 30 #include "bindings/core/v8/SerializedScriptValue.h" | 30 #include "bindings/core/v8/SerializedScriptValue.h" |
| 31 #include "core/loader/FrameLoaderTypes.h" | 31 #include "core/loader/FrameLoaderTypes.h" |
| 32 #include "core/frame/DOMWindowProperty.h" | 32 #include "core/frame/DOMWindowProperty.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 35 #include "wtf/PassRefPtr.h" | |
| 36 #include "wtf/RefCounted.h" | |
| 37 | 35 |
| 38 namespace blink { | 36 namespace blink { |
| 39 | 37 |
| 40 class LocalFrame; | 38 class LocalFrame; |
| 41 class KURL; | 39 class KURL; |
| 42 class ExecutionContext; | 40 class ExecutionContext; |
| 43 class ExceptionState; | 41 class ExceptionState; |
| 44 | 42 |
| 45 class History final : public RefCountedWillBeGarbageCollectedFinalized<History>, public ScriptWrappable, public DOMWindowProperty { | 43 class History final : public GarbageCollectedFinalized<History>, public ScriptWr appable, public DOMWindowProperty { |
| 46 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| 47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(History); | 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(History); |
|
haraken
2015/04/24 12:43:52
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN => USING_GAR
sof
2015/04/24 12:46:41
I'm not quite sure what to make of the "=>" at the
haraken
2015/04/24 12:47:28
ah, right. We need to drop the WillBe when droppin
| |
| 48 public: | 46 public: |
| 49 static PassRefPtrWillBeRawPtr<History> create(LocalFrame* frame) | 47 static History* create(LocalFrame* frame) |
| 50 { | 48 { |
| 51 return adoptRefWillBeNoop(new History(frame)); | 49 return new History(frame); |
| 52 } | 50 } |
| 53 | 51 |
| 54 unsigned length() const; | 52 unsigned length() const; |
| 55 SerializedScriptValue* state(); | 53 SerializedScriptValue* state(); |
| 56 | 54 |
| 57 void back(ExecutionContext*); | 55 void back(ExecutionContext*); |
| 58 void forward(ExecutionContext*); | 56 void forward(ExecutionContext*); |
| 59 void go(ExecutionContext*, int distance); | 57 void go(ExecutionContext*, int distance); |
| 60 | 58 |
| 61 void pushState(PassRefPtr<SerializedScriptValue> data, const String& title, const String& url, ExceptionState& exceptionState) | 59 void pushState(PassRefPtr<SerializedScriptValue> data, const String& title, const String& url, ExceptionState& exceptionState) |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 81 KURL urlForState(const String& url); | 79 KURL urlForState(const String& url); |
| 82 | 80 |
| 83 SerializedScriptValue* stateInternal() const; | 81 SerializedScriptValue* stateInternal() const; |
| 84 | 82 |
| 85 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; | 83 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 } // namespace blink | 86 } // namespace blink |
| 89 | 87 |
| 90 #endif // History_h | 88 #endif // History_h |
| OLD | NEW |