- 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:
Marshall Greenblatt
2012-04-11 18:00:55 +00:00
parent 1cd6e3b3e7
commit 9d200c109a
13 changed files with 132 additions and 84 deletions

View File

@@ -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);
}
}