summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webframe.h')
-rw-r--r--webkit/glue/webframe.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h
index 2169549..c8d73af 100644
--- a/webkit/glue/webframe.h
+++ b/webkit/glue/webframe.h
@@ -91,6 +91,12 @@ class WebFrame : public base::RefCounted<WebFrame> {
bool replace,
const GURL& fake_url) = 0;
+ // Executes a string of JavaScript in the web frame. The script_url param is
+ // the URL where the script in question can be found, if any. The renderer may
+ // request this URL to show the developer the source of the error.
+ virtual void ExecuteJavaScript(const std::string& js_code,
+ const std::string& script_url) = 0;
+
// Returns a string representing the state of the previous page load for
// later use when loading as well as the uri and title of the page. The
// previous page is the page that was loaded before DidCommitLoadForFrame was