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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 WorkerNavigator* WorkerGlobalScope::navigator() const | 189 WorkerNavigator* WorkerGlobalScope::navigator() const |
190 { | 190 { |
191 if (!m_navigator) | 191 if (!m_navigator) |
192 m_navigator = WorkerNavigator::create(m_userAgent); | 192 m_navigator = WorkerNavigator::create(m_userAgent); |
193 return m_navigator.get(); | 193 return m_navigator.get(); |
194 } | 194 } |
195 | 195 |
196 void WorkerGlobalScope::postTask(const WebTraceLocation& location, PassOwnPtr<Ex
ecutionContextTask> task) | 196 void WorkerGlobalScope::postTask(const WebTraceLocation& location, PassOwnPtr<Ex
ecutionContextTask> task) |
197 { | 197 { |
198 thread()->postTask(location, task); | 198 thread()->postTask(task); |
199 } | 199 } |
200 | 200 |
201 // FIXME: Called twice, from WorkerThreadShutdownFinishTask and WorkerGlobalScop
e::dispose. | 201 // FIXME: Called twice, from WorkerThreadShutdownFinishTask and WorkerGlobalScop
e::dispose. |
202 void WorkerGlobalScope::clearInspector() | 202 void WorkerGlobalScope::clearInspector() |
203 { | 203 { |
204 if (!m_workerInspectorController) | 204 if (!m_workerInspectorController) |
205 return; | 205 return; |
206 thread()->setWorkerInspectorController(nullptr); | 206 thread()->setWorkerInspectorController(nullptr); |
207 m_workerInspectorController->dispose(); | 207 m_workerInspectorController->dispose(); |
208 m_workerInspectorController.clear(); | 208 m_workerInspectorController.clear(); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 visitor->trace(m_timers); | 372 visitor->trace(m_timers); |
373 visitor->trace(m_messageStorage); | 373 visitor->trace(m_messageStorage); |
374 visitor->trace(m_pendingMessages); | 374 visitor->trace(m_pendingMessages); |
375 HeapSupplementable<WorkerGlobalScope>::trace(visitor); | 375 HeapSupplementable<WorkerGlobalScope>::trace(visitor); |
376 #endif | 376 #endif |
377 ExecutionContext::trace(visitor); | 377 ExecutionContext::trace(visitor); |
378 EventTargetWithInlineData::trace(visitor); | 378 EventTargetWithInlineData::trace(visitor); |
379 } | 379 } |
380 | 380 |
381 } // namespace blink | 381 } // namespace blink |
OLD | NEW |