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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h

Issue 2177243002: Use per-frame TaskRunner instead of thread's default in DataConsumerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data_consumer_handle_unique_ptr
Patch Set: update Created 4 years, 5 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
Index: third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
index 51602cbbddcaebda2d2577bfac1447834722f368..6b5b51e06b327a395f35d9a345c0b15ccbcc02a9 100644
--- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
+++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
@@ -14,6 +14,8 @@
namespace blink {
+class WebTaskRunner;
+
// Returns a handle that returns ShouldWait for read / beginRead and
// UnexpectedError for endRead.
MODULES_EXPORT std::unique_ptr<WebDataConsumerHandle> createWaitingDataConsumerHandle();
@@ -36,7 +38,7 @@ MODULES_EXPORT std::unique_ptr<FetchDataConsumerHandle> createFetchDataConsumerH
class NotifyOnReaderCreationHelper final {
DISALLOW_NEW();
public:
- NotifyOnReaderCreationHelper(WebDataConsumerHandle::Client* /* client */);
+ NotifyOnReaderCreationHelper(WebDataConsumerHandle::Client*, WebTaskRunner*);
private:
void notify(WebDataConsumerHandle::Client*);

Powered by Google App Engine
This is Rietveld 408576698