| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 m_client.workerContextStarted(this); | 211 m_client.workerContextStarted(this); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() | 214 void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() |
| 215 { | 215 { |
| 216 m_document.postTask(FROM_HERE, createCrossThreadTask(&WebEmbeddedWorkerImpl:
:terminateWorkerContext, &m_embeddedWorker)); | 216 m_document.postTask(FROM_HERE, createCrossThreadTask(&WebEmbeddedWorkerImpl:
:terminateWorkerContext, &m_embeddedWorker)); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void ServiceWorkerGlobalScopeProxy::willDestroyWorkerGlobalScope() | 219 void ServiceWorkerGlobalScopeProxy::willDestroyWorkerGlobalScope() |
| 220 { | 220 { |
| 221 m_workerGlobalScope = 0; | 221 m_workerGlobalScope = nullptr; |
| 222 m_client.willDestroyWorkerContext(); | 222 m_client.willDestroyWorkerContext(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void ServiceWorkerGlobalScopeProxy::workerThreadTerminated() | 225 void ServiceWorkerGlobalScopeProxy::workerThreadTerminated() |
| 226 { | 226 { |
| 227 m_client.workerContextDestroyed(); | 227 m_client.workerContextDestroyed(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) | 230 ServiceWorkerGlobalScopeProxy::ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerIm
pl& embeddedWorker, Document& document, WebServiceWorkerContextClient& client) |
| 231 : m_embeddedWorker(embeddedWorker) | 231 : m_embeddedWorker(embeddedWorker) |
| 232 , m_document(document) | 232 , m_document(document) |
| 233 , m_client(client) | 233 , m_client(client) |
| 234 , m_workerGlobalScope(0) | 234 , m_workerGlobalScope(nullptr) |
| 235 { | 235 { |
| 236 } | 236 } |
| 237 | 237 |
| 238 } // namespace blink | 238 } // namespace blink |
| OLD | NEW |