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

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..4aa18599751eff7ca1ebbcb0990af8dd6cf1d21c 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.
//
@@ -100,7 +102,7 @@ public:
// if |client| is not null.
// If |client| is not null and the handle is not waiting, client
// notification is called asynchronously.
- virtual std::unique_ptr<Reader> obtainReader(Client*) = 0;
+ virtual std::unique_ptr<Reader> obtainReader(Client*, std::unique_ptr<WebTaskRunner>) = 0;
// Returns a string literal (e.g. class name) for debugging only.
virtual const char* debugName() const = 0;

Powered by Google App Engine
This is Rietveld 408576698