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

Issue 179803007: Refactors parts of gin: (Closed)

Created:
6 years, 10 months ago by sky
Modified:
6 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, darin (slow to review), viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Refactors parts of gin: . Runner no longer extends ContextHolder. It will still have a ContextHolder, but not own it. This enables a couple of things: . Runner no longer need own a v8::Context. . Runner can be lazily created after the ContextHolder. . Runner becomes a (mostly) pure virtual interface. This enables an implementation to execute through blink rather than v8 directly. . What was Runner is now DefaultRunner (and DefaultRunnerDelegate). I'm not a fan of these names, if you have better ideas let me know. Maybe DirectRunner? BUG=none TEST=none R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253732

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 1

Patch Set 3 : fix windows #

Patch Set 4 : merge 2 trunk #

Total comments: 2

Patch Set 5 : remove moduleloader #

Patch Set 6 : cleanup #

Total comments: 2

Patch Set 7 : fix gin_shell #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -217 lines) Patch
M gin/converter.h View 1 chunk +1 line, -2 lines 0 comments Download
M gin/gin.gyp View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M gin/modules/module_registry.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M gin/modules/module_runner_delegate.h View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download
M gin/modules/module_runner_delegate.cc View 1 2 3 4 2 chunks +14 lines, -12 lines 0 comments Download
M gin/modules/timer.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M gin/modules/timer_unittest.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M gin/per_context_data.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gin/public/context_holder.h View 1 chunk +1 line, -3 lines 0 comments Download
M gin/runner.h View 1 2 chunks +15 lines, -36 lines 0 comments Download
M gin/runner.cc View 1 chunk +4 lines, -92 lines 0 comments Download
D gin/runner_unittest.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M gin/shell/gin_main.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
A gin/shell_runner.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A gin/shell_runner.cc View 1 2 3 4 5 1 chunk +112 lines, -0 lines 0 comments Download
A + gin/shell_runner_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M gin/test/file_runner.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M gin/test/file_runner.cc View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M mojo/apps/js/bindings/gl/context.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/bindings/waiting_callback.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/main.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/mojo_runner_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/apps/js/mojo_runner_delegate.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/apps/js/test/run_js_tests.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
sky
I'm happy to split this up if you prefer. https://codereview.chromium.org/179803007/diff/20001/gin/default_runner.h File gin/default_runner.h (right): https://codereview.chromium.org/179803007/diff/20001/gin/default_runner.h#newcode5 gin/default_runner.h:5: ...
6 years, 10 months ago (2014-02-25 22:39:33 UTC) #1
abarth-chromium
6 years, 10 months ago (2014-02-26 05:56:06 UTC) #2
abarth-chromium
Maybe StandaloneRunner rather than DefaultRunner?
6 years, 10 months ago (2014-02-26 05:57:00 UTC) #3
abarth-chromium
This CL generally looks good, but I'd prefer if we split the ModuleLoader part out ...
6 years, 10 months ago (2014-02-26 06:08:44 UTC) #4
sky
I removed the ModuleLoader changes from this patch. Take another look?
6 years, 10 months ago (2014-02-26 15:02:00 UTC) #5
sky
Also, I renamed DefaultRunner* to ShellRunner*. I liked both of your suggestions and didn't feel ...
6 years, 10 months ago (2014-02-26 15:02:54 UTC) #6
jochen (gone - plz use gerrit)
https://codereview.chromium.org/179803007/diff/100001/gin/runner.h File gin/runner.h (right): https://codereview.chromium.org/179803007/diff/100001/gin/runner.h#newcode39 gin/runner.h:39: base::WeakPtr<Runner> GetWeakPtr() { Isn't the intention that blink will ...
6 years, 10 months ago (2014-02-26 15:05:28 UTC) #7
sky
https://codereview.chromium.org/179803007/diff/100001/gin/runner.h File gin/runner.h (right): https://codereview.chromium.org/179803007/diff/100001/gin/runner.h#newcode39 gin/runner.h:39: base::WeakPtr<Runner> GetWeakPtr() { On 2014/02/26 15:05:28, jochen wrote: > ...
6 years, 10 months ago (2014-02-26 15:08:55 UTC) #8
jochen (gone - plz use gerrit)
I see. Currently, it's not possible to call v8 functions directly from outside of blink ...
6 years, 10 months ago (2014-02-26 15:31:51 UTC) #9
jochen (gone - plz use gerrit)
On 2014/02/26 15:31:51, jochen wrote: > I see. > > Currently, it's not possible to ...
6 years, 10 months ago (2014-02-26 15:32:06 UTC) #10
sky
I was going to call into the WebFrame methods (executeScript/callFunctionEvenIfScriptDisabled). This seems to work, of ...
6 years, 10 months ago (2014-02-26 15:33:36 UTC) #11
jochen (gone - plz use gerrit)
On 2014/02/26 15:33:36, sky wrote: > I was going to call into the WebFrame methods ...
6 years, 10 months ago (2014-02-26 15:36:28 UTC) #12
sky
Adam had suggested doing this route. -Scott On Wed, Feb 26, 2014 at 7:36 AM, ...
6 years, 10 months ago (2014-02-26 15:41:32 UTC) #13
abarth-chromium
lgtm
6 years, 10 months ago (2014-02-26 19:07:38 UTC) #14
sky
The CQ bit was checked by sky@chromium.org
6 years, 10 months ago (2014-02-26 21:36:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/179803007/120001
6 years, 10 months ago (2014-02-26 21:39:09 UTC) #16
commit-bot: I haz the power
6 years, 10 months ago (2014-02-27 06:08:26 UTC) #17
Message was sent while issue was closed.
Change committed as 253732

Powered by Google App Engine
This is Rietveld 408576698