OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void ref() { refExecutionContext(); } | 133 void ref() { refExecutionContext(); } |
134 void deref() { derefExecutionContext(); } | 134 void deref() { derefExecutionContext(); } |
135 #endif | 135 #endif |
136 | 136 |
137 // Gets the next id in a circular sequence from 1 to 2^31-1. | 137 // Gets the next id in a circular sequence from 1 to 2^31-1. |
138 int circularSequentialID(); | 138 int circularSequentialID(); |
139 | 139 |
140 virtual EventTarget* errorEventTarget() = 0; | 140 virtual EventTarget* errorEventTarget() = 0; |
141 virtual EventQueue* eventQueue() const = 0; | 141 virtual EventQueue* eventQueue() const = 0; |
142 | 142 |
143 void enforceStrictMixedContentChecking() { m_strictMixedContentCheckingEnfor
ced = true; } | |
144 bool shouldEnforceStrictMixedContentChecking() const { return m_strictMixedC
ontentCheckingEnforced; } | |
145 | |
146 void enforceSuborigin(const String& name); | 143 void enforceSuborigin(const String& name); |
147 bool hasSuborigin(); | 144 bool hasSuborigin(); |
148 String suboriginName(); | 145 String suboriginName(); |
149 | 146 |
150 // Methods related to window interaction. It should be used to manage window | 147 // Methods related to window interaction. It should be used to manage window |
151 // focusing and window creation permission for an ExecutionContext. | 148 // focusing and window creation permission for an ExecutionContext. |
152 void allowWindowInteraction(); | 149 void allowWindowInteraction(); |
153 void consumeWindowInteraction(); | 150 void consumeWindowInteraction(); |
154 bool isWindowInteractionAllowed() const; | 151 bool isWindowInteractionAllowed() const; |
155 | 152 |
(...skipping 25 matching lines...) Expand all Loading... |
181 | 178 |
182 bool m_inDispatchErrorEvent; | 179 bool m_inDispatchErrorEvent; |
183 class PendingException; | 180 class PendingException; |
184 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException>>> m
_pendingExceptions; | 181 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException>>> m
_pendingExceptions; |
185 | 182 |
186 bool m_activeDOMObjectsAreSuspended; | 183 bool m_activeDOMObjectsAreSuspended; |
187 bool m_activeDOMObjectsAreStopped; | 184 bool m_activeDOMObjectsAreStopped; |
188 | 185 |
189 OwnPtrWillBeMember<PublicURLManager> m_publicURLManager; | 186 OwnPtrWillBeMember<PublicURLManager> m_publicURLManager; |
190 | 187 |
191 bool m_strictMixedContentCheckingEnforced; | |
192 | |
193 // Counter that keeps track of how many window interaction calls are allowed | 188 // Counter that keeps track of how many window interaction calls are allowed |
194 // for this ExecutionContext. Callers are expected to call | 189 // for this ExecutionContext. Callers are expected to call |
195 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to | 190 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to |
196 // increment and decrement the counter. | 191 // increment and decrement the counter. |
197 int m_windowInteractionTokens; | 192 int m_windowInteractionTokens; |
198 | 193 |
199 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; | 194 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; |
200 bool m_isRunSuspendableTasksScheduled; | 195 bool m_isRunSuspendableTasksScheduled; |
201 | 196 |
202 ReferrerPolicy m_referrerPolicy; | 197 ReferrerPolicy m_referrerPolicy; |
203 }; | 198 }; |
204 | 199 |
205 } // namespace blink | 200 } // namespace blink |
206 | 201 |
207 #endif // ExecutionContext_h | 202 #endif // ExecutionContext_h |
OLD | NEW |