Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: content/browser/loader/resource_handler.cc

Issue 25536005: Clean up ResourceHandler API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/loader/resource_handler.h ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/loader/resource_handler.h" 5 #include "content/browser/loader/resource_handler.h"
6 6
7 #include "content/browser/loader/resource_request_info_impl.h"
8
7 namespace content { 9 namespace content {
8 10
11 ResourceHandler::ResourceHandler(net::URLRequest* request)
12 : controller_(NULL),
13 request_(request) {
14 }
15
9 void ResourceHandler::SetController(ResourceController* controller) { 16 void ResourceHandler::SetController(ResourceController* controller) {
10 controller_ = controller; 17 controller_ = controller;
11 } 18 }
12 19
20 ResourceRequestInfoImpl* ResourceHandler::GetRequestInfo() const {
21 return ResourceRequestInfoImpl::ForRequest(request_);
22 }
23
24 int ResourceHandler::GetRequestID() const {
25 return GetRequestInfo()->GetRequestID();
26 }
27
28 ResourceMessageFilter* ResourceHandler::GetFilter() const {
29 return GetRequestInfo()->filter();
30 }
31
13 } // namespace content 32 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_handler.h ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698