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

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

Issue 670433002: DevTools: Remove unused code after service/shared worker inspection migration to main thread. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.h ('k') | Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.h ('k') | Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698