1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/loader/resource_handler.h"
7 #include "content/browser/loader/resource_request_info_impl.h"
11 ResourceHandler::ResourceHandler(net::URLRequest
* request
)
16 void ResourceHandler::SetController(ResourceController
* controller
) {
17 controller_
= controller
;
20 ResourceRequestInfoImpl
* ResourceHandler::GetRequestInfo() const {
21 return ResourceRequestInfoImpl::ForRequest(request_
);
24 int ResourceHandler::GetRequestID() const {
25 return GetRequestInfo()->GetRequestID();
28 ResourceMessageFilter
* ResourceHandler::GetFilter() const {
29 return GetRequestInfo()->filter();
32 } // namespace content