| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 ScriptWrappable* getScriptWrappable() const final { | 141 ScriptWrappable* getScriptWrappable() const final { |
| 142 return const_cast<WorkerGlobalScope*>(this); | 142 return const_cast<WorkerGlobalScope*>(this); |
| 143 } | 143 } |
| 144 | 144 |
| 145 double timeOrigin() const { return m_timeOrigin; } | 145 double timeOrigin() const { return m_timeOrigin; } |
| 146 WorkerSettings* workerSettings() const { return m_workerSettings.get(); } | 146 WorkerSettings* workerSettings() const { return m_workerSettings.get(); } |
| 147 | 147 |
| 148 WorkerOrWorkletScriptController* scriptController() final { | 148 WorkerOrWorkletScriptController* scriptController() final { |
| 149 return m_scriptController.get(); | 149 return m_scriptController.get(); |
| 150 } | 150 } |
| 151 WorkerClients* clients() { return m_workerClients.get(); } | 151 |
| 152 WorkerClients* clients() const { return m_workerClients.get(); } |
| 152 | 153 |
| 153 DECLARE_VIRTUAL_TRACE(); | 154 DECLARE_VIRTUAL_TRACE(); |
| 154 | 155 |
| 155 protected: | 156 protected: |
| 156 WorkerGlobalScope(const KURL&, | 157 WorkerGlobalScope(const KURL&, |
| 157 const String& userAgent, | 158 const String& userAgent, |
| 158 WorkerThread*, | 159 WorkerThread*, |
| 159 double timeOrigin, | 160 double timeOrigin, |
| 160 std::unique_ptr<SecurityOrigin::PrivilegeData>, | 161 std::unique_ptr<SecurityOrigin::PrivilegeData>, |
| 161 WorkerClients*); | 162 WorkerClients*); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 210 |
| 210 DEFINE_TYPE_CASTS(WorkerGlobalScope, | 211 DEFINE_TYPE_CASTS(WorkerGlobalScope, |
| 211 ExecutionContext, | 212 ExecutionContext, |
| 212 context, | 213 context, |
| 213 context->isWorkerGlobalScope(), | 214 context->isWorkerGlobalScope(), |
| 214 context.isWorkerGlobalScope()); | 215 context.isWorkerGlobalScope()); |
| 215 | 216 |
| 216 } // namespace blink | 217 } // namespace blink |
| 217 | 218 |
| 218 #endif // WorkerGlobalScope_h | 219 #endif // WorkerGlobalScope_h |
| OLD | NEW |