| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 #endif | 160 #endif |
| 161 | 161 |
| 162 const KURL& virtualURL() const final; | 162 const KURL& virtualURL() const final; |
| 163 KURL virtualCompleteURL(const String&) const final; | 163 KURL virtualCompleteURL(const String&) const final; |
| 164 | 164 |
| 165 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi
nal; | 165 void reportBlockedScriptExecutionToInspector(const String& directiveText) fi
nal; |
| 166 | 166 |
| 167 EventTarget* errorEventTarget() final; | 167 EventTarget* errorEventTarget() final; |
| 168 void didUpdateSecurityOrigin() final { } | 168 void didUpdateSecurityOrigin() final { } |
| 169 | 169 |
| 170 void clearScript() { m_script.clear(); } | 170 void clearScript(); |
| 171 void clearInspector(); | 171 void clearInspector(); |
| 172 | 172 |
| 173 static void removeURLFromMemoryCacheInternal(const KURL&); | 173 static void removeURLFromMemoryCacheInternal(const KURL&); |
| 174 | 174 |
| 175 KURL m_url; | 175 KURL m_url; |
| 176 String m_userAgent; | 176 String m_userAgent; |
| 177 V8CacheOptions m_v8CacheOptions; | 177 V8CacheOptions m_v8CacheOptions; |
| 178 | 178 |
| 179 mutable PersistentWillBeMember<WorkerConsole> m_console; | 179 mutable PersistentWillBeMember<WorkerConsole> m_console; |
| 180 mutable PersistentWillBeMember<WorkerLocation> m_location; | 180 mutable PersistentWillBeMember<WorkerLocation> m_location; |
| 181 mutable PersistentWillBeMember<WorkerNavigator> m_navigator; | 181 mutable PersistentWillBeMember<WorkerNavigator> m_navigator; |
| 182 | 182 |
| 183 mutable UseCounter::CountBits m_deprecationWarningBits; | 183 mutable UseCounter::CountBits m_deprecationWarningBits; |
| 184 | 184 |
| 185 OwnPtr<WorkerScriptController> m_script; | 185 OwnPtrWillBeMember<WorkerScriptController> m_script; |
| 186 WorkerThread* m_thread; | 186 WorkerThread* m_thread; |
| 187 | 187 |
| 188 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController; | 188 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController; |
| 189 bool m_closing; | 189 bool m_closing; |
| 190 | 190 |
| 191 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue; | 191 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue; |
| 192 | 192 |
| 193 OwnPtrWillBeMember<WorkerClients> m_workerClients; | 193 OwnPtrWillBeMember<WorkerClients> m_workerClients; |
| 194 | 194 |
| 195 DOMTimerCoordinator m_timers; | 195 DOMTimerCoordinator m_timers; |
| 196 | 196 |
| 197 double m_timeOrigin; | 197 double m_timeOrigin; |
| 198 | 198 |
| 199 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage; | 199 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage; |
| 200 | 200 |
| 201 unsigned long m_workerExceptionUniqueIdentifier; | 201 unsigned long m_workerExceptionUniqueIdentifier; |
| 202 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; | 202 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 206 | 206 |
| 207 } // namespace blink | 207 } // namespace blink |
| 208 | 208 |
| 209 #endif // WorkerGlobalScope_h | 209 #endif // WorkerGlobalScope_h |
| OLD | NEW |