| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ConsoleMessageStorage_h | 5 #ifndef ConsoleMessageStorage_h |
| 6 #define ConsoleMessageStorage_h | 6 #define ConsoleMessageStorage_h |
| 7 | 7 |
| 8 #include "core/inspector/ConsoleMessage.h" | 8 #include "core/inspector/ConsoleMessage.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Deque.h" | 10 #include "wtf/Deque.h" |
| 11 #include "wtf/Forward.h" | 11 #include "wtf/Forward.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class LocalDOMWindow; | 15 class LocalDOMWindow; |
| 16 | 16 |
| 17 class ConsoleMessageStorage final : public DummyBase<ConsoleMessageStorage> { | 17 class ConsoleMessageStorage final { |
| 18 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage); | 18 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage); |
| 19 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 19 WTF_MAKE_FAST_ALLOCATED; |
| 20 public: | 20 public: |
| 21 static PassOwnPtr<ConsoleMessageStorage> createForFrame(LocalFrame* frame) | 21 static PassOwnPtr<ConsoleMessageStorage> createForFrame(LocalFrame* frame) |
| 22 { | 22 { |
| 23 return adoptPtr(new ConsoleMessageStorage(frame)); | 23 return adoptPtr(new ConsoleMessageStorage(frame)); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void reportMessage(PassRefPtr<ConsoleMessage>); | 26 void reportMessage(PassRefPtr<ConsoleMessage>); |
| 27 void clear(); | 27 void clear(); |
| 28 | 28 |
| 29 Vector<unsigned> argumentCounts() const; | 29 Vector<unsigned> argumentCounts() const; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 int m_expiredCount; | 46 int m_expiredCount; |
| 47 Deque<RefPtr<ConsoleMessage> > m_messages; | 47 Deque<RefPtr<ConsoleMessage> > m_messages; |
| 48 RawPtr<ExecutionContext> m_context; | 48 RawPtr<ExecutionContext> m_context; |
| 49 LocalFrame* m_frame; | 49 LocalFrame* m_frame; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // ConsoleMessageStorage_h | 54 #endif // ConsoleMessageStorage_h |
| OLD | NEW |