| 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/Forward.h" | 10 #include "wtf/Forward.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class LocalDOMWindow; | 14 class LocalDOMWindow; |
| 15 class WorkerGlobalScopeProxy; | 15 class WorkerGlobalScopeProxy; |
| 16 | 16 |
| 17 class ConsoleMessageStorage FINAL : public NoBaseWillBeGarbageCollected<ConsoleM
essageStorage> { | 17 class ConsoleMessageStorage final : public NoBaseWillBeGarbageCollected<ConsoleM
essageStorage> { |
| 18 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage); | 18 WTF_MAKE_NONCOPYABLE(ConsoleMessageStorage); |
| 19 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 19 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 20 public: | 20 public: |
| 21 static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForWorker(Executi
onContext* context) | 21 static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForWorker(Executi
onContext* context) |
| 22 { | 22 { |
| 23 return adoptPtrWillBeNoop(new ConsoleMessageStorage(context)); | 23 return adoptPtrWillBeNoop(new ConsoleMessageStorage(context)); |
| 24 } | 24 } |
| 25 | 25 |
| 26 static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForFrame(LocalFra
me* frame) | 26 static PassOwnPtrWillBeRawPtr<ConsoleMessageStorage> createForFrame(LocalFra
me* frame) |
| 27 { | 27 { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 int m_expiredCount; | 52 int m_expiredCount; |
| 53 WillBeHeapDeque<RefPtrWillBeMember<ConsoleMessage> > m_messages; | 53 WillBeHeapDeque<RefPtrWillBeMember<ConsoleMessage> > m_messages; |
| 54 RawPtrWillBeMember<ExecutionContext> m_context; | 54 RawPtrWillBeMember<ExecutionContext> m_context; |
| 55 RawPtrWillBeMember<LocalFrame> m_frame; | 55 RawPtrWillBeMember<LocalFrame> m_frame; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // ConsoleMessageStorage_h | 60 #endif // ConsoleMessageStorage_h |
| OLD | NEW |