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

Issue 1757023003: Document confusing threading requirements in ServiceWorkerContext(Wrapper). (Closed)

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

Description

Document confusing threading requirements in ServiceWorkerContext(Wrapper). This adds comments to all public methods in ServiceWorkerContext and ServiceWorkerContextWrapper explaining on which thread the method can be called, and on which thread its callback will be called. Also fixes some inconsistencies where for some methods a callback could be sometimes called on different threads. BUG=591427 Committed: https://crrev.com/e51e01d8b2c430f2f327692e2b98006b8dc0763d Cr-Commit-Position: refs/heads/master@{#379145}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M content/browser/service_worker/service_worker_context_wrapper.h View 5 chunks +12 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M content/public/browser/service_worker_context.h View 4 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Marijn Kruisselbrink
4 years, 9 months ago (2016-03-02 20:31:17 UTC) #2
falken
lgtm to add documentation, I also commented on the bug we probably should just make ...
4 years, 9 months ago (2016-03-03 06:44:13 UTC) #3
Marijn Kruisselbrink
+avi for content/public OWNERS
4 years, 9 months ago (2016-03-03 21:32:15 UTC) #5
Avi (use Gerrit)
1) Love the comments. 2) Are all those comments enforced in code with DCHECK_CURRENTLY_ON?
4 years, 9 months ago (2016-03-03 21:39:20 UTC) #6
Marijn Kruisselbrink
On 2016/03/03 at 21:39:20, avi wrote: > 1) Love the comments. > 2) Are all ...
4 years, 9 months ago (2016-03-03 21:42:22 UTC) #7
Avi (use Gerrit)
On 2016/03/03 21:42:22, Marijn Kruisselbrink wrote: > On 2016/03/03 at 21:39:20, avi wrote: > > ...
4 years, 9 months ago (2016-03-03 21:43:19 UTC) #8
Avi (use Gerrit)
On 2016/03/03 21:43:19, Avi wrote: > On 2016/03/03 21:42:22, Marijn Kruisselbrink wrote: > > On ...
4 years, 9 months ago (2016-03-03 21:43:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757023003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757023003/1
4 years, 9 months ago (2016-03-03 21:48:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757023003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757023003/1
4 years, 9 months ago (2016-03-03 21:49:50 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-04 00:05:57 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-04 00:07:23 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e51e01d8b2c430f2f327692e2b98006b8dc0763d
Cr-Commit-Position: refs/heads/master@{#379145}

Powered by Google App Engine
This is Rietveld 408576698