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

Issue 14672042: Prepare to add more initiator info to CachedResource(Request) (Closed)

Created:
7 years, 7 months ago by eustas
Modified:
7 years, 7 months ago
CC:
blink-reviews, jamesr, gavinp+prerender_chromium.org, eae+blinkwatch, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, pdr, f(malita), Stephen Chennney, Nate Chapin, vcarbune.chromium, jochen+watch_chromium.org, gavinp+loader_chromium.org
Visibility:
Public.

Description

1) Add CachedResourceInitiatorInfo to CachedResourceRequest 2) Explicitly supply all CachedResourceRequest with initiator 3) Remove initiatorElement from CachedResourceRequest BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150651

Patch Set 1 #

Total comments: 2

Patch Set 2 : Restore performance reporting logic. #

Total comments: 2

Patch Set 3 : Rebased. Rollback m_initiatorMap changes. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -125 lines) Patch
M LayoutTests/fast/loader/resource-request-callbacks.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/loader/resource-request-callbacks-expected.txt View 1 chunk +9 lines, -9 lines 0 comments Download
M Source/WebKit/chromium/public/WebCachedURLRequest.h View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M Source/WebKit/chromium/src/WebCachedURLRequest.cpp View 2 chunks +1 line, -7 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSFontFaceSrcValue.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/CSSImageSetValue.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/CSSImageValue.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/css/StyleRuleImport.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/WebKitCSSSVGDocumentValue.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/WebKitCSSShaderValue.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/ProcessingInstruction.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/ScriptElement.cpp View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/parser/HTMLResourcePreloader.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/loader/ImageLoader.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/loader/LinkLoader.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/loader/TextTrackLoader.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
A + Source/core/loader/cache/CachedResourceInitiatorInfo.h View 1 2 2 chunks +17 lines, -9 lines 0 comments Download
M Source/core/loader/cache/CachedResourceLoader.h View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M Source/core/loader/cache/CachedResourceLoader.cpp View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/loader/cache/CachedResourceRequest.h View 1 2 4 chunks +6 lines, -9 lines 0 comments Download
M Source/core/loader/cache/CachedResourceRequest.cpp View 2 chunks +6 lines, -31 lines 0 comments Download
M Source/core/loader/cache/CachedResourceRequestInitiators.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/loader/cache/CachedResourceRequestInitiators.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/svg/SVGFEImageElement.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/svg/SVGFontFaceUriElement.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/xml/XSLImportRule.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp View 1 chunk +1 line, -9 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
eustas
7 years, 7 months ago (2013-05-15 16:39:17 UTC) #1
abarth-chromium
LGTM! Thanks for the CL. The initiatorElement API isn't used in Chromium?
7 years, 7 months ago (2013-05-15 22:05:24 UTC) #2
Nate Chapin
https://codereview.chromium.org/14672042/diff/1/Source/core/loader/cache/CachedResource.h File Source/core/loader/cache/CachedResource.h (right): https://codereview.chromium.org/14672042/diff/1/Source/core/loader/cache/CachedResource.h#newcode255 Source/core/loader/cache/CachedResource.h:255: void setInitiatorInfo(const CachedResourceInitiatorInfo& initiatorInfo) { m_initiatorInfo = initiatorInfo; } ...
7 years, 7 months ago (2013-05-15 22:14:57 UTC) #3
abarth-chromium
https://codereview.chromium.org/14672042/diff/1/Source/core/loader/cache/CachedResource.h File Source/core/loader/cache/CachedResource.h (right): https://codereview.chromium.org/14672042/diff/1/Source/core/loader/cache/CachedResource.h#newcode255 Source/core/loader/cache/CachedResource.h:255: void setInitiatorInfo(const CachedResourceInitiatorInfo& initiatorInfo) { m_initiatorInfo = initiatorInfo; } ...
7 years, 7 months ago (2013-05-15 22:21:25 UTC) #4
James Simonsen
https://codereview.chromium.org/14672042/diff/8001/Source/core/loader/cache/CachedResourceLoader.cpp File Source/core/loader/cache/CachedResourceLoader.cpp (right): https://codereview.chromium.org/14672042/diff/8001/Source/core/loader/cache/CachedResourceLoader.cpp#newcode582 Source/core/loader/cache/CachedResourceLoader.cpp:582: resource->setInitiatorInfo(info); The initiator info is different depending on which ...
7 years, 7 months ago (2013-05-16 13:28:44 UTC) #5
eustas
https://codereview.chromium.org/14672042/diff/8001/Source/core/loader/cache/CachedResourceLoader.cpp File Source/core/loader/cache/CachedResourceLoader.cpp (right): https://codereview.chromium.org/14672042/diff/8001/Source/core/loader/cache/CachedResourceLoader.cpp#newcode582 Source/core/loader/cache/CachedResourceLoader.cpp:582: resource->setInitiatorInfo(info); On 2013/05/16 13:28:54, James Simonsen wrote: > The ...
7 years, 7 months ago (2013-05-16 14:26:53 UTC) #6
James Simonsen
We need to handle the case where two documents request the same resource at around ...
7 years, 7 months ago (2013-05-16 14:34:56 UTC) #7
eustas
On 2013/05/16 14:34:56, James Simonsen wrote: > We need to handle the case where two ...
7 years, 7 months ago (2013-05-16 16:08:11 UTC) #8
James Simonsen
That's fine, but you need to keep track of the separate initiator information for each ...
7 years, 7 months ago (2013-05-16 16:18:14 UTC) #9
abarth-chromium
On 2013/05/16 16:18:14, James Simonsen wrote: > That's fine, but you need to keep track ...
7 years, 7 months ago (2013-05-16 16:52:47 UTC) #10
abarth-chromium
Ok, sounds like we should keep the storage in CachedResourceLoader then, but I like the ...
7 years, 7 months ago (2013-05-16 17:01:41 UTC) #11
James Simonsen
Yes, exactly. On Thu, May 16, 2013 at 9:52 AM, <abarth@chromium.org> wrote: > On 2013/05/16 ...
7 years, 7 months ago (2013-05-16 17:06:01 UTC) #12
eustas
As I see there are 3 scenarios: 1) resource request initiates load 2) resource has ...
7 years, 7 months ago (2013-05-17 08:26:46 UTC) #13
James Simonsen
It might be worth reading the latest draft of the Resource Timing spec. AIUI, the ...
7 years, 7 months ago (2013-05-17 13:59:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eustas@chromium.org/14672042/27001
7 years, 7 months ago (2013-05-20 06:03:53 UTC) #15
commit-bot: I haz the power
7 years, 7 months ago (2013-05-20 06:48:55 UTC) #16
Message was sent while issue was closed.
Change committed as 150651

Powered by Google App Engine
This is Rietveld 408576698