| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 WorkerThreadStartupData::create( | 419 WorkerThreadStartupData::create( |
| 420 scriptURL, | 420 scriptURL, |
| 421 m_workerStartData.userAgent, | 421 m_workerStartData.userAgent, |
| 422 m_mainScriptLoader->script(), | 422 m_mainScriptLoader->script(), |
| 423 m_mainScriptLoader->releaseCachedMetadata(), | 423 m_mainScriptLoader->releaseCachedMetadata(), |
| 424 startMode, | 424 startMode, |
| 425 document->contentSecurityPolicy()->deprecatedHeader(), | 425 document->contentSecurityPolicy()->deprecatedHeader(), |
| 426 document->contentSecurityPolicy()->deprecatedHeaderType(), | 426 document->contentSecurityPolicy()->deprecatedHeaderType(), |
| 427 starterOrigin, | 427 starterOrigin, |
| 428 workerClients.release(), | 428 workerClients.release(), |
| 429 static_cast<blink::V8CacheOptions>(m_workerStartData.v8CacheOptions)
); | 429 static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions)); |
| 430 | 430 |
| 431 m_mainScriptLoader.clear(); | 431 m_mainScriptLoader.clear(); |
| 432 | 432 |
| 433 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); | 433 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); |
| 434 m_loaderProxy = WorkerLoaderProxy::create(this); | 434 m_loaderProxy = WorkerLoaderProxy::create(this); |
| 435 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS
copeProxy, startupData.release()); | 435 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS
copeProxy, startupData.release()); |
| 436 m_workerThread->start(); | 436 m_workerThread->start(); |
| 437 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); | 437 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); |
| 438 } | 438 } |
| 439 | 439 |
| 440 } // namespace blink | 440 } // namespace blink |
| OLD | NEW |