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

Unified Diff: webkit/glue/webframe.h

Issue 159542: Add a WebKit API that registers a V8 extension to be loaded into content (Closed)
Patch Set: final 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
« no previous file with comments | « webkit/api/src/WebKit.cpp ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe.h
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h
index ddfcb17cc98fd207385ef80585c2860dfe6be776..fc09458ac9a4df3761e0a16bfea934f9ff3b9840 100644
--- a/webkit/glue/webframe.h
+++ b/webkit/glue/webframe.h
@@ -139,16 +139,24 @@ class WebFrame {
// Executes JavaScript in a new context 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 shares the wrappers for
- // all DOM nodes and DOM constructors.
+ // all DOM nodes and DOM constructors. extension_group is an
+ // embedder-provided specifier that controls which v8 extensions are loaded
+ // into the new context - see WebKit::registerExtension for the corresponding
+ // specifier.
virtual void ExecuteScriptInNewContext(
- const WebKit::WebScriptSource* sources, int num_sources) = 0;
+ const WebKit::WebScriptSource* sources, int num_sources,
+ int extension_group) = 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.
+ // wrappers for all DOM nodes and DOM constructors. extension_group is an
+ // embedder-provided specifier that controls which v8 extensions are loaded
+ // into the new context - see WebKit::registerExtension for the corresponding
+ // specifier.
virtual void ExecuteScriptInNewWorld(
- const WebKit::WebScriptSource* sources, int num_sources) = 0;
+ const WebKit::WebScriptSource* sources, int num_sources,
+ int extension_group) = 0;
// Inserts the given CSS styles at the beginning of the document.
virtual bool InsertCSSStyles(const std::string& css) = 0;
« no previous file with comments | « webkit/api/src/WebKit.cpp ('k') | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698