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

Unified Diff: webkit/glue/webframe.h

Issue 155626: Enable isolated worlds for content scripts.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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: webkit/glue/webframe.h
===================================================================
--- webkit/glue/webframe.h (revision 20764)
+++ webkit/glue/webframe.h (working copy)
@@ -143,6 +143,13 @@
virtual void ExecuteScriptInNewContext(
const WebKit::WebScriptSource* sources, int num_sources) = 0;
+ // Executes JavaScript in a new world associated with the web frame. The
+ // script gets its own global scope and its own prototypes for intrinsic
+ // JavaScript objects (String, Array, and so-on). It also gets its own
+ // wrappers for all DOM nodes and DOM constructors.
+ virtual void ExecuteScriptInNewWorld(
+ const WebKit::WebScriptSource* sources, int num_sources) = 0;
+
// Inserts the given CSS styles at the beginning of the document.
virtual bool InsertCSSStyles(const std::string& css) = 0;

Powered by Google App Engine
This is Rietveld 408576698