This commit is contained in:
Cheng Zhao 2015-05-20 20:35:54 +08:00
parent bbd8f091e0
commit 4ae1998d09
2 changed files with 2 additions and 10 deletions

View file

@ -279,20 +279,13 @@ void WebContents::DidStopLoading(content::RenderViewHost* render_view_host) {
void WebContents::DidGetResourceResponseStart(
const content::ResourceRequestDetails& details) {
auto context = static_cast<brightray::BrowserContext*>(
web_contents()->GetBrowserContext());
std::string headers;
if (context)
headers = context->GetNetworkDelegate()->GetResponseHeaders(details.url);
Emit("did-get-response-details",
details.socket_address.IsEmpty(),
details.url,
details.original_url,
details.http_response_code,
details.method,
details.referrer,
headers);
details.referrer);
}
void WebContents::DidGetRedirectForResourceRequest(