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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/resource_handler.h ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_handler.cc
diff --git a/content/browser/loader/resource_handler.cc b/content/browser/loader/resource_handler.cc
index 2a5d85ee253c26d4cecdee1ad576b47874115171..358dd65a90a4fad49350439fb8ff3bf0cfa24c13 100644
--- a/content/browser/loader/resource_handler.cc
+++ b/content/browser/loader/resource_handler.cc
@@ -4,10 +4,29 @@
#include "content/browser/loader/resource_handler.h"
+#include "content/browser/loader/resource_request_info_impl.h"
+
namespace content {
+ResourceHandler::ResourceHandler(net::URLRequest* request)
+ : controller_(NULL),
+ request_(request) {
+}
+
void ResourceHandler::SetController(ResourceController* controller) {
controller_ = controller;
}
+ResourceRequestInfoImpl* ResourceHandler::GetRequestInfo() const {
+ return ResourceRequestInfoImpl::ForRequest(request_);
+}
+
+int ResourceHandler::GetRequestID() const {
+ return GetRequestInfo()->GetRequestID();
+}
+
+ResourceMessageFilter* ResourceHandler::GetFilter() const {
+ return GetRequestInfo()->filter();
+}
+
} // namespace content
« 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