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

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

Issue 2481093003: Introduce ResourceRequesterInfo to abstract the requester of resource request (Closed)
Patch Set: fix URLLoaderFactoryImplTest/URLLoaderFactoryImplTest.GetFailedResponse2 Created 4 years 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
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" 7 #include "content/browser/loader/resource_request_info_impl.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 ResourceRequestInfoImpl* ResourceHandler::GetRequestInfo() const { 22 ResourceRequestInfoImpl* ResourceHandler::GetRequestInfo() const {
23 return ResourceRequestInfoImpl::ForRequest(request_); 23 return ResourceRequestInfoImpl::ForRequest(request_);
24 } 24 }
25 25
26 int ResourceHandler::GetRequestID() const { 26 int ResourceHandler::GetRequestID() const {
27 return GetRequestInfo()->GetRequestID(); 27 return GetRequestInfo()->GetRequestID();
28 } 28 }
29 29
30 ResourceMessageFilter* ResourceHandler::GetFilter() const { 30 ResourceMessageFilter* ResourceHandler::GetFilter() const {
31 return GetRequestInfo()->filter(); 31 return GetRequestInfo()->requester_info()->filter();
32 } 32 }
33 33
34 } // namespace content 34 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698