mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add API for SSL status and certificate retrieval (issue #1924)
This commit is contained in:
@ -893,6 +893,22 @@ void CefBrowserHostImpl::GetNavigationEntries(
|
||||
}
|
||||
}
|
||||
|
||||
CefRefPtr<CefNavigationEntry> CefBrowserHostImpl::GetVisibleNavigationEntry() {
|
||||
if (!CEF_CURRENTLY_ON_UIT()) {
|
||||
NOTREACHED() << "called on invalid thread";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
content::NavigationEntry* entry = nullptr;
|
||||
if (web_contents())
|
||||
entry = web_contents()->GetController().GetVisibleEntry();
|
||||
|
||||
if (!entry)
|
||||
return nullptr;
|
||||
|
||||
return new CefNavigationEntryImpl(entry);
|
||||
}
|
||||
|
||||
void CefBrowserHostImpl::SetMouseCursorChangeDisabled(bool disabled) {
|
||||
base::AutoLock lock_scope(state_lock_);
|
||||
mouse_cursor_change_disabled_ = disabled;
|
||||
|
Reference in New Issue
Block a user