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

Issue 1749633002: Remove StopDetector (Closed)

Created:
4 years, 9 months ago by haraken
Modified:
4 years, 9 months ago
Reviewers:
sof, yhirano
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove StopDetector By making FetchManager a ContextLifecycleObserver, we no longer need the StopDetector. This CL also makes the following changes: - FetchManager::Loader doesn't need to be a ContextLifecycleObserver. FetchManager::Loader should just hold RawPtrWillBeMember<ExecutionContext>. - FetchManager::Loader should have a pre-finalizer so that it calls m_loader->cancel() before starting lazy sweeping. - Mark SRIVerifier as eagerly-finalized to promptly clear m_handle and m_reader. BUG=589507 Committed: https://crrev.com/f885b41b4d4d00374cc29e62962634681b18c218 Cr-Commit-Position: refs/heads/master@{#378969}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : #

Total comments: 5

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -70 lines) Patch
M third_party/WebKit/Source/modules/fetch/FetchManager.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 2 3 4 5 6 7 8 9 19 chunks +37 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -31 lines 0 comments Download

Messages

Total messages: 40 (12 generated)
haraken
PTAL
4 years, 9 months ago (2016-02-29 07:33:54 UTC) #2
haraken
(cc Sigbjorn for sanity checking)
4 years, 9 months ago (2016-02-29 11:20:29 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749633002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749633002/60001
4 years, 9 months ago (2016-02-29 11:20:54 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-29 12:31:05 UTC) #8
sof
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode687 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:687: if (executionContext()) In the !OILPAN case, FetchManager will now ...
4 years, 9 months ago (2016-02-29 13:14:12 UTC) #9
yhirano
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode694 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:694: if (!executionContext()) ASSERT(executionContext()) looks better. https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.h File third_party/WebKit/Source/modules/fetch/FetchManager.h (right): ...
4 years, 9 months ago (2016-02-29 18:56:51 UTC) #10
haraken
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode687 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:687: if (executionContext()) On 2016/02/29 13:14:12, sof wrote: > In ...
4 years, 9 months ago (2016-03-01 00:18:04 UTC) #11
yhirano
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode694 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:694: if (!executionContext()) On 2016/03/01 00:18:04, haraken wrote: > On ...
4 years, 9 months ago (2016-03-01 00:26:59 UTC) #12
sof
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode687 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:687: if (executionContext()) On 2016/03/01 00:18:04, haraken wrote: > On ...
4 years, 9 months ago (2016-03-01 06:13:01 UTC) #13
haraken
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode687 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:687: if (executionContext()) On 2016/03/01 06:13:01, sof wrote: > On ...
4 years, 9 months ago (2016-03-01 08:27:10 UTC) #14
sof
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode687 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:687: if (executionContext()) On 2016/03/01 08:27:10, haraken wrote: > On ...
4 years, 9 months ago (2016-03-01 10:22:50 UTC) #15
yhirano
https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp File third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp#newcode7 third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp:7: #include "core/dom/ContextLifecycleObserver.h" I this line needed?
4 years, 9 months ago (2016-03-01 17:45:50 UTC) #16
haraken
PTAL https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode687 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:687: if (executionContext()) On 2016/03/01 10:22:50, sof wrote: > ...
4 years, 9 months ago (2016-03-02 08:54:14 UTC) #18
sof
On 2016/03/02 08:54:14, haraken wrote: > PTAL > > https://codereview.chromium.org/1749633002/diff/60001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp > File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): > ...
4 years, 9 months ago (2016-03-02 08:58:06 UTC) #19
sof
https://codereview.chromium.org/1749633002/diff/120001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp File third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp (right): https://codereview.chromium.org/1749633002/diff/120001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp#newcode40 third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp:40: if (!m_fetchManager->executionContext()) { This isn't equal to what was; ...
4 years, 9 months ago (2016-03-02 12:52:10 UTC) #21
haraken
On 2016/03/02 12:52:10, sof wrote: > https://codereview.chromium.org/1749633002/diff/120001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp > File third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp (right): > > https://codereview.chromium.org/1749633002/diff/120001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp#newcode40 > ...
4 years, 9 months ago (2016-03-02 15:29:22 UTC) #22
sof
https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode59 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:59: EAGERLY_FINALIZE(); Add this to SRIVerifier below also? https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp File ...
4 years, 9 months ago (2016-03-02 15:37:15 UTC) #23
sof
On 2016/03/02 15:29:22, haraken wrote: > On 2016/03/02 12:52:10, sof wrote: > > > https://codereview.chromium.org/1749633002/diff/120001/third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp ...
4 years, 9 months ago (2016-03-02 15:37:54 UTC) #24
sof
https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode57 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:57: USING_PRE_FINALIZER(FetchManager::Loader, dispose); Missed this, but eagerly finalized and prefinalized?
4 years, 9 months ago (2016-03-02 15:40:44 UTC) #25
haraken
https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp File third_party/WebKit/Source/modules/fetch/FetchManager.cpp (right): https://codereview.chromium.org/1749633002/diff/140001/third_party/WebKit/Source/modules/fetch/FetchManager.cpp#newcode59 third_party/WebKit/Source/modules/fetch/FetchManager.cpp:59: EAGERLY_FINALIZE(); On 2016/03/02 15:37:15, sof wrote: > Add this ...
4 years, 9 months ago (2016-03-02 16:00:57 UTC) #26
sof
lgtm
4 years, 9 months ago (2016-03-02 16:16:04 UTC) #27
haraken
yhirano@: PTAL
4 years, 9 months ago (2016-03-02 16:17:21 UTC) #28
yhirano
lgtm
4 years, 9 months ago (2016-03-02 17:36:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749633002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749633002/160001
4 years, 9 months ago (2016-03-03 00:03:54 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/101895)
4 years, 9 months ago (2016-03-03 00:19:25 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1749633002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1749633002/180001
4 years, 9 months ago (2016-03-03 04:47:14 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-03 06:00:48 UTC) #38
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 06:02:27 UTC) #40
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f885b41b4d4d00374cc29e62962634681b18c218
Cr-Commit-Position: refs/heads/master@{#378969}

Powered by Google App Engine
This is Rietveld 408576698