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

Unified Diff: Source/bindings/v8/custom/V8PromiseCustom.h

Issue 18119008: Implement PromiseResolver.prototype.resolve. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@promises-cpp-fulfill-reject
Patch Set: Created 7 years, 6 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 | « no previous file | Source/bindings/v8/custom/V8PromiseCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8PromiseCustom.h
diff --git a/Source/bindings/v8/custom/V8PromiseCustom.h b/Source/bindings/v8/custom/V8PromiseCustom.h
index fd55cace4220f8ba37b7dbbeefffd56a69487358..066d1059c36a0a9cff896dcc038032a5e573049a 100644
--- a/Source/bindings/v8/custom/V8PromiseCustom.h
+++ b/Source/bindings/v8/custom/V8PromiseCustom.h
@@ -39,10 +39,17 @@ public:
InternalFieldCount, // This entry must always be at the bottom.
};
+ enum PromiseAlgorithm {
+ FulfillAlgorithm,
+ ResolveAlgorithm,
+ RejectAlgorithm,
+ };
+
enum PromiseState {
Pending,
Fulfilled,
Rejected,
+ PendingWithResolvedFlagSet,
};
enum SynchronousMode {
@@ -56,6 +63,8 @@ public:
// |resolver| must be a PromiseResolver instance.
static void fulfillResolver(v8::Handle<v8::Object> resolver, v8::Handle<v8::Value> result, SynchronousMode, v8::Isolate*);
// |resolver| must be a PromiseResolver instance.
+ static void resolveResolver(v8::Handle<v8::Object> resolver, v8::Handle<v8::Value> result, SynchronousMode, v8::Isolate*);
+ // |resolver| must be a PromiseResolver instance.
static void rejectResolver(v8::Handle<v8::Object> resolver, v8::Handle<v8::Value> result, SynchronousMode, v8::Isolate*);
// |promise| must be a Promise instance.
« no previous file with comments | « no previous file | Source/bindings/v8/custom/V8PromiseCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698