| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 void WorkerGlobalScope::postTask(PassOwnPtr<ExecutionContextTask> task) | 180 void WorkerGlobalScope::postTask(PassOwnPtr<ExecutionContextTask> task) |
| 181 { | 181 { |
| 182 thread()->runLoop().postTask(task); | 182 thread()->runLoop().postTask(task); |
| 183 } | 183 } |
| 184 | 184 |
| 185 void WorkerGlobalScope::clearInspector() | 185 void WorkerGlobalScope::clearInspector() |
| 186 { | 186 { |
| 187 m_workerInspectorController.clear(); | 187 m_workerInspectorController.clear(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void WorkerGlobalScope::willStopActiveDOMObjects() |
| 191 { |
| 192 lifecycleNotifier().notifyWillStopActiveDOMObjects(); |
| 193 } |
| 194 |
| 190 void WorkerGlobalScope::dispose() | 195 void WorkerGlobalScope::dispose() |
| 191 { | 196 { |
| 192 ASSERT(thread()->isCurrentThread()); | 197 ASSERT(thread()->isCurrentThread()); |
| 193 | 198 |
| 194 // Notify proxy that we are going away. This can free the WorkerThread objec
t, so do not access it after this. | 199 // Notify proxy that we are going away. This can free the WorkerThread objec
t, so do not access it after this. |
| 195 thread()->workerReportingProxy().workerGlobalScopeDestroyed(); | 200 thread()->workerReportingProxy().workerGlobalScopeDestroyed(); |
| 196 | 201 |
| 197 clearScript(); | 202 clearScript(); |
| 198 clearInspector(); | 203 clearInspector(); |
| 199 setClient(0); | 204 setClient(0); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 303 |
| 299 void WorkerGlobalScope::trace(Visitor* visitor) | 304 void WorkerGlobalScope::trace(Visitor* visitor) |
| 300 { | 305 { |
| 301 visitor->trace(m_console); | 306 visitor->trace(m_console); |
| 302 visitor->trace(m_location); | 307 visitor->trace(m_location); |
| 303 visitor->trace(m_navigator); | 308 visitor->trace(m_navigator); |
| 304 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); | 309 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); |
| 305 } | 310 } |
| 306 | 311 |
| 307 } // namespace WebCore | 312 } // namespace WebCore |
| OLD | NEW |