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 "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
9 #include "core/dom/SecurityContext.h" | 9 #include "core/dom/SecurityContext.h" |
10 #include "core/events/EventQueue.h" | 10 #include "core/events/EventQueue.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 void reportBlockedScriptExecutionToInspector(const String& directiveText) ov
erride { } | 35 void reportBlockedScriptExecutionToInspector(const String& directiveText) ov
erride { } |
36 void didUpdateSecurityOrigin() override { } | 36 void didUpdateSecurityOrigin() override { } |
37 SecurityContext& securityContext() override { return *this; } | 37 SecurityContext& securityContext() override { return *this; } |
38 DOMTimerCoordinator* timers() override { return nullptr; } | 38 DOMTimerCoordinator* timers() override { return nullptr; } |
39 | 39 |
40 double timerAlignmentInterval() const; | 40 double timerAlignmentInterval() const; |
41 | 41 |
42 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override { } | 42 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override { } |
43 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) override { } | 43 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) override { } |
44 | 44 |
45 bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck =
StandardPrivilegeCheck) const override; | 45 bool isSecureContext(String& errorMessage, const SecureContextCheck = Standa
rdSecureContextCheck) const override; |
46 | 46 |
47 DEFINE_INLINE_TRACE() | 47 DEFINE_INLINE_TRACE() |
48 { | 48 { |
49 visitor->trace(m_queue); | 49 visitor->trace(m_queue); |
50 SecurityContext::trace(visitor); | 50 SecurityContext::trace(visitor); |
51 ExecutionContext::trace(visitor); | 51 ExecutionContext::trace(visitor); |
52 } | 52 } |
53 | 53 |
54 #if !ENABLE(OILPAN) | 54 #if !ENABLE(OILPAN) |
55 using RefCounted<NullExecutionContext>::ref; | 55 using RefCounted<NullExecutionContext>::ref; |
(...skipping 10 matching lines...) Expand all Loading... |
66 private: | 66 private: |
67 bool m_tasksNeedSuspension; | 67 bool m_tasksNeedSuspension; |
68 OwnPtrWillBeMember<EventQueue> m_queue; | 68 OwnPtrWillBeMember<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 |