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

Unified Diff: third_party/WebKit/public/platform/WebDataConsumerHandle.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/public/platform/WebDataConsumerHandle.h
diff --git a/third_party/WebKit/public/platform/WebDataConsumerHandle.h b/third_party/WebKit/public/platform/WebDataConsumerHandle.h
index d1ef789ad75edf63d473ca1b95e49cc04a9277b8..19eb6d127bbd4a7dad6c51e01c95635fe76edac2 100644
--- a/third_party/WebKit/public/platform/WebDataConsumerHandle.h
+++ b/third_party/WebKit/public/platform/WebDataConsumerHandle.h
@@ -12,6 +12,8 @@
namespace blink {
+class WebTaskRunner;
+
// WebDataConsumerHandle represents the "consumer" side of a data pipe. A user
// can read data from it.
//
@@ -52,6 +54,8 @@ public:
// function is called, i.e. it can be called more than needed.
// One can use / destruct the associated reader in this function.
virtual void didGetReadable() = 0;
+
+ virtual WebTaskRunner* getTaskRunner() = 0;
yhirano 2016/07/28 16:25:05 Please write comments. What is this? Is it allowed
};
// This class provides a means to read data from the associated handle. A

Powered by Google App Engine
This is Rietveld 408576698