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

Issue 254733002: ServiceWorker: Manipulate uncommitted/purgeable resource ids (Closed)

Created:
6 years, 8 months ago by nhiroki
Modified:
6 years, 7 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Visibility:
Public.

Description

ServiceWorker: Manipulate uncommitted/purgeable resource ids This CL provides a way to manipulate uncommitted/purgeable resource ids in ServiceWorkerDatabase. - An uncommitted resource list contains resources which have been cached but a registration associated with them hasn't been saved yet. When the registration is saved, these are removed from the list. - A purgeable resource list contains resources that no registration refers to. BUG=364099 TEST=content_unittests --gtest_filter=ServiceWorkerDatabaseTest.* R=michaeln@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267118

Patch Set 1 : #

Total comments: 8

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : move checks into the common helper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -0 lines) Patch
M content/browser/service_worker/service_worker_database.h View 1 2 chunks +37 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 2 5 chunks +111 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_database_unittest.cc View 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
nhiroki
PTAL, thanks!
6 years, 7 months ago (2014-04-29 16:45:25 UTC) #1
michaeln
couple-a nits, but looks pretty good to me https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.cc#newcode367 content/browser/service_worker/service_worker_database.cc:367: bool ...
6 years, 7 months ago (2014-04-29 23:50:03 UTC) #2
nhiroki
Updated. Can you take another look? Thanks. https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.cc#newcode367 content/browser/service_worker/service_worker_database.cc:367: bool ServiceWorkerDatabase::GetUncommittedResourceIds(std::set<int64>* ...
6 years, 7 months ago (2014-04-30 03:05:57 UTC) #3
michaeln
lgtm (modulo slightly more code sharing) https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.h File content/browser/service_worker/service_worker_database.h (right): https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.h#newcode108 content/browser/service_worker/service_worker_database.h:108: bool GetUncommittedResourceIds(std::set<int64>* ids); ...
6 years, 7 months ago (2014-04-30 03:23:56 UTC) #4
nhiroki
https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.h File content/browser/service_worker/service_worker_database.h (right): https://codereview.chromium.org/254733002/diff/60001/content/browser/service_worker/service_worker_database.h#newcode108 content/browser/service_worker/service_worker_database.h:108: bool GetUncommittedResourceIds(std::set<int64>* ids); On 2014/04/30 03:23:57, michaeln wrote: > ...
6 years, 7 months ago (2014-04-30 04:04:06 UTC) #5
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 7 months ago (2014-04-30 04:04:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/254733002/120001
6 years, 7 months ago (2014-04-30 04:05:27 UTC) #7
nhiroki
6 years, 7 months ago (2014-04-30 07:29:28 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r267118 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698