mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Wait for CefBrowserContext initialization (see issue #2969)
With the Chrome runtime, Profile initialization may be asynchronous. Code that waited on CefBrowserContext creation now needs to wait on CefBrowserContext initialization instead.
This commit is contained in:
@ -9,26 +9,31 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3deccadb24380ee63afe228ca2a91b90e96affca$
|
||||
// $hash=f60f51701b15100a8ad9463adfe0deb37c2d6b4f$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/media_router_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/media_sink_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/media_source_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/registration_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/completion_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/media_observer_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/media_route_create_callback_ctocpp.h"
|
||||
#include "libcef_dll/shutdown_checker.h"
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_media_router_t* cef_media_router_get_global() {
|
||||
CEF_EXPORT cef_media_router_t* cef_media_router_get_global(
|
||||
cef_completion_callback_t* callback) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Unverified params: callback
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefMediaRouter> _retval = CefMediaRouter::GetGlobalMediaRouter();
|
||||
CefRefPtr<CefMediaRouter> _retval = CefMediaRouter::GetGlobalMediaRouter(
|
||||
CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMediaRouterCppToC::Wrap(_retval);
|
||||
|
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3e91639f70988c2a48470e380c7317db5f27153e$
|
||||
// $hash=38ae668703b71d27d2bcd7cd9230817edd5b8f41$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/request_context_cpptoc.h"
|
||||
@ -542,16 +542,19 @@ request_context_get_extension(struct _cef_request_context_t* self,
|
||||
}
|
||||
|
||||
cef_media_router_t* CEF_CALLBACK
|
||||
request_context_get_media_router(struct _cef_request_context_t* self) {
|
||||
request_context_get_media_router(struct _cef_request_context_t* self,
|
||||
cef_completion_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Unverified params: callback
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefMediaRouter> _retval =
|
||||
CefRequestContextCppToC::Get(self)->GetMediaRouter();
|
||||
CefRequestContextCppToC::Get(self)->GetMediaRouter(
|
||||
CefCompletionCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMediaRouterCppToC::Wrap(_retval);
|
||||
|
Reference in New Issue
Block a user