summaryrefslogtreecommitdiffstats
path: root/content/browser/loader/detachable_resource_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/loader/detachable_resource_handler.cc')
-rw-r--r--content/browser/loader/detachable_resource_handler.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/browser/loader/detachable_resource_handler.cc b/content/browser/loader/detachable_resource_handler.cc
index 7cc7b09..42c7d1f 100644
--- a/content/browser/loader/detachable_resource_handler.cc
+++ b/content/browser/loader/detachable_resource_handler.cc
@@ -133,6 +133,20 @@ bool DetachableResourceHandler::OnWillStart(int request_id, const GURL& url,
return ret;
}
+bool DetachableResourceHandler::OnBeforeNetworkStart(int request_id,
+ const GURL& url,
+ bool* defer) {
+ DCHECK(!is_deferred_);
+
+ if (!next_handler_)
+ return true;
+
+ bool ret =
+ next_handler_->OnBeforeNetworkStart(request_id, url, &is_deferred_);
+ *defer = is_deferred_;
+ return ret;
+}
+
bool DetachableResourceHandler::OnWillRead(int request_id,
scoped_refptr<net::IOBuffer>* buf,
int* buf_size,