|
|
Remove resource type-specific fetching logic from ResourceFetcher
Instead of having a whole bunch of ResourceFetcher::fetchFoo() functions, start a fetch by calling FooResource::fetch(). This allows ResourceFetcher to just have generic loading logic, and puts all of the specific logic for a given type in one place.
This requires adding a ResourceFactory class hierarchy, which allows ResourceFetcher to create the proper Resource subclass simply by calling ResourceFactory::create.
BUG= 458222
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197145
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+495 lines, -353 lines) |
Patch |
 |
M |
Source/bindings/core/v8/ScriptStreamerTest.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/V8ScriptRunnerTest.cpp
|
View
|
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSFontFaceSrcValue.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSImageSetValue.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSImageValue.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSSVGDocumentValue.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/StyleRuleImport.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/ProcessingInstruction.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/ScriptLoader.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/CSSStyleSheetResource.h
|
View
|
1
|
2 chunks |
+16 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/CSSStyleSheetResource.cpp
|
View
|
1
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/CachingCorrectnessTest.cpp
|
View
|
1
2
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/DocumentResource.h
|
View
|
|
2 chunks |
+15 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/DocumentResource.cpp
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/FetchContext.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/FontResource.h
|
View
|
|
4 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/FontResource.cpp
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ImageResource.h
|
View
|
|
3 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ImageResource.cpp
|
View
|
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ImageResourceTest.cpp
|
View
|
1
2
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A |
Source/core/fetch/LinkFetchResource.h
|
View
|
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/core/fetch/LinkFetchResource.cpp
|
View
|
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/RawResource.h
|
View
|
|
2 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/RawResource.cpp
|
View
|
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/Resource.h
|
View
|
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcher.h
|
View
|
|
4 chunks |
+8 lines, -23 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcher.cpp
|
View
|
1
|
18 chunks |
+27 lines, -266 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ResourceFetcherTest.cpp
|
View
|
|
2 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ScriptResource.h
|
View
|
|
3 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/ScriptResource.cpp
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/fetch/XSLStyleSheetResource.h
|
View
|
|
1 chunk |
+16 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/fetch/XSLStyleSheetResource.cpp
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLLinkElement.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/imports/HTMLImportsController.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/parser/HTMLResourcePreloader.cpp
|
View
|
1
2
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorResourceContentLoader.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoader.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentLoader.cpp
|
View
|
1
2
|
3 chunks |
+20 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/DocumentThreadableLoader.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/FrameFetchContext.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/FrameFetchContext.cpp
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/ImageLoader.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/LinkLoader.cpp
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/loader/TextTrackLoader.cpp
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGFEImageElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/svg/SVGUseElement.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/xml/XSLImportRule.cpp
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/xml/XSLTProcessorLibxslt.cpp
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/xml/parser/XMLDocumentParser.cpp
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 24 (11 generated)
|