mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace CefRequestCallback with CefCallback (fixes issue #1861)
CefRequestCallback::Continue(false) was the same as Cancel(), so we can just use CefCallback instead.
This commit is contained in:
@@ -324,7 +324,7 @@ struct CefResourceManager::ProviderEntry {
|
||||
CefResourceManager::RequestState::~RequestState() {
|
||||
// Always execute the callback.
|
||||
if (callback_.get())
|
||||
callback_->Continue(true);
|
||||
callback_->Continue();
|
||||
}
|
||||
|
||||
// CefResourceManager::Request implementation.
|
||||
@@ -558,7 +558,7 @@ cef_return_value_t CefResourceManager::OnBeforeResourceLoad(
|
||||
CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame,
|
||||
CefRefPtr<CefRequest> request,
|
||||
CefRefPtr<CefRequestCallback> callback) {
|
||||
CefRefPtr<CefCallback> callback) {
|
||||
CEF_REQUIRE_IO_THREAD();
|
||||
|
||||
// Find the first provider that is not pending deletion.
|
||||
|
Reference in New Issue
Block a user