This source file includes following definitions.
- socket_address
- new_url
#include "content/public/browser/resource_request_details.h"
#include "content/browser/worker_host/worker_service_impl.h"
#include "content/public/browser/resource_request_info.h"
#include "net/url_request/url_request.h"
namespace content {
ResourceRequestDetails::ResourceRequestDetails(const net::URLRequest* request,
int cert_id)
: url(request->url()),
original_url(request->original_url()),
method(request->method()),
referrer(request->referrer()),
has_upload(request->has_upload()),
load_flags(request->load_flags()),
status(request->status()),
ssl_cert_id(cert_id),
ssl_cert_status(request->ssl_info().cert_status),
socket_address(request->GetSocketAddress()) {
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
resource_type = info->GetResourceType();
render_frame_id = info->GetRenderFrameID();
int worker_render_frame_id;
if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker(
info->GetChildID(), &origin_child_id, &worker_render_frame_id)) {
origin_child_id = info->GetChildID();
}
}
ResourceRequestDetails::~ResourceRequestDetails() {}
ResourceRedirectDetails::ResourceRedirectDetails(const net::URLRequest* request,
int cert_id,
const GURL& new_url)
: ResourceRequestDetails(request, cert_id),
new_url(new_url) {
}
ResourceRedirectDetails::~ResourceRedirectDetails() {}
}