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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerEventQueue.h

Issue 2580743002: Worker: Clarify a target context of postTask in WorkerEventQueue (Closed)
Patch Set: use ExecutionContext::postTask Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerEventQueue.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerEventQueue.h b/third_party/WebKit/Source/core/workers/WorkerEventQueue.h
index 1fe46ee66bde63abff87d8eab1bd0e40702868b7..a5b8906b8e4b302362a1c76ac8194db81ccd4bb5 100644
--- a/third_party/WebKit/Source/core/workers/WorkerEventQueue.h
+++ b/third_party/WebKit/Source/core/workers/WorkerEventQueue.h
@@ -33,11 +33,11 @@
namespace blink {
class Event;
-class ExecutionContext;
+class WorkerGlobalScope;
class WorkerEventQueue final : public EventQueue {
public:
- static WorkerEventQueue* create(ExecutionContext*);
+ static WorkerEventQueue* create(WorkerGlobalScope*);
~WorkerEventQueue() override;
DECLARE_TRACE();
@@ -47,11 +47,11 @@ class WorkerEventQueue final : public EventQueue {
void close() override;
private:
- explicit WorkerEventQueue(ExecutionContext*);
+ explicit WorkerEventQueue(WorkerGlobalScope*);
bool removeEvent(Event*);
- void dispatchEvent(Event*, ExecutionContext*);
+ void dispatchEvent(Event*);
- Member<ExecutionContext> m_executionContext;
+ Member<WorkerGlobalScope> m_workerGlobalScope;
bool m_isClosed;
HeapHashSet<Member<Event>> m_pendingEvents;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerEventQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698