| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 , m_script(adoptPtr(new WorkerScriptController(*this))) | 85 , m_script(adoptPtr(new WorkerScriptController(*this))) |
| 86 , m_thread(thread) | 86 , m_thread(thread) |
| 87 , m_workerInspectorController(adoptRefWillBeNoop(new WorkerInspectorControll
er(this))) | 87 , m_workerInspectorController(adoptRefWillBeNoop(new WorkerInspectorControll
er(this))) |
| 88 , m_closing(false) | 88 , m_closing(false) |
| 89 , m_eventQueue(WorkerEventQueue::create(this)) | 89 , m_eventQueue(WorkerEventQueue::create(this)) |
| 90 , m_workerClients(workerClients) | 90 , m_workerClients(workerClients) |
| 91 , m_timeOrigin(timeOrigin) | 91 , m_timeOrigin(timeOrigin) |
| 92 , m_terminationObserver(0) | 92 , m_terminationObserver(0) |
| 93 , m_messageStorage(ConsoleMessageStorage::createForWorker(this)) | 93 , m_messageStorage(ConsoleMessageStorage::createForWorker(this)) |
| 94 { | 94 { |
| 95 ScriptWrappable::init(this); | |
| 96 setClient(this); | 95 setClient(this); |
| 97 setSecurityOrigin(SecurityOrigin::create(url)); | 96 setSecurityOrigin(SecurityOrigin::create(url)); |
| 98 m_workerClients->reattachThread(); | 97 m_workerClients->reattachThread(); |
| 99 m_thread->setWorkerInspectorController(m_workerInspectorController.get()); | 98 m_thread->setWorkerInspectorController(m_workerInspectorController.get()); |
| 100 } | 99 } |
| 101 | 100 |
| 102 WorkerGlobalScope::~WorkerGlobalScope() | 101 WorkerGlobalScope::~WorkerGlobalScope() |
| 103 { | 102 { |
| 104 } | 103 } |
| 105 | 104 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 visitor->trace(m_workerInspectorController); | 353 visitor->trace(m_workerInspectorController); |
| 355 visitor->trace(m_eventQueue); | 354 visitor->trace(m_eventQueue); |
| 356 visitor->trace(m_workerClients); | 355 visitor->trace(m_workerClients); |
| 357 visitor->trace(m_messageStorage); | 356 visitor->trace(m_messageStorage); |
| 358 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); | 357 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); |
| 359 ExecutionContext::trace(visitor); | 358 ExecutionContext::trace(visitor); |
| 360 EventTargetWithInlineData::trace(visitor); | 359 EventTargetWithInlineData::trace(visitor); |
| 361 } | 360 } |
| 362 | 361 |
| 363 } // namespace blink | 362 } // namespace blink |
| OLD | NEW |