| 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 * | 7 * |
| 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 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef Console_h | 29 #ifndef Console_h |
| 30 #define Console_h | 30 #define Console_h |
| 31 | 31 |
| 32 #include "core/frame/ConsoleBase.h" | 32 #include "core/frame/ConsoleBase.h" |
| 33 #include "core/frame/DOMWindowProperty.h" | 33 #include "core/frame/DOMWindowProperty.h" |
| 34 #include "platform/Supplementable.h" |
| 34 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 36 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 37 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class LocalFrame; | 42 class LocalFrame; |
| 42 class MemoryInfo; | |
| 43 | 43 |
| 44 class Console final : public ConsoleBase, public DOMWindowProperty { | 44 class Console final : public ConsoleBase, public DOMWindowProperty, public WillB
eHeapSupplementable<Console> { |
| 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Console); |
| 45 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
| 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Console); | |
| 47 public: | 47 public: |
| 48 static PassRefPtrWillBeRawPtr<Console> create(LocalFrame* frame) | 48 static PassRefPtrWillBeRawPtr<Console> create(LocalFrame* frame) |
| 49 { | 49 { |
| 50 return adoptRefWillBeNoop(new Console(frame)); | 50 return adoptRefWillBeNoop(new Console(frame)); |
| 51 } | 51 } |
| 52 virtual ~Console(); | 52 virtual ~Console(); |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<MemoryInfo> memory() const; | |
| 55 | |
| 56 DECLARE_VIRTUAL_TRACE(); | 54 DECLARE_VIRTUAL_TRACE(); |
| 57 | 55 |
| 58 protected: | 56 protected: |
| 59 virtual ExecutionContext* context() override; | 57 virtual ExecutionContext* context() override; |
| 60 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>)
override; | 58 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>)
override; |
| 61 | 59 |
| 62 private: | 60 private: |
| 63 explicit Console(LocalFrame*); | 61 explicit Console(LocalFrame*); |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 } // namespace blink | 64 } // namespace blink |
| 67 | 65 |
| 68 #endif // Console_h | 66 #endif // Console_h |
| OLD | NEW |