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

Issue 1210873004: CacheStorage: Enable Cache::putImpl to receive multiple requests/responses (Closed)

Created:
5 years, 6 months ago by nhiroki
Modified:
5 years, 5 months ago
Reviewers:
sof, jkarlin
CC:
blink-reviews, serviceworker-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CacheStorage: Enable Cache::putImpl to receive multiple requests/responses This CL enables Cache::putImpl to receive multiple requests and responses for supporting addAll() in a subsequent CL. This should not change behavior of put() and add(). BUG=427652 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197958

Patch Set 1 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -56 lines) Patch
M Source/modules/cachestorage/Cache.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/modules/cachestorage/Cache.cpp View 4 chunks +98 lines, -54 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (4 generated)
nhiroki
Hi jkarin@, can you review this? The main patch to implement addAll() is here: https://codereview.chromium.org/1124403005/ ...
5 years, 6 months ago (2015-06-26 05:55:17 UTC) #3
jkarlin
lgtm
5 years, 6 months ago (2015-06-26 20:26:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210873004/20001
5 years, 5 months ago (2015-06-29 02:26:43 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197958
5 years, 5 months ago (2015-06-29 04:31:36 UTC) #7
sof
https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp File Source/modules/cachestorage/Cache.cpp (right): https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp#newcode198 Source/modules/cachestorage/Cache.cpp:198: m_cache->webCache()->dispatchBatch(new CallbackPromiseAdapter<void, CacheStorageError>(m_resolver), m_batchOperations); Where is m_resolver resolved or ...
5 years, 5 months ago (2015-06-30 09:46:47 UTC) #9
nhiroki
https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp File Source/modules/cachestorage/Cache.cpp (right): https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp#newcode198 Source/modules/cachestorage/Cache.cpp:198: m_cache->webCache()->dispatchBatch(new CallbackPromiseAdapter<void, CacheStorageError>(m_resolver), m_batchOperations); On 2015/06/30 09:46:46, sof wrote: ...
5 years, 5 months ago (2015-07-01 02:02:20 UTC) #10
sof
On 2015/07/01 02:02:20, nhiroki wrote: > https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp > File Source/modules/cachestorage/Cache.cpp (right): > > https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp#newcode198 > ...
5 years, 5 months ago (2015-07-01 06:41:05 UTC) #11
nhiroki
On 2015/07/01 06:41:05, sof wrote: > On 2015/07/01 02:02:20, nhiroki wrote: > > > https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachestorage/Cache.cpp ...
5 years, 5 months ago (2015-07-01 07:42:14 UTC) #12
nhiroki
5 years, 5 months ago (2015-07-01 08:24:21 UTC) #13
Message was sent while issue was closed.
On 2015/07/01 07:42:14, nhiroki wrote:
> On 2015/07/01 06:41:05, sof wrote:
> > On 2015/07/01 02:02:20, nhiroki wrote:
> > >
> >
>
https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachesto...
> > > File Source/modules/cachestorage/Cache.cpp (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1210873004/diff/20001/Source/modules/cachesto...
> > > Source/modules/cachestorage/Cache.cpp:198:
> > > m_cache->webCache()->dispatchBatch(new CallbackPromiseAdapter<void,
> > > CacheStorageError>(m_resolver), m_batchOperations);
> > > On 2015/06/30 09:46:46, sof wrote:
> > > > Where is m_resolver resolved or cleared?
> > > 
> > > m_resolver is resolved in CallbackPromiseAdapter<void, T>::onSuccess()[1]
> > called
> > > from CacheStorageDispatcher::OnCacheBatchSuccess()[2].
> > > 
> > > [1]
> > >
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit...
> > > [2]
> > >
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/c...
> > 
> > Thanks for the code xrefs, that covers the correct resolution in the common
> > case.
> > 
> > However, I'm seeing ~ScriptPromiseResolver's assert failing about an
> unresolved
> > resolver, which started happening around when this CL landed --
> > 
> > 
> >
>
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=htt...
> 
> Thanks for your information. Oh... that happens when Cache::putImpl returns
> early. I'll fix it.

Uploaded: https://codereview.chromium.org/1211293003/

Powered by Google App Engine
This is Rietveld 408576698