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

Issue 259033002: [Android] Implement renderer side of Gin Java Bridge (Closed)

Created:
6 years, 7 months ago by mnaganov (inactive)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, benm (inactive), tfarina
Visibility:
Public.

Description

[Android] Implement renderer side of Gin Java Bridge This change adds GinJavaBridgeObject and GinJavaBridgeDispatcher classes. GinJavaBridgeDispatcher is a per-RenderFrame manager of injected objects. It interacts with the browser side. GinJavaBridgeObject is a Gin-based wrapper injected into page's context that exposes methods of the corresponding Java object and receives method invocation requests from JavaScript. BUG=355644 R=jochen@chromium.org, thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272997

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments addressed, test added #

Total comments: 10

Patch Set 3 : Some comments addressed #

Patch Set 4 : Discard wrappers on page reloads #

Patch Set 5 : Use gin::ArrayBufferView instead of blink::WebArrayBufferView in GinJavaBridgeValueConverter #

Total comments: 2

Patch Set 6 : Comments addressed #

Patch Set 7 : Rebased, conflicts resolved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+809 lines, -9 lines) Patch
M base/id_map.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/renderer/v8_value_converter.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A content/renderer/java/gin_java_bridge_dispatcher.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A content/renderer/java/gin_java_bridge_dispatcher.cc View 1 2 3 1 chunk +125 lines, -0 lines 0 comments Download
A content/renderer/java/gin_java_bridge_object.h View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A content/renderer/java/gin_java_bridge_object.cc View 1 2 3 1 chunk +165 lines, -0 lines 0 comments Download
A content/renderer/java/gin_java_bridge_value_converter.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A content/renderer/java/gin_java_bridge_value_converter.cc View 1 2 3 4 5 1 chunk +163 lines, -0 lines 0 comments Download
A content/renderer/java/gin_java_bridge_value_converter_unittest.cc View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
M content/renderer/v8_value_converter_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/v8_value_converter_impl.cc View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/v8_value_converter_impl_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
mnaganov (inactive)
Hi Jochen, Can you please take a look at this to check Gin and V8 ...
6 years, 7 months ago (2014-04-28 14:46:31 UTC) #1
jochen (gone - plz use gerrit)
overall looks good is it possible to add unit tests for the serialization strategy? https://codereview.chromium.org/259033002/diff/1/content/renderer/java/gin_java_bridge_dispatcher.cc ...
6 years, 7 months ago (2014-04-29 13:50:15 UTC) #2
mnaganov (inactive)
> is it possible to add unit tests for the serialization strategy? That's a good ...
6 years, 7 months ago (2014-04-30 16:46:25 UTC) #3
jochen (gone - plz use gerrit)
the reason your tests crash is because the webarraybufferview assumes that blink is up and ...
6 years, 7 months ago (2014-05-05 10:55:48 UTC) #4
mnaganov (inactive)
> the reason your tests crash is because the webarraybufferview assumes that blink > is ...
6 years, 7 months ago (2014-05-06 10:54:15 UTC) #5
jochen (gone - plz use gerrit)
On 2014/05/06 10:54:15, Mikhail Naganov (Cr) wrote: > This is my understanding of how this ...
6 years, 7 months ago (2014-05-06 11:54:20 UTC) #6
mnaganov (inactive)
On 2014/05/06 11:54:20, jochen wrote: > On 2014/05/06 10:54:15, Mikhail Naganov (Cr) wrote: > > ...
6 years, 7 months ago (2014-05-06 12:43:05 UTC) #7
jochen (gone - plz use gerrit)
On 2014/05/06 12:43:05, Mikhail Naganov (Cr) wrote: > On 2014/05/06 11:54:20, jochen wrote: > > ...
6 years, 7 months ago (2014-05-06 15:57:36 UTC) #8
mnaganov (inactive)
OK, I have updated the implementation to discard V8 wrapper objects on page reloads. PTAL.
6 years, 7 months ago (2014-05-15 09:36:42 UTC) #9
jochen (gone - plz use gerrit)
much better, thank you! Do you still have the problems with the unit tests and ...
6 years, 7 months ago (2014-05-15 09:54:45 UTC) #10
mnaganov (inactive)
On 2014/05/15 09:54:45, jochen wrote: > much better, thank you! > > Do you still ...
6 years, 7 months ago (2014-05-15 13:11:04 UTC) #11
jochen (gone - plz use gerrit)
On 2014/05/15 13:11:04, Mikhail Naganov (Cr) wrote: > On 2014/05/15 09:54:45, jochen wrote: > > ...
6 years, 7 months ago (2014-05-15 14:46:41 UTC) #12
mnaganov (inactive)
On 2014/05/15 14:46:41, jochen wrote: > On 2014/05/15 13:11:04, Mikhail Naganov (Cr) wrote: > > ...
6 years, 7 months ago (2014-05-16 11:41:08 UTC) #13
mnaganov (inactive)
Jochen, thanks to your advice, I have changed GinJavaBridgeValue converter to use gin::ArrayBufferView and finally ...
6 years, 7 months ago (2014-05-16 14:48:00 UTC) #14
jochen (gone - plz use gerrit)
thank you, lgtm https://codereview.chromium.org/259033002/diff/80001/content/renderer/java/gin_java_bridge_value_converter.cc File content/renderer/java/gin_java_bridge_value_converter.cc (right): https://codereview.chromium.org/259033002/diff/80001/content/renderer/java/gin_java_bridge_value_converter.cc#newcode94 content/renderer/java/gin_java_bridge_value_converter.cc:94: }; nit. disallow copy & assign
6 years, 7 months ago (2014-05-19 13:26:55 UTC) #15
mnaganov (inactive)
Jochen, thank you very much! Your comments were super helpful! brettw@: Brett, can you please ...
6 years, 7 months ago (2014-05-19 14:57:52 UTC) #16
mnaganov (inactive)
Nico, maybe you can looks at the base/id_map.h change, please?
6 years, 7 months ago (2014-05-22 12:09:19 UTC) #17
Nico
id_map lgtm
6 years, 7 months ago (2014-05-22 19:27:31 UTC) #18
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 7 months ago (2014-05-27 10:55:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/259033002/110001
6 years, 7 months ago (2014-05-27 10:56:17 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 12:52:13 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 12:57:49 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77880)
6 years, 7 months ago (2014-05-27 12:57:50 UTC) #23
mnaganov (inactive)
6 years, 7 months ago (2014-05-27 18:10:13 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 manually as r272997 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698