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

Issue 1013423002: ServiceWorker: Make claim() uses living matching registrations instead of fetching from DB. (Closed)

Created:
5 years, 9 months ago by xiang
Modified:
5 years, 9 months ago
Reviewers:
falken, michaeln
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Make claim() uses living matching registrations instead of fetching from DB. Registration can leverage ServiceWorkerProviderHost's MatchRegistration() method to check whether it is the right registration to claim that client. So the claim() processing in browser process could be implemented without hitting the DB to achieve better performance. BUG=454250 TEST=http/tests/serviceworker/claim* Committed: https://crrev.com/044a496427d1062450fa29148e16bb9994bd81de Cr-Commit-Position: refs/heads/master@{#322123}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 5

Patch Set 3 : for #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -93 lines) Patch
M content/browser/service_worker/service_worker_registration.h View 2 chunks +1 line, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 2 chunks +13 lines, -52 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 2 chunks +14 lines, -31 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
xiang
PTAL, thanks.
5 years, 9 months ago (2015-03-18 05:49:00 UTC) #2
michaeln
lgtm! https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc#newcode1414 content/browser/service_worker/service_worker_version.cc:1414: return; this return statement is not needed
5 years, 9 months ago (2015-03-20 19:25:21 UTC) #3
falken
lgtm 2 https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc#newcode1403 content/browser/service_worker/service_worker_version.cc:1403: context_->GetLiveRegistration(registration_id_)) { (unrelated to this patch) I ...
5 years, 9 months ago (2015-03-23 00:38:57 UTC) #4
michaeln
https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc#newcode1403 content/browser/service_worker/service_worker_version.cc:1403: context_->GetLiveRegistration(registration_id_)) { On 2015/03/23 00:38:57, falken wrote: > (unrelated ...
5 years, 9 months ago (2015-03-23 20:02:26 UTC) #5
xiang
Thanks for the review. https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1013423002/diff/20001/content/browser/service_worker/service_worker_version.cc#newcode1403 content/browser/service_worker/service_worker_version.cc:1403: context_->GetLiveRegistration(registration_id_)) { On 2015/03/23 20:02:26, ...
5 years, 9 months ago (2015-03-24 07:32:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1013423002/40001
5 years, 9 months ago (2015-03-24 07:33:27 UTC) #9
commit-bot: I haz the power
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/46462)
5 years, 9 months ago (2015-03-24 09:25:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1013423002/40001
5 years, 9 months ago (2015-03-25 06:22:12 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-25 06:38:09 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 06:39:07 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/044a496427d1062450fa29148e16bb9994bd81de
Cr-Commit-Position: refs/heads/master@{#322123}

Powered by Google App Engine
This is Rietveld 408576698