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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 254 } |
255 | 255 |
256 void WebEmbeddedWorkerImpl::detachDevTools() | 256 void WebEmbeddedWorkerImpl::detachDevTools() |
257 { | 257 { |
258 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(disconnectFrom
WorkerContextInspectorTask, true)); | 258 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(disconnectFrom
WorkerContextInspectorTask, true)); |
259 } | 259 } |
260 | 260 |
261 void WebEmbeddedWorkerImpl::dispatchDevToolsMessage(const WebString& message) | 261 void WebEmbeddedWorkerImpl::dispatchDevToolsMessage(const WebString& message) |
262 { | 262 { |
263 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(dispatchOnInsp
ectorBackendTask, String(message))); | 263 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(dispatchOnInsp
ectorBackendTask, String(message))); |
264 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(m_workerThread.ge
t()); | 264 m_workerThread->interruptAndDispatchInspectorCommands(); |
265 } | 265 } |
266 | 266 |
267 void WebEmbeddedWorkerImpl::prepareShadowPageForLoader() | 267 void WebEmbeddedWorkerImpl::prepareShadowPageForLoader() |
268 { | 268 { |
269 // Create 'shadow page', which is never displayed and is used mainly to | 269 // Create 'shadow page', which is never displayed and is used mainly to |
270 // provide a context for loading on the main thread. | 270 // provide a context for loading on the main thread. |
271 // | 271 // |
272 // FIXME: This does mostly same as WebSharedWorkerImpl::initializeLoader. | 272 // FIXME: This does mostly same as WebSharedWorkerImpl::initializeLoader. |
273 // This code, and probably most of the code in this class should be shared | 273 // This code, and probably most of the code in this class should be shared |
274 // with SharedWorker. | 274 // with SharedWorker. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 m_mainScriptLoader.clear(); | 358 m_mainScriptLoader.clear(); |
359 | 359 |
360 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *toW
ebLocalFrameImpl(m_mainFrame)->frame()->document(), *m_workerContextClient); | 360 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *toW
ebLocalFrameImpl(m_mainFrame)->frame()->document(), *m_workerContextClient); |
361 m_loaderProxy = LoaderProxy::create(*this); | 361 m_loaderProxy = LoaderProxy::create(*this); |
362 | 362 |
363 m_workerThread = ServiceWorkerThread::create(*m_loaderProxy, *m_workerGlobal
ScopeProxy, startupData.release()); | 363 m_workerThread = ServiceWorkerThread::create(*m_loaderProxy, *m_workerGlobal
ScopeProxy, startupData.release()); |
364 m_workerThread->start(); | 364 m_workerThread->start(); |
365 } | 365 } |
366 | 366 |
367 } // namespace blink | 367 } // namespace blink |
OLD | NEW |