Index: content/browser/loader/intercepting_resource_handler.h |
diff --git a/content/browser/loader/intercepting_resource_handler.h b/content/browser/loader/intercepting_resource_handler.h |
index f0a60824d9e03b08cb40c84103f798c4dcb1c7d2..7ae6b720af75f06923b83d1d3e1a3367eb1494a1 100644 |
--- a/content/browser/loader/intercepting_resource_handler.h |
+++ b/content/browser/loader/intercepting_resource_handler.h |
@@ -118,6 +118,9 @@ class CONTENT_EXPORT InterceptingResourceHandler |
bool SendFirstReadBufferToNewHandler(bool* defer); |
bool SendOnResponseStartedToNewHandler(bool* defer); |
+ // Wraps calls to DoLoop. Resumes or Cancels underlying request, if needed. |
+ void AdvanceState(); |
+ |
State state_ = State::STARTING; |
std::unique_ptr<ResourceHandler> new_handler_; |
@@ -136,6 +139,8 @@ class CONTENT_EXPORT InterceptingResourceHandler |
scoped_refptr<ResourceResponse> response_; |
+ base::WeakPtrFactory<InterceptingResourceHandler> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(InterceptingResourceHandler); |
}; |