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

Issue 759823003: Introduce StreamRegistry::NotifyReaderAbortedBeforeRegistration() (Closed)

Created:
6 years ago by horo
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, zork+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introduce StreamRegistry::RegisterReaderAbortedStream() If the reader of the stream is aborted before the stream is registered, StreamRegistry::RegisterStream() should fail to reduce the memory consumption. So this change introduces StreamRegistry::RegisterReaderAbortedStream(). We will use this method in this situation: - The request from the page is sent to the ServiceWorker. - The ServiceWorker creates a Stream and starts uploading the data to the browser process with it. - The browser process receives the stream URL in ServiceWorkerHostMsg_FetchEventFinished. But it didn't receive StreamHostMsg_StartBuilding yet. - The page stops the loading the resource. -> Call this method in the browser process. - The browser receives StreamHostMsg_StartBuilding and creates a Stream and registers it to the StreamRegistry. -> This registration should fail. BUG=436424 TEST=content_unittests --gtest_filter=StreamTest.* Committed: https://crrev.com/5f0c294795345faa7a77de46f5e6ed31a6bb2ee3 Cr-Commit-Position: refs/heads/master@{#308025}

Patch Set 1 #

Total comments: 2

Patch Set 2 : nullptr #

Patch Set 3 : RegisterReaderAbortedStream #

Patch Set 4 : AbortPendingStream #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -7 lines) Patch
M content/browser/streams/stream_registry.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/streams/stream_registry.cc View 1 2 3 2 chunks +13 lines, -3 lines 0 comments Download
M content/browser/streams/stream_unittest.cc View 1 2 3 3 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (3 generated)
horo
tyoshino@ Could you please review this?
6 years ago (2014-11-26 07:44:20 UTC) #2
tyoshino (SeeGerritForStatus)
CL description: is send -> is sent the browser receives -> the browser process receives ...
6 years ago (2014-11-26 08:06:07 UTC) #3
horo
On 2014/11/26 08:06:07, tyoshino wrote: > CL description: > > is send -> is sent ...
6 years ago (2014-11-26 08:13:18 UTC) #4
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/759823003/diff/1/content/browser/streams/stream_unittest.cc File content/browser/streams/stream_unittest.cc (right): https://codereview.chromium.org/759823003/diff/1/content/browser/streams/stream_unittest.cc#newcode379 content/browser/streams/stream_unittest.cc:379: ASSERT_EQ(nullptr, registry_->GetStream(url).get()); please also update NULLs in this ...
6 years ago (2014-11-26 09:29:12 UTC) #5
horo
https://codereview.chromium.org/759823003/diff/1/content/browser/streams/stream_unittest.cc File content/browser/streams/stream_unittest.cc (right): https://codereview.chromium.org/759823003/diff/1/content/browser/streams/stream_unittest.cc#newcode379 content/browser/streams/stream_unittest.cc:379: ASSERT_EQ(nullptr, registry_->GetStream(url).get()); On 2014/11/26 09:29:12, tyoshino wrote: > please ...
6 years ago (2014-11-26 09:54:10 UTC) #6
horo
zork@ Could you please review this?
6 years ago (2014-11-26 09:54:41 UTC) #8
horo
zork@ Ping?
6 years ago (2014-12-02 10:50:40 UTC) #9
Zachary Kuznia
On 2014/12/02 10:50:40, horo(ooo -Dec.3) wrote: > zork@ > Ping? This function name is strange, ...
6 years ago (2014-12-02 14:50:45 UTC) #10
horo
On 2014/12/02 14:50:45, Zachary Kuznia wrote: > On 2014/12/02 10:50:40, horo(ooo -Dec.3) wrote: > > ...
6 years ago (2014-12-05 07:12:37 UTC) #11
Zachary Kuznia
On 2014/12/05 07:12:37, horo wrote: > On 2014/12/02 14:50:45, Zachary Kuznia wrote: > > On ...
6 years ago (2014-12-05 15:18:34 UTC) #12
horo
On 2014/12/05 15:18:34, Zachary Kuznia wrote: > On 2014/12/05 07:12:37, horo wrote: > > On ...
6 years ago (2014-12-05 20:32:40 UTC) #13
Zachary Kuznia
On 2014/12/05 20:32:40, horo(ooo Dec.8) wrote: > On 2014/12/05 15:18:34, Zachary Kuznia wrote: > > ...
6 years ago (2014-12-05 21:09:02 UTC) #14
horo
On 2014/12/05 21:09:02, Zachary Kuznia wrote: > On 2014/12/05 20:32:40, horo(ooo Dec.8) wrote: > > ...
6 years ago (2014-12-09 03:19:59 UTC) #15
Zachary Kuznia
On 2014/12/09 03:19:59, horo wrote: > On 2014/12/05 21:09:02, Zachary Kuznia wrote: > > On ...
6 years ago (2014-12-10 23:17:36 UTC) #16
horo
On 2014/12/10 23:17:36, Zachary Kuznia wrote: > On 2014/12/09 03:19:59, horo wrote: > > On ...
6 years ago (2014-12-11 01:01:19 UTC) #17
Zachary Kuznia
lgtm
6 years ago (2014-12-11 18:32:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759823003/60001
6 years ago (2014-12-12 00:01:06 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years ago (2014-12-12 02:02:23 UTC) #21
commit-bot: I haz the power
6 years ago (2014-12-12 02:03:31 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5f0c294795345faa7a77de46f5e6ed31a6bb2ee3
Cr-Commit-Position: refs/heads/master@{#308025}

Powered by Google App Engine
This is Rietveld 408576698