|
Get content of resources from Blob when the downloadToFile option is enabled
When the downloadToFile options is enabled, a resource has a file-path
instead of a buffer. So the Inspector cannot get content directly from
the resource.
So we introduce Blob content data to NetworkResourcesData::ResourceData.
It holds the Blob and the textEncodingName. The Inspector get content
from it by using FileReaderLoader.
Currently, there's no resources with the downloadToFile option except
for Pepper API. So these codes are not used yet. However we're working on
optimizing XHR with responseType="blob"[1] and it will leverage this option.
So not to break the inspector, first we need to land this patch.
[1]: http://crbug.com/269055
BUG= 269055
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+327 lines, -35 lines) |
Patch |
 |
M |
LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
|
View
|
1
|
3 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob-expected.txt
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/RawResource.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/Resource.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/Resource.cpp
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorPageAgent.h
|
View
|
|
4 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorPageAgent.cpp
|
View
|
1
|
9 chunks |
+121 lines, -10 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorResourceAgent.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorResourceAgent.cpp
|
View
|
1
|
7 chunks |
+114 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorStyleSheet.cpp
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/NetworkResourcesData.h
|
View
|
|
4 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/NetworkResourcesData.cpp
|
View
|
|
7 chunks |
+44 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/devtools/protocol.json
|
View
|
|
2 chunks |
+2 lines, -0 lines |
2 comments
|
Download
|
Total messages: 8 (0 generated)
|