| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 *m_mainFrame->frame()->document(), | 290 *m_mainFrame->frame()->document(), |
| 291 m_workerStartData.scriptURL, | 291 m_workerStartData.scriptURL, |
| 292 DenyCrossOriginRequests, | 292 DenyCrossOriginRequests, |
| 293 m_mainFrame->frame()->document()->addressSpace(), | 293 m_mainFrame->frame()->document()->addressSpace(), |
| 294 nullptr, | 294 nullptr, |
| 295 bind(&WebEmbeddedWorkerImpl::onScriptLoaderFinished, this)); | 295 bind(&WebEmbeddedWorkerImpl::onScriptLoaderFinished, this)); |
| 296 // Do nothing here since onScriptLoaderFinished() might have been already | 296 // Do nothing here since onScriptLoaderFinished() might have been already |
| 297 // invoked and |this| might have been deleted at this point. | 297 // invoked and |this| might have been deleted at this point. |
| 298 } | 298 } |
| 299 | 299 |
| 300 void WebEmbeddedWorkerImpl::checkIfAudioSinkExistsAndIsAuthorized(const WebStrin
g& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) |
| 301 { |
| 302 NOTREACHED(); |
| 303 } |
| 304 |
| 300 void WebEmbeddedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const
WebString& message, const WebString& state) | 305 void WebEmbeddedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const
WebString& message, const WebString& state) |
| 301 { | 306 { |
| 302 m_workerContextClient->sendDevToolsMessage(sessionId, callId, message, state
); | 307 m_workerContextClient->sendDevToolsMessage(sessionId, callId, message, state
); |
| 303 } | 308 } |
| 304 | 309 |
| 305 void WebEmbeddedWorkerImpl::resumeStartup() | 310 void WebEmbeddedWorkerImpl::resumeStartup() |
| 306 { | 311 { |
| 307 bool wasWaiting = (m_waitingForDebuggerState == WaitingForDebugger); | 312 bool wasWaiting = (m_waitingForDebuggerState == WaitingForDebugger); |
| 308 m_waitingForDebuggerState = NotWaitingForDebugger; | 313 m_waitingForDebuggerState = NotWaitingForDebugger; |
| 309 if (wasWaiting) | 314 if (wasWaiting) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 m_mainScriptLoader.clear(); | 378 m_mainScriptLoader.clear(); |
| 374 | 379 |
| 375 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); | 380 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); |
| 376 m_loaderProxy = WorkerLoaderProxy::create(this); | 381 m_loaderProxy = WorkerLoaderProxy::create(this); |
| 377 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS
copeProxy); | 382 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS
copeProxy); |
| 378 m_workerThread->start(startupData.release()); | 383 m_workerThread->start(startupData.release()); |
| 379 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); | 384 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); |
| 380 } | 385 } |
| 381 | 386 |
| 382 } // namespace blink | 387 } // namespace blink |
| OLD | NEW |