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

Issue 1763123002: [BackgroundSync] Remove BackgroundSyncRegistrationHandle (Closed)

Created:
4 years, 9 months ago by jkarlin
Modified:
4 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, maxbogue+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, Peter Beverloo, plaree+watch_chromium.org, qsr+mojo_chromium.org, serviceworker-reviews, tim+watch_chromium.org, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[BackgroundSync] Remove BackgroundSyncRegistrationHandle Since "registration.done" is no longer part of the spec, the BackgroundSyncManager no longer needs to refcount its registrations. This CL removes the internal reference counting and the handles that were provided to clients. BUG=583328 Committed: https://crrev.com/6b0615b5f2dd5744a9e606ec88a9062bca934d56 Cr-Commit-Position: refs/heads/master@{#381303}

Patch Set 1 #

Patch Set 2 : Remove ref counting #

Patch Set 3 : Rebase #

Patch Set 4 : Handle registration deleted mid-fire #

Patch Set 5 : Don't forget to run the callback #

Patch Set 6 : Remove default rvalue functions due to msvc #

Total comments: 12

Patch Set 7 : Address comments from PS6 #

Total comments: 12

Patch Set 8 : Rebase #

Patch Set 9 : Address comments from PS7 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -551 lines) Patch
M content/browser/background_sync/background_sync_browsertest.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.h View 1 14 chunks +22 lines, -58 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 1 2 3 4 5 6 7 8 31 chunks +69 lines, -148 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 14 chunks +25 lines, -54 lines 0 comments Download
M content/browser/background_sync/background_sync_registration.h View 1 2 3 4 5 6 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/background_sync/background_sync_registration.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
D content/browser/background_sync/background_sync_registration_handle.h View 1 chunk +0 lines, -82 lines 0 comments Download
D content/browser/background_sync/background_sync_registration_handle.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl.h View 2 chunks +2 lines, -12 lines 0 comments Download
M content/browser/background_sync/background_sync_service_impl.cc View 1 2 3 4 5 6 5 chunks +6 lines, -51 lines 0 comments Download
M content/child/background_sync/background_sync_provider.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/child/background_sync/background_sync_provider.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/background_sync_service.mojom View 1 chunk +1 line, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/common/background_sync.mojom View 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/background_sync_test_util.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/background_sync/background_sync_client_impl.h View 1 2 3 4 1 chunk +1 line, -9 lines 0 comments Download
M content/renderer/background_sync/background_sync_client_impl.cc View 1 2 3 4 2 chunks +3 lines, -46 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (7 generated)
jkarlin
iclelland@: PTAL, thanks!
4 years, 9 months ago (2016-03-07 19:03:14 UTC) #3
iclelland
On 2016/03/07 19:03:14, jkarlin wrote: > iclelland@: PTAL, thanks! I'll take a close look at ...
4 years, 9 months ago (2016-03-07 20:43:25 UTC) #4
iclelland
https://codereview.chromium.org/1763123002/diff/100001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1763123002/diff/100001/content/browser/background_sync/background_sync_manager.cc#newcode771 content/browser/background_sync/background_sync_manager.cc:771: new BackgroundSyncRegistration(registration); These are allocated here, but never released ...
4 years, 9 months ago (2016-03-08 16:48:14 UTC) #5
jkarlin
Thanks! PTAL. https://codereview.chromium.org/1763123002/diff/100001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1763123002/diff/100001/content/browser/background_sync/background_sync_manager.cc#newcode771 content/browser/background_sync/background_sync_manager.cc:771: new BackgroundSyncRegistration(registration); On 2016/03/08 16:48:14, iclelland wrote: ...
4 years, 9 months ago (2016-03-08 19:37:36 UTC) #6
jkarlin
iclelland@ PTAL, thanks!
4 years, 9 months ago (2016-03-11 12:32:54 UTC) #7
iclelland
Sorry for the lag -- this lgtm, with just a couple of nits https://codereview.chromium.org/1763123002/diff/120001/content/browser/background_sync/background_sync_manager.cc File ...
4 years, 9 months ago (2016-03-11 14:50:12 UTC) #8
jkarlin
Thanks iclelland! tsepez@chromium.org: Please review changes in *.mojom michaeln@chromium.org: Please review changes in ServiceWorker files ...
4 years, 9 months ago (2016-03-15 12:50:16 UTC) #10
Tom Sepez
mojom LGTM
4 years, 9 months ago (2016-03-15 15:33:55 UTC) #11
michaeln
ServiceWorker lgtm 2 (wait-a-minute, your making something simpler rather than more whiz bang complicated :)
4 years, 9 months ago (2016-03-15 20:12:03 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-15 20:25:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763123002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763123002/160001
4 years, 9 months ago (2016-03-15 20:36:33 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-15 20:42:01 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 20:43:56 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6b0615b5f2dd5744a9e606ec88a9062bca934d56
Cr-Commit-Position: refs/heads/master@{#381303}

Powered by Google App Engine
This is Rietveld 408576698