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

Unified Diff: content/child/url_response_body_consumer.h

Issue 2573743002: Handle MOJO_RESULT_BUSY result in URLResponseBodyConsumer (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/resource_dispatcher.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 13e122d20c2124764695ced649ab53221c4b5b44..09a988bdd556bf4db73217dafb9b0e02dc2979aa 100644
--- a/content/child/url_response_body_consumer.h
+++ b/content/child/url_response_body_consumer.h
@@ -38,7 +38,7 @@ class CONTENT_EXPORT URLResponseBodyConsumer final
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
// Starts watching the handle.
- void Start(base::SingleThreadTaskRunner* task_runner);
+ void Start();
// Sets the completion status. The completion status is dispatched to the
// ResourceDispatcher when the both following conditions hold:
@@ -66,10 +66,12 @@ class CONTENT_EXPORT URLResponseBodyConsumer final
mojo::ScopedDataPipeConsumerHandle handle_;
mojo::Watcher handle_watcher_;
ResourceRequestCompletionStatus completion_status_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
bool has_received_completion_ = false;
bool has_been_cancelled_ = false;
bool has_seen_end_of_data_;
+ bool is_in_on_readable_ = false;
DISALLOW_COPY_AND_ASSIGN(URLResponseBodyConsumer);
};
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/url_response_body_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698