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

Unified Diff: content/child/url_response_body_consumer.h

Issue 2591383003: Implement SetDefersLoading on content::URLLoaderClientImpl (Closed)
Patch Set: fix Created 4 years 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/child/url_loader_client_impl_unittest.cc ('k') | content/child/url_response_body_consumer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/url_response_body_consumer.h
diff --git a/content/child/url_response_body_consumer.h b/content/child/url_response_body_consumer.h
index 09a988bdd556bf4db73217dafb9b0e02dc2979aa..1947cb66b1eb7d9efc552fe5527273d86968f3bb 100644
--- a/content/child/url_response_body_consumer.h
+++ b/content/child/url_response_body_consumer.h
@@ -51,6 +51,9 @@ class CONTENT_EXPORT URLResponseBodyConsumer final
// cancelled or done.
void Cancel();
+ void SetDefersLoading();
+ void UnsetDefersLoading();
+
private:
friend class base::RefCounted<URLResponseBodyConsumer>;
~URLResponseBodyConsumer();
@@ -71,6 +74,7 @@ class CONTENT_EXPORT URLResponseBodyConsumer final
bool has_received_completion_ = false;
bool has_been_cancelled_ = false;
bool has_seen_end_of_data_;
+ bool is_deferred_ = false;
bool is_in_on_readable_ = false;
DISALLOW_COPY_AND_ASSIGN(URLResponseBodyConsumer);
« no previous file with comments | « content/child/url_loader_client_impl_unittest.cc ('k') | content/child/url_response_body_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698