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

Unified Diff: extensions/renderer/api_binding_types.h

Issue 2598123002: [Extensions Bindings] Add support for updateArgumentsPreValidate (Closed)
Patch Set: rebase 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
Index: extensions/renderer/api_binding_types.h
diff --git a/extensions/renderer/api_binding_types.h b/extensions/renderer/api_binding_types.h
index c9edc46941601bfb7af86bcee9c3dc3123978b4b..2bf756336824a91733584c7248648d30d1cfc086 100644
--- a/extensions/renderer/api_binding_types.h
+++ b/extensions/renderer/api_binding_types.h
@@ -21,6 +21,15 @@ using RunJSFunction = base::Callback<void(v8::Local<v8::Function>,
int argc,
v8::Local<v8::Value>[])>;
+// A callback to execute the given v8::Function synchronously and return the
+// result. Note that script can be suspended, so you need to be certain that
+// it is not before expected a synchronous result.
+using RunJSFunctionSync =
+ base::Callback<v8::Global<v8::Value>(v8::Local<v8::Function>,
jbroman 2017/01/02 19:46:38 Mind a comment alluding to why this returns a Glob
Devlin 2017/01/04 17:57:02 Done.
+ v8::Local<v8::Context>,
+ int argc,
+ v8::Local<v8::Value>[])>;
+
} // namespace binding
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698