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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h

Issue 2811993007: Worker: Remove cross-thread PostTask functions from WorkerLoaderProxy (Closed)
Patch Set: address review comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
index 0c7c01c27b252cf3e0bcc348ffc5cbdf0d5f3b8d..7d8c2c9a9233619990d4de55b2f39cfa0dd4eff5 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h
@@ -44,7 +44,6 @@
namespace blink {
class ThreadableLoadingContext;
-class ParentFrameTaskRunners;
class ServiceWorkerGlobalScopeProxy;
class WebLocalFrameImpl;
class WebView;
@@ -100,11 +99,6 @@ class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker,
void StartWorkerThread();
// WorkerLoaderProxyProvider
- void PostTaskToLoader(const WebTraceLocation&,
- std::unique_ptr<WTF::CrossThreadClosure>) override;
- void PostTaskToWorkerGlobalScope(
- const WebTraceLocation&,
- std::unique_ptr<WTF::CrossThreadClosure>) override;
ThreadableLoadingContext* GetThreadableLoadingContext() override;
WebEmbeddedWorkerStartData worker_start_data_;
@@ -118,10 +112,6 @@ class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker,
// Kept around only while main script loading is ongoing.
RefPtr<WorkerScriptLoader> main_script_loader_;
- // Owned by the main thread, but will be accessed by the worker when
- // posting tasks.
- CrossThreadPersistent<ParentFrameTaskRunners> main_thread_task_runners_;
-
std::unique_ptr<WorkerThread> worker_thread_;
RefPtr<WorkerLoaderProxy> loader_proxy_;
Persistent<ServiceWorkerGlobalScopeProxy> worker_global_scope_proxy_;

Powered by Google App Engine
This is Rietveld 408576698