Add the ability to restrict V8 extension loading by frame using a new CefPermissionHandler::OnBeforeScriptExtensionLoad() callback (issue #471).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@457 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-01-05 19:34:20 +00:00
parent ad65bb8532
commit b8ba27a671
23 changed files with 572 additions and 22 deletions

View File

@@ -60,6 +60,7 @@ WebViewHost* WebViewHost::Create(HWND parent_view,
host->webwidget_ = WebView::create(delegate);
#endif
host->webview()->setDevToolsAgentClient(dev_tools_client);
host->webview()->setPermissionClient(delegate);
prefs.Apply(host->webview());
host->webview()->initializeMainFrame(delegate);