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

Unified Diff: content/browser/loader/intercepting_resource_handler.h

Issue 2623383004: Update InterceptingResourceHandler tests to use MockResourceLoader. (Closed)
Patch Set: Response to comments Created 3 years, 11 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 | « no previous file | content/browser/loader/intercepting_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | content/browser/loader/intercepting_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698