| 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 NullExecutionContext_h | 5 #ifndef NullExecutionContext_h |
| 6 #define NullExecutionContext_h | 6 #define NullExecutionContext_h |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include "bindings/core/v8/SourceLocation.h" | 9 #include "bindings/core/v8/SourceLocation.h" |
| 9 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
| 10 #include "core/dom/SecurityContext.h" | 11 #include "core/dom/SecurityContext.h" |
| 11 #include "core/events/EventQueue.h" | 12 #include "core/events/EventQueue.h" |
| 12 #include "core/inspector/ConsoleMessage.h" | 13 #include "core/inspector/ConsoleMessage.h" |
| 13 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
| 14 #include "platform/weborigin/KURL.h" | 15 #include "platform/weborigin/KURL.h" |
| 15 #include <memory> | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class NullExecutionContext final | 19 class NullExecutionContext final |
| 20 : public GarbageCollectedFinalized<NullExecutionContext>, | 20 : public GarbageCollectedFinalized<NullExecutionContext>, |
| 21 public SecurityContext, | 21 public SecurityContext, |
| 22 public ExecutionContext { | 22 public ExecutionContext { |
| 23 USING_GARBAGE_COLLECTED_MIXIN(NullExecutionContext); | 23 USING_GARBAGE_COLLECTED_MIXIN(NullExecutionContext); |
| 24 | 24 |
| 25 public: | 25 public: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool m_tasksNeedSuspension; | 66 bool m_tasksNeedSuspension; |
| 67 bool m_isSecureContext; | 67 bool m_isSecureContext; |
| 68 Member<EventQueue> m_queue; | 68 Member<EventQueue> m_queue; |
| 69 | 69 |
| 70 KURL m_dummyURL; | 70 KURL m_dummyURL; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // NullExecutionContext_h | 75 #endif // NullExecutionContext_h |
| OLD | NEW |