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

Issue 1829803002: [WeakMemoryCache] Do not lookup MemoryCache when adding resource to Inspector (Closed)

Created:
4 years, 9 months ago by hiroshige
Modified:
4 years, 7 months ago
Reviewers:
Nate Chapin, dgozman
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, caseq+blink_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, sergeyv+blink_chromium.org, Nate Chapin, loading-reviews_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@MemoryCache_MakeWeak2d
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WeakMemoryCache] Do not lookup MemoryCache when adding resource to Inspector Instead of retrieving Resource via ResourceLoader and MemoryCache (via InspectorPageAgent::cachedResource()) in InspectorResourceAgent::didReceiveResourceResponse(), this CL passes a Resource pointer directly from loader to Inspector, in order to reduce dependencies from Inspector to MemoryCache. BUG=603462 Committed: https://crrev.com/682417e0c5057a4823bc9eeaea5dc2417edbf10b Cr-Commit-Position: refs/heads/master@{#393835}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : auto-Rebase #

Patch Set 7 : Rebase. #

Total comments: 9

Patch Set 8 : Do not expose DocumentLoader::mainResource() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -40 lines) Patch
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentation.idl View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInstrumentationCustomInl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 4 5 6 2 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (21 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829803002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829803002/20001
4 years, 9 months ago (2016-03-23 18:34:43 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/20755)
4 years, 9 months ago (2016-03-23 19:02:09 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829803002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829803002/60001
4 years, 8 months ago (2016-04-14 11:44:36 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/212388)
4 years, 8 months ago (2016-04-14 13:02:41 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829803002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829803002/80001
4 years, 8 months ago (2016-04-18 06:57:30 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-18 08:22:06 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829803002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829803002/120001
4 years, 7 months ago (2016-05-11 09:43:29 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 11:39:13 UTC) #21
hiroshige
PTAL. https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp (left): https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp#oldcode554 third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp:554: if (resourceLoader && !isNotModified) I'm not so sure ...
4 years, 7 months ago (2016-05-12 08:50:59 UTC) #25
Nate Chapin
https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp (left): https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp#oldcode554 third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp:554: if (resourceLoader && !isNotModified) On 2016/05/12 08:50:59, hiroshige wrote: ...
4 years, 7 months ago (2016-05-12 19:36:54 UTC) #26
dgozman
https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp File third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp (right): https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp#newcode178 third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp:178: didReceiveResourceResponse(frame, identifier, loader, r, loader->mainResource()); Let's pass Resource* explicitly ...
4 years, 7 months ago (2016-05-12 19:58:09 UTC) #27
Nate Chapin
https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp (left): https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp#oldcode555 third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp:555: cachedResource = resourceLoader->cachedResource(); By the way, this is one ...
4 years, 7 months ago (2016-05-12 21:18:19 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829803002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829803002/140001
4 years, 7 months ago (2016-05-13 05:56:15 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 07:39:40 UTC) #32
hiroshige
https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp File third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp (right): https://codereview.chromium.org/1829803002/diff/120001/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp#newcode178 third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp:178: didReceiveResourceResponse(frame, identifier, loader, r, loader->mainResource()); On 2016/05/12 19:58:09, dgozman ...
4 years, 7 months ago (2016-05-13 08:40:11 UTC) #33
Nate Chapin
lgtm
4 years, 7 months ago (2016-05-13 16:59:32 UTC) #34
dgozman
lgtm
4 years, 7 months ago (2016-05-13 17:24:47 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829803002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829803002/140001
4 years, 7 months ago (2016-05-16 13:54:16 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-16 15:28:51 UTC) #39
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 15:30:23 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/682417e0c5057a4823bc9eeaea5dc2417edbf10b
Cr-Commit-Position: refs/heads/master@{#393835}

Powered by Google App Engine
This is Rietveld 408576698