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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(reconnectToWor kerContextInspectorTask, String(savedState))); 253 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(reconnectToWor kerContextInspectorTask, String(savedState)));
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 if (m_askedToTerminate)
264 return;
263 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(dispatchOnInsp ectorBackendTask, String(message))); 265 m_workerThread->runLoop().postDebuggerTask(createCallbackTask(dispatchOnInsp ectorBackendTask, String(message)));
264 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(m_workerThread.ge t()); 266 m_workerThread->interruptAndDispatchInspectorCommands();
265 } 267 }
266 268
267 void WebEmbeddedWorkerImpl::prepareShadowPageForLoader() 269 void WebEmbeddedWorkerImpl::prepareShadowPageForLoader()
268 { 270 {
269 // Create 'shadow page', which is never displayed and is used mainly to 271 // Create 'shadow page', which is never displayed and is used mainly to
270 // provide a context for loading on the main thread. 272 // provide a context for loading on the main thread.
271 // 273 //
272 // FIXME: This does mostly same as WebSharedWorkerImpl::initializeLoader. 274 // FIXME: This does mostly same as WebSharedWorkerImpl::initializeLoader.
273 // This code, and probably most of the code in this class should be shared 275 // This code, and probably most of the code in this class should be shared
274 // with SharedWorker. 276 // with SharedWorker.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 m_mainScriptLoader.clear(); 360 m_mainScriptLoader.clear();
359 361
360 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *toW ebLocalFrameImpl(m_mainFrame)->frame()->document(), *m_workerContextClient); 362 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *toW ebLocalFrameImpl(m_mainFrame)->frame()->document(), *m_workerContextClient);
361 m_loaderProxy = LoaderProxy::create(*this); 363 m_loaderProxy = LoaderProxy::create(*this);
362 364
363 m_workerThread = ServiceWorkerThread::create(*m_loaderProxy, *m_workerGlobal ScopeProxy, startupData.release()); 365 m_workerThread = ServiceWorkerThread::create(*m_loaderProxy, *m_workerGlobal ScopeProxy, startupData.release());
364 m_workerThread->start(); 366 m_workerThread->start();
365 } 367 }
366 368
367 } // namespace blink 369 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698