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

Unified Diff: content/browser/loader/resource_handler.cc

Issue 2005273002: Move MimeTypeResourceHandler before ThrottlingResourceHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: content/browser/loader/resource_handler.cc
diff --git a/content/browser/loader/resource_handler.cc b/content/browser/loader/resource_handler.cc
index 358dd65a90a4fad49350439fb8ff3bf0cfa24c13..60ea01822bc7171ab60c63c3ad934747577bab58 100644
--- a/content/browser/loader/resource_handler.cc
+++ b/content/browser/loader/resource_handler.cc
@@ -17,6 +17,16 @@ void ResourceHandler::SetController(ResourceController* controller) {
controller_ = controller;
}
+bool ResourceHandler::IsLeafHandler() const {
+ return true;
+}
+
+void ResourceHandler::InstallNewLeafHandler(
+ std::unique_ptr<ResourceHandler> new_handler,
+ const std::string& payload_for_old_handler) {
+ NOTREACHED();
+}
+
ResourceRequestInfoImpl* ResourceHandler::GetRequestInfo() const {
return ResourceRequestInfoImpl::ForRequest(request_);
}

Powered by Google App Engine
This is Rietveld 408576698