Index: webkit/glue/webframe.h |
=================================================================== |
--- webkit/glue/webframe.h (revision 3492) |
+++ webkit/glue/webframe.h (working copy) |
@@ -91,6 +91,12 @@ |
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 |