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

Unified Diff: extensions/common/api/mojo_private.idl

Issue 862793003: Expose requireAsync method and make it more robust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync with master Created 5 years, 11 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: extensions/common/api/mojo_private.idl
diff --git a/extensions/common/api/mojo_private.idl b/extensions/common/api/mojo_private.idl
index 083ce638e2ca557e6332393821df9c5d0df8eac6..7a8ddd0621d7827e5b20f7a0d27482c512be4ce8 100644
--- a/extensions/common/api/mojo_private.idl
+++ b/extensions/common/api/mojo_private.idl
@@ -14,6 +14,10 @@ namespace mojoPrivate {
DOMString moduleName,
optional DOMString[] dependencies,
DefineCallback factory);
+
+ // Returns a promise that will resolve to an asynchronously
+ // loaded module.
+ [nocompile] static any requireAsync(DOMString name);
};
};

Powered by Google App Engine
This is Rietveld 408576698