[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / browser / loader / resource_handler.cc
blob358dd65a90a4fad49350439fb8ff3bf0cfa24c13
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"
9 namespace content {
11 ResourceHandler::ResourceHandler(net::URLRequest* request)
12 : controller_(NULL),
13 request_(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