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

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

Issue 941403002: Revert of Add task location information to ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/StorageQuotaClientImpl.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void WebEmbeddedWorkerImpl::postMessageToPageInspector(const String& message) 260 void WebEmbeddedWorkerImpl::postMessageToPageInspector(const String& message)
261 { 261 {
262 WorkerInspectorProxy::PageInspector* pageInspector = m_workerInspectorProxy- >pageInspector(); 262 WorkerInspectorProxy::PageInspector* pageInspector = m_workerInspectorProxy- >pageInspector();
263 if (!pageInspector) 263 if (!pageInspector)
264 return; 264 return;
265 pageInspector->dispatchMessageFromWorker(message); 265 pageInspector->dispatchMessageFromWorker(message);
266 } 266 }
267 267
268 void WebEmbeddedWorkerImpl::postTaskToLoader(PassOwnPtr<ExecutionContextTask> ta sk) 268 void WebEmbeddedWorkerImpl::postTaskToLoader(PassOwnPtr<ExecutionContextTask> ta sk)
269 { 269 {
270 toWebLocalFrameImpl(m_mainFrame)->frame()->document()->postTask(FROM_HERE, t ask); 270 toWebLocalFrameImpl(m_mainFrame)->frame()->document()->postTask(task);
271 } 271 }
272 272
273 bool WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionCont extTask> task) 273 bool WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionCont extTask> task)
274 { 274 {
275 if (m_askedToTerminate || !m_workerThread) 275 if (m_askedToTerminate || !m_workerThread)
276 return false; 276 return false;
277 277
278 m_workerThread->postTask(task); 278 m_workerThread->postTask(task);
279 return !m_workerThread->terminated(); 279 return !m_workerThread->terminated();
280 } 280 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 m_mainScriptLoader.clear(); 429 m_mainScriptLoader.clear();
430 430
431 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc ument, *m_workerContextClient); 431 m_workerGlobalScopeProxy = ServiceWorkerGlobalScopeProxy::create(*this, *doc ument, *m_workerContextClient);
432 m_loaderProxy = WorkerLoaderProxy::create(this); 432 m_loaderProxy = WorkerLoaderProxy::create(this);
433 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS copeProxy, startupData.release()); 433 m_workerThread = ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalS copeProxy, startupData.release());
434 m_workerThread->start(); 434 m_workerThread->start();
435 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), scriptURL); 435 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), scriptURL);
436 } 436 }
437 437
438 } // namespace blink 438 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/StorageQuotaClientImpl.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698