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

Unified Diff: Source/bindings/v8/DOMRequestState.h

Issue 77773003: Make WebMIDI use blink Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/bindings/v8/DOMRequestState.h
diff --git a/Source/bindings/v8/DOMRequestState.h b/Source/bindings/v8/DOMRequestState.h
index 32992b8340cfe349ceace8cd6867dbccf72c2402..7c333db02322c4ede8e67add382ad304a1c9431f 100644
--- a/Source/bindings/v8/DOMRequestState.h
+++ b/Source/bindings/v8/DOMRequestState.h
@@ -44,6 +44,20 @@ public:
ASSERT(m_executionContext);
}
+ DOMRequestState(ExecutionContext* executionContext, PassRefPtr<DOMWrapperWorld> world)
+ : m_executionContext(executionContext)
+ , m_world(world)
+ , m_isolate(toIsolate(executionContext))
+ {
+ }
+
+ DOMRequestState(ExecutionContext* executionContext, DOMWrapperWorld* world)
+ : m_executionContext(executionContext)
+ , m_world(world)
+ , m_isolate(toIsolate(executionContext))
+ {
+ }
+
void clear()
{
m_executionContext = 0;

Powered by Google App Engine
This is Rietveld 408576698