| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 m_pauseAfterDownloadState = DontPauseAfterDownload; | 231 m_pauseAfterDownloadState = DontPauseAfterDownload; |
| 232 | 232 |
| 233 // If we were asked to wait for debugger while updating service worker versi
on then it is good time now. | 233 // If we were asked to wait for debugger while updating service worker versi
on then it is good time now. |
| 234 m_workerContextClient->workerReadyForInspection(); | 234 m_workerContextClient->workerReadyForInspection(); |
| 235 if (m_workerStartData.waitForDebuggerMode == WebEmbeddedWorkerStartData::Wai
tForDebugger) | 235 if (m_workerStartData.waitForDebuggerMode == WebEmbeddedWorkerStartData::Wai
tForDebugger) |
| 236 m_waitingForDebuggerState = WaitingForDebuggerAfterScriptLoaded; | 236 m_waitingForDebuggerState = WaitingForDebuggerAfterScriptLoaded; |
| 237 else if (wasPaused) | 237 else if (wasPaused) |
| 238 startWorkerThread(); | 238 startWorkerThread(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void WebEmbeddedWorkerImpl::resumeWorkerContext() | |
| 242 { | |
| 243 } | |
| 244 | |
| 245 void WebEmbeddedWorkerImpl::attachDevTools(const WebString& hostId) | 241 void WebEmbeddedWorkerImpl::attachDevTools(const WebString& hostId) |
| 246 { | 242 { |
| 247 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); | 243 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); |
| 248 if (devtoolsAgent) | 244 if (devtoolsAgent) |
| 249 devtoolsAgent->attach(hostId); | 245 devtoolsAgent->attach(hostId); |
| 250 } | 246 } |
| 251 | 247 |
| 252 void WebEmbeddedWorkerImpl::reattachDevTools(const WebString& hostId, const WebS
tring& savedState) | 248 void WebEmbeddedWorkerImpl::reattachDevTools(const WebString& hostId, const WebS
tring& savedState) |
| 253 { | 249 { |
| 254 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); | 250 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 m_mainScriptLoader.clear(); | 420 m_mainScriptLoader.clear(); |
| 425 | 421 |
| 426 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); | 422 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc
ument, *m_workerContextClient); |
| 427 m_loaderProxy = LoaderProxy::create(*this); | 423 m_loaderProxy = LoaderProxy::create(*this); |
| 428 m_workerThread = ServiceWorkerThread::create(*m_loaderProxy, *m_workerGlobal
ScopeProxy, startupData.release()); | 424 m_workerThread = ServiceWorkerThread::create(*m_loaderProxy, *m_workerGlobal
ScopeProxy, startupData.release()); |
| 429 m_workerThread->start(); | 425 m_workerThread->start(); |
| 430 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); | 426 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(),
scriptURL); |
| 431 } | 427 } |
| 432 | 428 |
| 433 } // namespace blink | 429 } // namespace blink |
| OLD | NEW |