| 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) 2009, 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009, 2011 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 { | 285 { |
| 286 return const_cast<WorkerGlobalScope*>(this); | 286 return const_cast<WorkerGlobalScope*>(this); |
| 287 } | 287 } |
| 288 | 288 |
| 289 WorkerGlobalScope::WorkerGlobalScope(const KURL& url, const String& userAgent, W
orkerThread* thread, double timeOrigin, std::unique_ptr<SecurityOrigin::Privileg
eData> starterOriginPrivilageData, WorkerClients* workerClients) | 289 WorkerGlobalScope::WorkerGlobalScope(const KURL& url, const String& userAgent, W
orkerThread* thread, double timeOrigin, std::unique_ptr<SecurityOrigin::Privileg
eData> starterOriginPrivilageData, WorkerClients* workerClients) |
| 290 : m_url(url) | 290 : m_url(url) |
| 291 , m_userAgent(userAgent) | 291 , m_userAgent(userAgent) |
| 292 , m_v8CacheOptions(V8CacheOptionsDefault) | 292 , m_v8CacheOptions(V8CacheOptionsDefault) |
| 293 , m_scriptController(WorkerOrWorkletScriptController::create(this, thread->i
solate())) | 293 , m_scriptController(WorkerOrWorkletScriptController::create(this, thread->i
solate())) |
| 294 , m_thread(thread) | 294 , m_thread(thread) |
| 295 , m_workerInspectorController(WorkerInspectorController::create(this)) | 295 , m_workerInspectorController(WorkerInspectorController::create(thread)) |
| 296 , m_closing(false) | 296 , m_closing(false) |
| 297 , m_eventQueue(WorkerEventQueue::create(this)) | 297 , m_eventQueue(WorkerEventQueue::create(this)) |
| 298 , m_workerClients(workerClients) | 298 , m_workerClients(workerClients) |
| 299 , m_timers(Platform::current()->currentThread()->scheduler()->timerTaskRunne
r()->clone()) | 299 , m_timers(Platform::current()->currentThread()->scheduler()->timerTaskRunne
r()->clone()) |
| 300 , m_timeOrigin(timeOrigin) | 300 , m_timeOrigin(timeOrigin) |
| 301 , m_consoleMessageStorage(new ConsoleMessageStorage()) | 301 , m_consoleMessageStorage(new ConsoleMessageStorage()) |
| 302 { | 302 { |
| 303 setSecurityOrigin(SecurityOrigin::create(url)); | 303 setSecurityOrigin(SecurityOrigin::create(url)); |
| 304 if (starterOriginPrivilageData) | 304 if (starterOriginPrivilageData) |
| 305 getSecurityOrigin()->transferPrivilegesFrom(std::move(starterOriginPrivi
lageData)); | 305 getSecurityOrigin()->transferPrivilegesFrom(std::move(starterOriginPrivi
lageData)); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 visitor->trace(m_timers); | 371 visitor->trace(m_timers); |
| 372 visitor->trace(m_consoleMessageStorage); | 372 visitor->trace(m_consoleMessageStorage); |
| 373 visitor->trace(m_eventListeners); | 373 visitor->trace(m_eventListeners); |
| 374 ExecutionContext::trace(visitor); | 374 ExecutionContext::trace(visitor); |
| 375 EventTargetWithInlineData::trace(visitor); | 375 EventTargetWithInlineData::trace(visitor); |
| 376 SecurityContext::trace(visitor); | 376 SecurityContext::trace(visitor); |
| 377 Supplementable<WorkerGlobalScope>::trace(visitor); | 377 Supplementable<WorkerGlobalScope>::trace(visitor); |
| 378 } | 378 } |
| 379 | 379 |
| 380 } // namespace blink | 380 } // namespace blink |
| OLD | NEW |