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

Issue 1945753002: Make Service Worker DB UserData methods accept multiple keys at once (Closed)

Created:
4 years, 7 months ago by johnme
Modified:
4 years, 7 months ago
CC:
blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, harkness+watch_chromium.org, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, johnme+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, mvanouwerkerk+watch_chromium.org, nhiroki, Peter Beverloo, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@iid6encrypt
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Service Worker DB UserData methods accept multiple keys at once Primary benefit: it's now possible to read/write multiple keys at once transactionally. This will be used in https://codereview.chromium.org/1944863002 to fix the way PushMessagingMessageFilter stores the sender ID and subscription ID. Secondary benefit: this occasionally reduces the number of async hops, for example in PushMessagingMessageFilter::UnsubscribeHavingGottenIds. Since Chrome now supports initializer lists, it doesn't add much code complexity when it isn't necessary (and hence it didn't seem worth duplicating all these methods). BUG=608831 Committed: https://crrev.com/fa6acac911373fd2e0f56a8a5f9652a7cc21b53e Cr-Commit-Position: refs/heads/master@{#392045}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address review comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+466 lines, -358 lines) Patch
M content/browser/background_sync/background_sync_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.h View 4 chunks +5 lines, -12 lines 0 comments Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 1 12 chunks +26 lines, -41 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_database.h View 1 2 chunks +17 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 5 chunks +29 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_database_unittest.cc View 11 chunks +191 lines, -140 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 6 chunks +25 lines, -22 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 5 chunks +50 lines, -41 lines 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 1 8 chunks +97 lines, -45 lines 0 comments Download
M content/public/browser/push_messaging_service.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (10 generated)
johnme
4 years, 7 months ago (2016-05-03 18:18:48 UTC) #4
johnme
4 years, 7 months ago (2016-05-03 18:20:56 UTC) #7
michaeln
lgtm https://codereview.chromium.org/1945753002/diff/1/content/browser/push_messaging/push_messaging_message_filter.cc File content/browser/push_messaging/push_messaging_message_filter.cc (right): https://codereview.chromium.org/1945753002/diff/1/content/browser/push_messaging/push_messaging_message_filter.cc#newcode343 content/browser/push_messaging/push_messaging_message_filter.cc:343: if (service_worker_status == SERVICE_WORKER_OK) { maybe dcheck vector.size() ...
4 years, 7 months ago (2016-05-03 19:38:06 UTC) #8
Michael van Ouwerkerk
Just some drive-by nits... sorry :-) https://codereview.chromium.org/1945753002/diff/1/content/browser/service_worker/service_worker_context_wrapper.h File content/browser/service_worker/service_worker_context_wrapper.h (right): https://codereview.chromium.org/1945753002/diff/1/content/browser/service_worker/service_worker_context_wrapper.h#newcode157 content/browser/service_worker/service_worker_context_wrapper.h:157: const std::vector<std::string>& keys, ...
4 years, 7 months ago (2016-05-04 09:08:53 UTC) #9
johnme
Addressed review comments - thanks! jochen@chromium.org: Please review minor changes in: - content/public/browser/push_messaging_service.cc - content/browser/background_sync/background_sync_manager.cc ...
4 years, 7 months ago (2016-05-05 10:54:04 UTC) #11
michaeln
still lgtm, thnx
4 years, 7 months ago (2016-05-05 19:45:00 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-06 09:49:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945753002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945753002/40001
4 years, 7 months ago (2016-05-06 12:00:14 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-06 13:20:59 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 13:22:34 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fa6acac911373fd2e0f56a8a5f9652a7cc21b53e
Cr-Commit-Position: refs/heads/master@{#392045}

Powered by Google App Engine
This is Rietveld 408576698