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

Unified Diff: public/web/WebScriptExecutionCallback.h

Issue 660863002: [DevTools] Added public method for async execution of scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added deprecated label for not suspendable execute methods Created 6 years, 2 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: public/web/WebScriptExecutionCallback.h
diff --git a/public/web/WebScriptExecutionCallback.h b/public/web/WebScriptExecutionCallback.h
new file mode 100644
index 0000000000000000000000000000000000000000..44b377a1533867610d08219c9025f28a1a8e64e5
--- /dev/null
+++ b/public/web/WebScriptExecutionCallback.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebScriptExecutionCallback_h
+#define WebScriptExecutionCallback_h
+
+namespace v8 {
+class Value;
+template <class T> class Local;
+}
+
+namespace blink {
+
+template <typename T> class WebVector;
+
+class WebScriptExecutionCallback {
+public:
+ virtual ~WebScriptExecutionCallback() { }
+
+ // Method to be invoked when the asynchronous script execution is complete.
+ // After function call all objects in vector will be collected
+ virtual void completed(const WebVector<v8::Local<v8::Value> >&) { }
+};
+
+} // namespace blink
+
+#endif // WebScriptExecutionCallback_h

Powered by Google App Engine
This is Rietveld 408576698