|
[Streams] Pass WebDataConsumerHandle when the response arrives.
We are implementing the Streams API. To make back-pressure take effect, we
should allow the resource loading customer such as XHR or the Fetch API
to read the data manually.
This CL adds a WebDataConsumerHandle to didReceiveResponse parameters.
This CL does not change the behavior as of now.
The tricky part is how to deal with a handle. As WebDataConsumerHandle
cannot be shared by multiple clients, we can't add the handle in the
response. Moreover, we assert that handle must be null when more than
one client exists in RawResource.cpp.
BUG= 418879
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184892
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+103 lines, -66 lines) |
Patch |
 |
M |
Source/core/fetch/ImageResource.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ImageResource.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ImageResourceTest.cpp
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/RawResource.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/RawResource.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/RawResourceTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/Resource.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/Resource.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceLoader.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceLoader.cpp
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/fileapi/FileReaderLoader.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fileapi/FileReaderLoader.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/imports/HTMLImportLoader.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/imports/HTMLImportLoader.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorResourceAgent.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoader.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoader.cpp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentThreadableLoader.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentThreadableLoader.cpp
|
View
|
1
2
3
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/ThreadableLoaderClient.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/ThreadableLoaderClientWrapper.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/WorkerLoaderClientBridge.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/WorkerLoaderClientBridge.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/WorkerLoaderClientBridgeSyncHelper.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/WorkerLoaderClientBridgeSyncHelper.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/WorkerThreadableLoader.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/WorkerThreadableLoader.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/EventSource.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/page/EventSource.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerScriptLoader.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/workers/WorkerScriptLoader.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/xmlhttprequest/XMLHttpRequest.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/xmlhttprequest/XMLHttpRequest.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/FetchManager.cpp
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/AssociatedURLLoader.cpp
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
public/platform/WebURLLoaderClient.h
|
View
|
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (3 generated)
|