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

Unified Diff: Source/web/WebLocalFrameImpl.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: 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: Source/web/WebLocalFrameImpl.h
diff --git a/Source/web/WebLocalFrameImpl.h b/Source/web/WebLocalFrameImpl.h
index 950b87c785f2fc2aeae93ee2bf0fcdaaf98374c9..d41c798003b2f1845139ffa940fd9497551aa407 100644
--- a/Source/web/WebLocalFrameImpl.h
+++ b/Source/web/WebLocalFrameImpl.h
@@ -50,6 +50,7 @@ class GeolocationClientProxy;
class IntSize;
class KURL;
class Range;
+class ScriptSourceCode;
class SharedWorkerRepositoryClientImpl;
class TextFinder;
class WebDataSourceImpl;
@@ -57,6 +58,7 @@ class WebFrameClient;
class WebPerformance;
class WebPlugin;
class WebPluginContainerImpl;
+class WebScriptCallback;
class WebView;
class WebViewImpl;
struct FrameLoadRequest;
@@ -110,9 +112,14 @@ public:
virtual bool checkIfRunInsecureContent(const WebURL&) const override;
virtual v8::Handle<v8::Value> executeScriptAndReturnValue(
const WebScriptSource&) override;
+ virtual void asyncExecuteScriptAndReturnValue(
+ const WebScriptSource&, WebScriptCallback*) override;
virtual void executeScriptInIsolatedWorld(
int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
int extensionGroup, WebVector<v8::Local<v8::Value> >* results) override;
+ virtual void asyncExecuteScriptInIsolatedWorld(
+ int worldID, const WebScriptSource* sourceIn, unsigned numSources,
+ int extensionGroup, WebScriptCallback*) override;
virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled(
v8::Handle<v8::Function>,
v8::Handle<v8::Value>,
@@ -250,6 +257,8 @@ public:
// WebPluginContainerImpl.
static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const WebNode&);
+ static Vector<ScriptSourceCode> createSourcesVector(const WebScriptSource* sourcesIn, unsigned numSources);
vsevik 2014/10/20 16:50:37 This could be made file static in .cpp file.
kozyatinskiy1 2014/10/21 12:46:47 Done.
+
WebViewImpl* viewImpl() const;
FrameView* frameView() const { return frame() ? frame()->view() : 0; }

Powered by Google App Engine
This is Rietveld 408576698