| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 { | 210 { |
| 211 m_document.postTask(FROM_HERE, createCrossThreadTask(&WebEmbeddedWorkerImpl:
:terminateWorkerContext, &m_embeddedWorker)); | 211 m_document.postTask(FROM_HERE, createCrossThreadTask(&WebEmbeddedWorkerImpl:
:terminateWorkerContext, &m_embeddedWorker)); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ServiceWorkerGlobalScopeProxy::willDestroyWorkerGlobalScope() | 214 void ServiceWorkerGlobalScopeProxy::willDestroyWorkerGlobalScope() |
| 215 { | 215 { |
| 216 m_workerGlobalScope = 0; | 216 m_workerGlobalScope = 0; |
| 217 m_client.willDestroyWorkerContext(); | 217 m_client.willDestroyWorkerContext(); |
| 218 } | 218 } |
| 219 | 219 |
| 220 void ServiceWorkerGlobalScopeProxy::workerThreadTerminated() | 220 void ServiceWorkerGlobalScopeProxy::workerScriptTerminated() |
| 221 { | 221 { |
| 222 m_client.workerContextDestroyed(); | 222 m_client.workerContextDestroyed(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) | 225 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) |
| 226 : m_embeddedWorker(embeddedWorker) | 226 : m_embeddedWorker(embeddedWorker) |
| 227 , m_document(document) | 227 , m_document(document) |
| 228 , m_client(client) | 228 , m_client(client) |
| 229 , m_workerGlobalScope(0) | 229 , m_workerGlobalScope(0) |
| 230 { | 230 { |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace blink | 233 } // namespace blink |
| OLD | NEW |