| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 bool isClosing() const final { return m_closing; } | 122 bool isClosing() const final { return m_closing; } |
| 123 | 123 |
| 124 const KURL& url() const { return m_url; } | 124 const KURL& url() const { return m_url; } |
| 125 WorkerThread* thread() const { return m_thread; } | 125 WorkerThread* thread() const { return m_thread; } |
| 126 double timeOrigin() const { return m_timeOrigin; } | 126 double timeOrigin() const { return m_timeOrigin; } |
| 127 WorkerSettings* workerSettings() const { return m_workerSettings.get(); } | 127 WorkerSettings* workerSettings() const { return m_workerSettings.get(); } |
| 128 | 128 |
| 129 WorkerOrWorkletScriptController* scriptController() final { return m_scriptC
ontroller.get(); } | 129 WorkerOrWorkletScriptController* scriptController() final { return m_scriptC
ontroller.get(); } |
| 130 WorkerClients* clients() { return m_workerClients.get(); } | 130 WorkerClients* clients() { return m_workerClients.get(); } |
| 131 ConsoleMessageStorage* consoleMessageStorage() { return m_consoleMessageStor
age.get(); } | |
| 132 | 131 |
| 133 DECLARE_VIRTUAL_TRACE(); | 132 DECLARE_VIRTUAL_TRACE(); |
| 134 | 133 |
| 135 protected: | 134 protected: |
| 136 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, doubl
e timeOrigin, std::unique_ptr<SecurityOrigin::PrivilegeData>, WorkerClients*); | 135 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, doubl
e timeOrigin, std::unique_ptr<SecurityOrigin::PrivilegeData>, WorkerClients*); |
| 137 void setWorkerSettings(std::unique_ptr<WorkerSettings>); | 136 void setWorkerSettings(std::unique_ptr<WorkerSettings>); |
| 138 void applyContentSecurityPolicyFromVector(const Vector<CSPHeaderAndType>& he
aders); | 137 void applyContentSecurityPolicyFromVector(const Vector<CSPHeaderAndType>& he
aders); |
| 139 | 138 |
| 140 void setV8CacheOptions(V8CacheOptions v8CacheOptions) { m_v8CacheOptions = v
8CacheOptions; } | 139 void setV8CacheOptions(V8CacheOptions v8CacheOptions) { m_v8CacheOptions = v
8CacheOptions; } |
| 141 | 140 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 168 bool m_closing; | 167 bool m_closing; |
| 169 | 168 |
| 170 Member<WorkerEventQueue> m_eventQueue; | 169 Member<WorkerEventQueue> m_eventQueue; |
| 171 | 170 |
| 172 Member<WorkerClients> m_workerClients; | 171 Member<WorkerClients> m_workerClients; |
| 173 | 172 |
| 174 DOMTimerCoordinator m_timers; | 173 DOMTimerCoordinator m_timers; |
| 175 | 174 |
| 176 const double m_timeOrigin; | 175 const double m_timeOrigin; |
| 177 | 176 |
| 178 Member<ConsoleMessageStorage> m_consoleMessageStorage; | |
| 179 | |
| 180 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; | 177 HeapListHashSet<Member<V8AbstractEventListener>> m_eventListeners; |
| 181 | 178 |
| 182 HeapHashMap<int, Member<ErrorEvent>> m_pendingErrorEvents; | 179 HeapHashMap<int, Member<ErrorEvent>> m_pendingErrorEvents; |
| 183 int m_lastPendingErrorEventId; | 180 int m_lastPendingErrorEventId; |
| 184 }; | 181 }; |
| 185 | 182 |
| 186 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 183 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 187 | 184 |
| 188 } // namespace blink | 185 } // namespace blink |
| 189 | 186 |
| 190 #endif // WorkerGlobalScope_h | 187 #endif // WorkerGlobalScope_h |
| OLD | NEW |