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

Unified Diff: Source/bindings/core/v8/WorkerScriptController.h

Issue 897523002: Handle rejected promises better for workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tidying 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/v8/V8Initializer.cpp ('k') | Source/bindings/core/v8/WorkerScriptController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WorkerScriptController.h
diff --git a/Source/bindings/core/v8/WorkerScriptController.h b/Source/bindings/core/v8/WorkerScriptController.h
index 8df1b75596e366df809fdb3cf1b863983b72839d..695df6b1b614d3e1fbebd7cb15ab903677443f53 100644
--- a/Source/bindings/core/v8/WorkerScriptController.h
+++ b/Source/bindings/core/v8/WorkerScriptController.h
@@ -31,6 +31,7 @@
#ifndef WorkerScriptController_h
#define WorkerScriptController_h
+#include "bindings/core/v8/RejectedPromises.h"
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/V8Binding.h"
#include "wtf/OwnPtr.h"
@@ -84,6 +85,8 @@ public:
// Used by V8 bindings:
v8::Local<v8::Context> context() { return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>(); }
+ RejectedPromises* rejectedPromises() const { return m_rejectedPromises.get(); }
+
private:
class WorkerGlobalScopeExecutionState;
@@ -101,6 +104,8 @@ private:
bool m_executionScheduledToTerminate;
mutable Mutex m_scheduledTerminationMutex;
+ OwnPtrWillBePersistent<RejectedPromises> m_rejectedPromises;
+
// |m_globalScopeExecutionState| refers to a stack object
// that evaluate() allocates; evaluate() ensuring that the
// pointer reference to it is removed upon returning. Hence
« no previous file with comments | « Source/bindings/core/v8/V8Initializer.cpp ('k') | Source/bindings/core/v8/WorkerScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698