| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index f0dd0e13488ed4d2fc602d50b43e0220f192da44..b1ec504031cdf0fdf2401734caedd6327044d6c1 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -4428,6 +4428,20 @@ class V8_EXPORT Isolate {
|
| */
|
| void SetEventLogger(LogEventCallback that);
|
|
|
| + /**
|
| + * Adds a callback to notify the host application when a script finished
|
| + * running. If a script re-enters the runtime during executing, the
|
| + * CallCompletedCallback is only invoked when the outer-most script
|
| + * execution ends. Executing scripts inside the callback do not trigger
|
| + * further callbacks.
|
| + */
|
| + void AddCallCompletedCallback(CallCompletedCallback callback);
|
| +
|
| + /**
|
| + * Removes callback that was installed by AddCallCompletedCallback.
|
| + */
|
| + void RemoveCallCompletedCallback(CallCompletedCallback callback);
|
| +
|
| private:
|
| template<class K, class V, class Traits> friend class PersistentValueMap;
|
|
|
| @@ -4795,11 +4809,15 @@ class V8_EXPORT V8 {
|
| * CallCompletedCallback is only invoked when the outer-most script
|
| * execution ends. Executing scripts inside the callback do not trigger
|
| * further callbacks.
|
| + *
|
| + * Will be deprecated soon. Use Isolate::AddCallCompletedCallback.
|
| */
|
| static void AddCallCompletedCallback(CallCompletedCallback callback);
|
|
|
| /**
|
| * Removes callback that was installed by AddCallCompletedCallback.
|
| + *
|
| + * Will be deprecated soon. Use Isolate::RemoveCallCompletedCallback.
|
| */
|
| static void RemoveCallCompletedCallback(CallCompletedCallback callback);
|
|
|
|
|