Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 1115923002: workers: Rename WorkerThread to WorkerScript. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698