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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 SandboxFlags sandboxFlags() const { return m_sandboxFlags; } | 127 SandboxFlags sandboxFlags() const { return m_sandboxFlags; } |
128 bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; } | 128 bool isSandboxed(SandboxFlags mask) const { return m_sandboxFlags & mask; } |
129 void enforceSandboxFlags(SandboxFlags mask); | 129 void enforceSandboxFlags(SandboxFlags mask); |
130 | 130 |
131 PassOwnPtr<LifecycleNotifier<ExecutionContext> > createLifecycleNotifier(); | 131 PassOwnPtr<LifecycleNotifier<ExecutionContext> > createLifecycleNotifier(); |
132 | 132 |
133 virtual EventTarget* errorEventTarget() = 0; | 133 virtual EventTarget* errorEventTarget() = 0; |
134 virtual EventQueue* eventQueue() const = 0; | 134 virtual EventQueue* eventQueue() const = 0; |
135 | 135 |
| 136 void enforceStrictMixedContentChecking() { m_strictMixedContentCheckingEnfor
ced = true; } |
| 137 bool shouldEnforceStrictMixedContentChecking() const { return m_strictMixedC
ontentCheckingEnforced; } |
| 138 |
136 protected: | 139 protected: |
137 ExecutionContext(); | 140 ExecutionContext(); |
138 virtual ~ExecutionContext(); | 141 virtual ~ExecutionContext(); |
139 | 142 |
140 virtual const KURL& virtualURL() const = 0; | 143 virtual const KURL& virtualURL() const = 0; |
141 virtual KURL virtualCompleteURL(const String&) const = 0; | 144 virtual KURL virtualCompleteURL(const String&) const = 0; |
142 | 145 |
143 ContextLifecycleNotifier& lifecycleNotifier(); | 146 ContextLifecycleNotifier& lifecycleNotifier(); |
144 | 147 |
145 private: | 148 private: |
(...skipping 20 matching lines...) Expand all Loading... |
166 | 169 |
167 bool m_inDispatchErrorEvent; | 170 bool m_inDispatchErrorEvent; |
168 class PendingException; | 171 class PendingException; |
169 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException> > >
m_pendingExceptions; | 172 OwnPtrWillBeMember<WillBeHeapVector<OwnPtrWillBeMember<PendingException> > >
m_pendingExceptions; |
170 | 173 |
171 bool m_activeDOMObjectsAreSuspended; | 174 bool m_activeDOMObjectsAreSuspended; |
172 bool m_activeDOMObjectsAreStopped; | 175 bool m_activeDOMObjectsAreStopped; |
173 | 176 |
174 OwnPtrWillBeMember<PublicURLManager> m_publicURLManager; | 177 OwnPtrWillBeMember<PublicURLManager> m_publicURLManager; |
175 | 178 |
| 179 bool m_strictMixedContentCheckingEnforced; |
| 180 |
176 // The location of this member is important; to make sure contextDestroyed()
notification on | 181 // The location of this member is important; to make sure contextDestroyed()
notification on |
177 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, | 182 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, |
178 // m_lifecycleNotifer should be placed *after* such members. | 183 // m_lifecycleNotifer should be placed *after* such members. |
179 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 184 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
180 }; | 185 }; |
181 | 186 |
182 } // namespace blink | 187 } // namespace blink |
183 | 188 |
184 #endif // ExecutionContext_h | 189 #endif // ExecutionContext_h |
OLD | NEW |