Add |extra_info| parameter for browser creation (fixes issue #1088)

The optional |extra_info| parameter provides an opportunity to specify extra
information specific to the created browser that will be passed to
CefRenderProcessHandler::OnBrowserCreated() in the render process.
This commit is contained in:
cef-ms
2019-03-19 09:42:54 +00:00
committed by Marshall Greenblatt
parent ad4ce5f441
commit 473c29a70d
64 changed files with 560 additions and 116 deletions

View File

@@ -1374,6 +1374,7 @@ void BrowserWindowOsrMacImpl::CreateBrowser(
ClientWindowHandle parent_handle,
const CefRect& rect,
const CefBrowserSettings& settings,
CefRefPtr<CefDictionaryValue> extra_info,
CefRefPtr<CefRequestContext> request_context) {
REQUIRE_MAIN_THREAD();
@@ -1387,7 +1388,7 @@ void BrowserWindowOsrMacImpl::CreateBrowser(
// Create the browser asynchronously.
CefBrowserHost::CreateBrowser(window_info, browser_window_.client_handler_,
browser_window_.client_handler_->startup_url(),
settings, request_context);
settings, extra_info, request_context);
}
void BrowserWindowOsrMacImpl::GetPopupConfig(CefWindowHandle temp_handle,