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

Issue 8785013: Track webcore worker message loops in chromium. (Closed)

Created:
9 years ago by dgrogan
Modified:
9 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 12

Patch Set 2 : address comments #

Patch Set 3 : rebase onto ToT #

Patch Set 4 : address comments after rebase #

Total comments: 1

Patch Set 5 : address 2/3 remaining issues #

Patch Set 6 : reupload patchset 4 #

Patch Set 7 : address 2/3 remaining issues #

Patch Set 8 : lazy-init and leak worker task runner #

Total comments: 8

Patch Set 9 : rebase onto ToT #

Patch Set 10 : add static accessor to WorkerTaskRunner, use custom ObserverList #

Total comments: 15

Patch Set 11 : address comments; move to webkit/glue #

Patch Set 12 : remove debug code #

Total comments: 1

Patch Set 13 : only notify on stop #

Patch Set 14 : remove extra include #

Total comments: 22

Patch Set 15 : reorder a couple blocks of code #

Patch Set 16 : address comments #

Total comments: 8

Patch Set 17 : address style comments #

Patch Set 18 : rebase onto ToT #

Patch Set 19 : add WEBKIT_GLUE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -0 lines) Patch
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -0 lines 0 comments Download
A webkit/glue/worker_task_runner.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +59 lines, -0 lines 0 comments Download
A webkit/glue/worker_task_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +103 lines, -0 lines 0 comments Download
A webkit/glue/worker_task_runner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +56 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
dgrogan
Michael, Darin, Could you review this? I split this off from the IDB-on-workers mega patch: ...
9 years ago (2011-12-03 04:05:08 UTC) #1
michaeln
http://codereview.chromium.org/8785013/diff/1/content/common/child_thread.h File content/common/child_thread.h (right): http://codereview.chromium.org/8785013/diff/1/content/common/child_thread.h#newcode146 content/common/child_thread.h:146: scoped_refptr<WorkerTaskRunner> worker_task_runner_; Would a leaky lazy instance be a ...
9 years ago (2011-12-05 22:02:09 UTC) #2
dgrogan
The diff between patchset 3 and 4 shows what I changed. patchset 2 had both ...
9 years ago (2011-12-06 00:15:15 UTC) #3
michaeln
> Not having to worry about the lifetime would be nice. Less code, etc. > ...
9 years ago (2011-12-06 02:27:39 UTC) #4
michaeln
http://codereview.chromium.org/8785013/diff/12001/content/common/worker_task_runner.h File content/common/worker_task_runner.h (right): http://codereview.chromium.org/8785013/diff/12001/content/common/worker_task_runner.h#newcode23 content/common/worker_task_runner.h:23: // This could be changed to take a chromium ...
9 years ago (2011-12-06 02:28:22 UTC) #5
dgrogan
Lazy-initing worker task runner seems to make the utility v8 process not start correctly... or ...
9 years ago (2011-12-06 22:55:28 UTC) #6
dgrogan
Michael, ptal? http://codereview.chromium.org/8785013/diff/26001/content/common/child_thread.h File content/common/child_thread.h (right): http://codereview.chromium.org/8785013/diff/26001/content/common/child_thread.h#newcode147 content/common/child_thread.h:147: static base::LazyInstance<WorkerTaskRunner, I don't think this needs ...
9 years ago (2011-12-07 22:47:39 UTC) #7
michaeln
I just have a couple of nits. I'm not sure if ObserverList will work in ...
9 years ago (2011-12-07 23:57:38 UTC) #8
dgrogan
I'm going to play around with a unit test. http://codereview.chromium.org/8785013/diff/26001/content/common/worker_task_runner.h File content/common/worker_task_runner.h (right): http://codereview.chromium.org/8785013/diff/26001/content/common/worker_task_runner.h#newcode16 content/common/worker_task_runner.h:16: ...
9 years ago (2011-12-08 02:02:14 UTC) #9
michaeln
Code looks good to me, but i think we should put the new class in ...
9 years ago (2011-12-08 03:10:47 UTC) #10
darin (slow to review)
http://codereview.chromium.org/8785013/diff/34001/content/common/worker_task_runner.cc File content/common/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/34001/content/common/worker_task_runner.cc#newcode76 content/common/worker_task_runner.cc:76: (*iter)->OnWorkerRunLoopStarted(); It is usually bad design to hold locks ...
9 years ago (2011-12-08 22:41:21 UTC) #11
michaeln
http://codereview.chromium.org/8785013/diff/34001/content/common/worker_task_runner.cc File content/common/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/34001/content/common/worker_task_runner.cc#newcode76 content/common/worker_task_runner.cc:76: (*iter)->OnWorkerRunLoopStarted(); On 2011/12/08 22:41:21, darin wrote: > It is ...
9 years ago (2011-12-09 00:43:32 UTC) #12
dgrogan
There's a small unittest included now. http://codereview.chromium.org/8785013/diff/34001/content/common/worker_task_runner.cc File content/common/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/34001/content/common/worker_task_runner.cc#newcode48 content/common/worker_task_runner.cc:48: worker_task_runner_; On 2011/12/08 ...
9 years ago (2011-12-09 03:20:41 UTC) #13
darin (slow to review)
I forgot to mention another possible issue. Normally, we use base/observer_list.h whenever we want to ...
9 years ago (2011-12-09 17:57:50 UTC) #14
michaeln
http://codereview.chromium.org/8785013/diff/39002/webkit/glue/worker_task_runner.cc File webkit/glue/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/39002/webkit/glue/worker_task_runner.cc#newcode90 webkit/glue/worker_task_runner.cc:90: ObserverList observers_snapshot(observer_list_); This still doesn't work. As coded it's ...
9 years ago (2011-12-09 20:45:34 UTC) #15
michaeln
Hmmm... go figure... there's are two separate TLS wrappers in the base library, thread_local.h and ...
9 years ago (2011-12-09 22:40:07 UTC) #16
darin (slow to review)
On Fri, Dec 9, 2011 at 2:40 PM, <michaeln@chromium.org> wrote: > Hmmm... go figure... there's ...
9 years ago (2011-12-09 22:56:04 UTC) #17
dgrogan
On Fri, Dec 9, 2011 at 2:56 PM, Darin Fisher <darin@chromium.org> wrote: > > > ...
9 years ago (2011-12-09 23:20:18 UTC) #18
michaeln
> While unlikely, is it possible that those other uses don't care which > thread ...
9 years ago (2011-12-09 23:47:16 UTC) #19
michaeln
jim tells me that the dtor is guaranteed to be called on the associated thread. ...
9 years ago (2011-12-10 00:05:40 UTC) #20
michaeln
> do while there are Slots with non-zero values { well... it doesn't really setup ...
9 years ago (2011-12-10 00:11:53 UTC) #21
dgrogan
> And regarding dtor ordering... > > do while there are Slots with non-zero values ...
9 years ago (2011-12-10 00:14:19 UTC) #22
michaeln
> We still have the ordering problem with ~IDBDispatcher and v8 though, right? > I'm ...
9 years ago (2011-12-10 00:33:50 UTC) #23
dgrogan
Michael, could you take a look at the latest revision? It notifies only when a ...
9 years ago (2011-12-10 00:55:13 UTC) #24
dgrogan
http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc File webkit/glue/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc#newcode96 webkit/glue/worker_task_runner.cc:96: delete current_tls_.Get(); Oops, this has to go below the ...
9 years ago (2011-12-10 01:11:12 UTC) #25
michaeln
http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc File webkit/glue/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc#newcode33 webkit/glue/worker_task_runner.cc:33: WebKit::WebWorkerRunLoop run_loop_; since your using this on line 12, ...
9 years ago (2011-12-10 01:19:32 UTC) #26
dgrogan
http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc File webkit/glue/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc#newcode33 webkit/glue/worker_task_runner.cc:33: WebKit::WebWorkerRunLoop run_loop_; On 2011/12/10 01:19:32, michaeln wrote: > since ...
9 years ago (2011-12-10 01:37:40 UTC) #27
michaeln
i just see a few style nits http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc File webkit/glue/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/45003/webkit/glue/worker_task_runner.cc#newcode60 webkit/glue/worker_task_runner.cc:60: worker_task_runner_ = ...
9 years ago (2011-12-10 02:08:34 UTC) #28
dgrogan
http://codereview.chromium.org/8785013/diff/45004/webkit/glue/worker_task_runner.cc File webkit/glue/worker_task_runner.cc (right): http://codereview.chromium.org/8785013/diff/45004/webkit/glue/worker_task_runner.cc#newcode18 webkit/glue/worker_task_runner.cc:18: RunClosureTask(const base::Closure& task) : task_(task) { } On 2011/12/10 ...
9 years ago (2011-12-12 19:31:31 UTC) #29
michaeln
LGTM
9 years ago (2011-12-12 19:37:51 UTC) #30
darin (slow to review)
LGTM
9 years ago (2011-12-13 00:46:26 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/8785013/54001
9 years ago (2011-12-13 00:57:46 UTC) #32
commit-bot: I haz the power
Change committed as 114157
9 years ago (2011-12-13 02:43:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/8785013/58001
9 years ago (2011-12-13 07:05:50 UTC) #34
commit-bot: I haz the power
9 years ago (2011-12-13 08:18:54 UTC) #35
Change committed as 114192

Powered by Google App Engine
This is Rietveld 408576698