mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Update to Chromium revision 131752.
- Add support for multi_threaded_message_loop run mode on Windows (issue #522). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@586 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "libcef/common/request_impl.h"
|
||||
|
||||
#include "net/base/net_errors.h"
|
||||
#include "net/url_request/url_request.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -95,6 +96,8 @@ int CefNetworkDelegate::OnBeforeURLRequest(
|
||||
if (handler.get()) {
|
||||
CefRefPtr<CefFrame> frame = browser->GetFrameForRequest(request);
|
||||
|
||||
GURL old_url = request->url();
|
||||
|
||||
// Populate the request data.
|
||||
CefRefPtr<CefRequestImpl> requestPtr(new CefRequestImpl());
|
||||
requestPtr->Set(request);
|
||||
@@ -105,7 +108,10 @@ int CefNetworkDelegate::OnBeforeURLRequest(
|
||||
return net::ERR_ABORTED;
|
||||
}
|
||||
|
||||
*new_url = GURL(std::string(requestPtr->GetURL()));
|
||||
GURL url = GURL(std::string(requestPtr->GetURL()));
|
||||
if (old_url != url)
|
||||
new_url ->Swap(&url);
|
||||
|
||||
requestPtr->Get(request);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user