|
Refactor ThreadableLoaderOptions for readability
ThreadableLoaderOptions shouldn't derive from ResourceLoaderOptions.
ResourceLoaderOptions members are basically just passed through to
FetchRequest while items added by ThreadableLoaderOptions definition
are configuring how CORS, etc. are handled in ThreadableLoader.
Inheritance looks making things less readable to me.
Also, I'd like to make DocumentThreadbleLoader more readable by making
constant variables held by const members.
Items in ThreadableLoaderOptions that determines ThreadableLoader's
behavior could be held by DocumentThreadableLoader as a const member.
Items defined in ResourceLoaderOptions can be altered inside
DocumentThreadableLoader, but can still be held as a const member by
having members to hold overridden items.
BUG= 377541
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175283
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+113 lines, -78 lines) |
Patch |
|
M |
Source/core/fileapi/FileReaderLoader.cpp
|
View
|
1
2
3
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorResourceAgent.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/DocumentThreadableLoader.h
|
View
|
1
2
|
3 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/DocumentThreadableLoader.cpp
|
View
|
1
2
|
10 chunks |
+27 lines, -21 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/ThreadableLoader.h
|
View
|
1
2
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/ThreadableLoader.cpp
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/WorkerThreadableLoader.h
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/loader/WorkerThreadableLoader.cpp
|
View
|
|
5 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/page/EventSource.cpp
|
View
|
1
2
3
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/workers/WorkerScriptLoader.cpp
|
View
|
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/xml/XMLHttpRequest.cpp
|
View
|
1
2
3
|
3 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/platform/CrossThreadCopier.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/web/AssociatedURLLoader.cpp
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|