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

Issue 467263006: JavaScript Content Handler Version 0.0 (Closed)

Created:
6 years, 4 months ago by hansmuller
Modified:
6 years, 3 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

JavaScript Content Handler Version 0.0 BUG=403645 Committed: https://crrev.com/b2cf607c2035b942e36ceed49cc770cf15fb1db2 Cr-Commit-Position: refs/heads/master@{#294621}

Patch Set 1 : Use chromium application runner #

Total comments: 21

Patch Set 2 : Changes per review feedback #

Total comments: 2

Patch Set 3 : Working and relatively complete #

Total comments: 55

Patch Set 4 : Changes per review feedback. #

Total comments: 10

Patch Set 5 : Changes per review feedback round 2 #

Patch Set 6 : Integrated isolate_holder changes, replaced main.js #

Patch Set 7 : Use ScopedVector<JSApp> instead of std::vector<scoped_ptr<JSApp> > #

Patch Set 8 : Added ICU build dependency #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -453 lines) Patch
M gin/modules/module_runner_delegate.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M gin/modules/module_runner_delegate.cc View 1 2 3 4 3 chunks +9 lines, -1 line 0 comments Download
A mojo/apps/js/application_delegate_impl.h View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A mojo/apps/js/application_delegate_impl.cc View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
A mojo/apps/js/js_app.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
A mojo/apps/js/js_app.cc View 1 2 3 4 5 1 chunk +118 lines, -0 lines 1 comment Download
M mojo/apps/js/main.cc View 1 2 3 4 5 1 chunk +10 lines, -39 lines 0 comments Download
M mojo/apps/js/main.js View 1 2 3 4 5 1 chunk +58 lines, -393 lines 0 comments Download
A + mojo/apps/js/mojo_module.h View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
A mojo/apps/js/mojo_module.cc View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
M mojo/common/data_pipe_utils.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M mojo/common/data_pipe_utils.cc View 1 2 3 4 5 2 chunks +35 lines, -12 lines 0 comments Download
M mojo/mojo_apps.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M mojo/public/js/bindings/validator.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (6 generated)
Aaron Boodman
https://codereview.chromium.org/467263006/diff/40001/mojo/apps/js/main.cc File mojo/apps/js/main.cc (right): https://codereview.chromium.org/467263006/diff/40001/mojo/apps/js/main.cc#newcode91 mojo/apps/js/main.cc:91: class ContentHandlerApp : public ApplicationDelegate { Nit: the naming ...
6 years, 3 months ago (2014-08-25 17:25:40 UTC) #1
darin (slow to review)
darin@chromium.org changed reviewers: + darin@chromium.org
6 years, 3 months ago (2014-08-26 05:23:23 UTC) #2
darin (slow to review)
https://codereview.chromium.org/467263006/diff/40001/mojo/apps/js/main.cc File mojo/apps/js/main.cc (right): https://codereview.chromium.org/467263006/diff/40001/mojo/apps/js/main.cc#newcode115 mojo/apps/js/main.cc:115: base::MessageLoop::current()->PostTask(FROM_HERE, why do you need to use PostTask here? ...
6 years, 3 months ago (2014-08-26 05:23:23 UTC) #3
hansmuller
I've addressed most of the feedback. The next step is to graduate from "Hello World" ...
6 years, 3 months ago (2014-08-26 23:39:13 UTC) #4
Aaron Boodman
https://codereview.chromium.org/467263006/diff/40001/mojo/apps/js/main.cc File mojo/apps/js/main.cc (right): https://codereview.chromium.org/467263006/diff/40001/mojo/apps/js/main.cc#newcode139 mojo/apps/js/main.cc:139: content_handler_app_->LoadMainJSModule(module, path); On 2014/08/26 23:39:12, hansmuller wrote: > On ...
6 years, 3 months ago (2014-08-27 05:55:53 UTC) #5
hansmuller
On 2014/08/27 05:55:53, Aaron Boodman wrote: ... > http://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED- > > > > I was ...
6 years, 3 months ago (2014-08-27 17:01:37 UTC) #6
darin (slow to review)
https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h File mojo/common/data_pipe_utils.h (right): https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h#newcode34 mojo/common/data_pipe_utils.h:34: // If |contents| is NULL, the data is read ...
6 years, 3 months ago (2014-08-27 21:30:10 UTC) #7
hansmuller
On 2014/08/27 21:30:10, darin wrote: > https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h > File mojo/common/data_pipe_utils.h (right): > > https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h#newcode34 > ...
6 years, 3 months ago (2014-08-27 21:42:48 UTC) #8
darin (slow to review)
https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h File mojo/common/data_pipe_utils.h (right): https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h#newcode34 mojo/common/data_pipe_utils.h:34: // If |contents| is NULL, the data is read ...
6 years, 3 months ago (2014-08-27 21:51:04 UTC) #9
hansmuller
On 2014/08/27 21:51:04, darin wrote: > https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h > File mojo/common/data_pipe_utils.h (right): > > https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h#newcode34 > ...
6 years, 3 months ago (2014-08-27 22:01:45 UTC) #10
darin (slow to review)
On 2014/08/27 22:01:45, hansmuller wrote: > On 2014/08/27 21:51:04, darin wrote: > > > https://codereview.chromium.org/467263006/diff/60001/mojo/common/data_pipe_utils.h ...
6 years, 3 months ago (2014-08-27 22:30:04 UTC) #11
hansmuller
I've uploaded a version of the JS content handler that manages multiple JS app threads ...
6 years, 3 months ago (2014-09-09 18:16:38 UTC) #12
Aaron Boodman
Exciting! Here is a first pass of comments... I tried to focus on structural things ...
6 years, 3 months ago (2014-09-10 02:22:10 UTC) #13
Aaron Boodman
https://codereview.chromium.org/467263006/diff/80001/mojo/apps/js/mojo_module.cc File mojo/apps/js/mojo_module.cc (right): https://codereview.chromium.org/467263006/diff/80001/mojo/apps/js/mojo_module.cc#newcode45 mojo/apps/js/mojo_module.cc:45: gin::WrapperInfo g_wrapper_info = { gin::kEmbedderNativeGin }; On 2014/09/10 02:22:10, ...
6 years, 3 months ago (2014-09-10 17:39:17 UTC) #14
hansmuller
I've made nearly all the changes you suggested. There no more ref counted classes and ...
6 years, 3 months ago (2014-09-11 00:26:18 UTC) #15
Aaron Boodman
https://codereview.chromium.org/467263006/diff/80001/mojo/apps/js/js_app.cc File mojo/apps/js/js_app.cc (right): https://codereview.chromium.org/467263006/diff/80001/mojo/apps/js/js_app.cc#newcode84 mojo/apps/js/js_app.cc:84: // The lifetime of the this JSApp is managed ...
6 years, 3 months ago (2014-09-11 05:24:53 UTC) #16
hansmuller
I've made all of the suggested changes. https://codereview.chromium.org/467263006/diff/80001/mojo/apps/js/js_app.cc File mojo/apps/js/js_app.cc (right): https://codereview.chromium.org/467263006/diff/80001/mojo/apps/js/js_app.cc#newcode84 mojo/apps/js/js_app.cc:84: // The ...
6 years, 3 months ago (2014-09-11 16:44:44 UTC) #17
Aaron Boodman
Last thing... can you remove main.js and check in your test files in its place?
6 years, 3 months ago (2014-09-11 19:49:37 UTC) #18
hansmuller
Sync'd with Jochen's isolate_holder change (https://codereview.chromium.org/553903003) and replaced apps/js/main.js with a working content handler demo.
6 years, 3 months ago (2014-09-11 22:37:43 UTC) #19
Aaron Boodman
On 2014/09/11 22:37:43, hansmuller wrote: > Sync'd with Jochen's isolate_holder change > (https://codereview.chromium.org/553903003) and replaced ...
6 years, 3 months ago (2014-09-11 23:33:59 UTC) #20
darin (slow to review)
I defer to aa@ On Sep 11, 2014 4:34 PM, <aa@chromium.org> wrote: > On 2014/09/11 ...
6 years, 3 months ago (2014-09-11 23:39:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/467263006/140001
6 years, 3 months ago (2014-09-12 00:15:03 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/14822)
6 years, 3 months ago (2014-09-12 01:38:31 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/467263006/160001
6 years, 3 months ago (2014-09-12 14:41:43 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/14977)
6 years, 3 months ago (2014-09-12 15:00:57 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/467263006/220001
6 years, 3 months ago (2014-09-12 17:17:52 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:220001) as 07755bb656c00e0e849fdbe8ebcc07f48b6da817
6 years, 3 months ago (2014-09-12 19:00:31 UTC) #32
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/b2cf607c2035b942e36ceed49cc770cf15fb1db2 Cr-Commit-Position: refs/heads/master@{#294621}
6 years, 3 months ago (2014-09-12 19:04:51 UTC) #33
Aaron Boodman
https://codereview.chromium.org/467263006/diff/220001/mojo/apps/js/js_app.cc File mojo/apps/js/js_app.cc (right): https://codereview.chromium.org/467263006/diff/220001/mojo/apps/js/js_app.cc#newcode69 mojo/apps/js/js_app.cc:69: return pipe.handle0.release(); Little cleanup I realized on the train ...
6 years, 3 months ago (2014-09-15 16:57:44 UTC) #35
hansmuller
On 2014/09/15 16:57:44, Aaron Boodman wrote: > https://codereview.chromium.org/467263006/diff/220001/mojo/apps/js/js_app.cc > File mojo/apps/js/js_app.cc (right): > > https://codereview.chromium.org/467263006/diff/220001/mojo/apps/js/js_app.cc#newcode69 ...
6 years, 3 months ago (2014-09-15 17:30:24 UTC) #36
Aaron Boodman
6 years, 3 months ago (2014-09-15 17:42:13 UTC) #37
Message was sent while issue was closed.
On 2014/09/15 17:30:24, hansmuller wrote:
> On 2014/09/15 16:57:44, Aaron Boodman wrote:
> > https://codereview.chromium.org/467263006/diff/220001/mojo/apps/js/js_app.cc
> > File mojo/apps/js/js_app.cc (right):
> > 
> >
>
https://codereview.chromium.org/467263006/diff/220001/mojo/apps/js/js_app.cc#...
> > mojo/apps/js/js_app.cc:69: return pipe.handle0.release();
> > Little cleanup I realized on the train this morning:
> > 
> > Looks a bit weird to release the scoped handled here. Why not add a
converter
> > for ScopedHandle, so that you can return pipe.handle0.Pass() instead?
> 
> So the the converter for ScopedHandle => Handle would do the release(), that's
> right?

I meant a gin::Converter, like this one:

https://code.google.com/p/chromium/codesearch#chromium/src/mojo/bindings/js/h...

... for converting C++ values to v8 values. Yes, it would just release.

> I'm just fixing another problem I didn't catch with this CL -
> https://code.google.com/p/chromium/issues/detail?id=414338.  I can include
this
> change as well.

Powered by Google App Engine
This is Rietveld 408576698