This source file includes following definitions.
- request_
- SetController
- GetRequestInfo
- GetRequestID
- GetFilter
#include "content/browser/loader/resource_handler.h"
#include "content/browser/loader/resource_request_info_impl.h"
namespace content {
ResourceHandler::ResourceHandler(net::URLRequest* request)
: controller_(NULL),
request_(request) {
}
void ResourceHandler::SetController(ResourceController* controller) {
controller_ = controller;
}
ResourceRequestInfoImpl* ResourceHandler::GetRequestInfo() const {
return ResourceRequestInfoImpl::ForRequest(request_);
}
int ResourceHandler::GetRequestID() const {
return GetRequestInfo()->GetRequestID();
}
ResourceMessageFilter* ResourceHandler::GetFilter() const {
return GetRequestInfo()->filter();
}
}