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

Unified Diff: webkit/api/public/WebKit.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 | « chrome/test/in_process_browser_test.cc ('k') | webkit/api/src/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebKit.h
diff --git a/webkit/api/public/WebKit.h b/webkit/api/public/WebKit.h
index 94bb8b07cc7dcccea41b5edf16f27adfb59ffdfc..b3302fe2b83b8f5a7e564ca5c2ca99c5b9098059 100644
--- a/webkit/api/public/WebKit.h
+++ b/webkit/api/public/WebKit.h
@@ -69,13 +69,18 @@ namespace WebKit {
// any other URL scheme.
WEBKIT_API void registerURLSchemeAsNoAccess(const WebString&);
- // Registers a v8 extension to be available on webpages with a particular
- // scheme. If the scheme argument is empty, the extension is available on
- // all pages. Will only affect v8 contexts initialized after this call.
- // Takes ownership of the v8::Extension object passed.
+ // Registers a v8 extension to be available on webpages. The three forms
+ // offer various restrictions on what types of contexts the extension is
+ // loaded into. If a scheme is provided, only pages whose URL has the given
+ // scheme will match. If extensionGroup is provided, the extension will only
+ // be loaded into scripts run via WebFrame::ExecuteInNewWorld with the
+ // matching group.
+ // Will only affect v8 contexts initialized after this call. Takes ownership
+ // of the v8::Extension object passed.
WEBKIT_API void registerExtension(v8::Extension*);
WEBKIT_API void registerExtension(v8::Extension*,
const WebString& schemeRestriction);
+ WEBKIT_API void registerExtension(v8::Extension*, int extensionGroup);
// Process any pending JavaScript console messages.
WEBKIT_API void flushConsoleMessages();
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | webkit/api/src/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698