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

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

Issue 26472004: Revert 227318 "Clean up ResourceHandler API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
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
9 namespace content { 7 namespace content {
10 8
11 ResourceHandler::ResourceHandler(net::URLRequest* request)
12 : controller_(NULL),
13 request_(request) {
14 }
15
16 void ResourceHandler::SetController(ResourceController* controller) { 9 void ResourceHandler::SetController(ResourceController* controller) {
17 controller_ = controller; 10 controller_ = controller;
18 } 11 }
19 12
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
32 } // namespace content 13 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/loader/resource_handler.h ('k') | trunk/src/content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698