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

Issue 302173006: [Android] Java Bridge with Gin: implement Java methods invocation (Closed)

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

Description

[Android] Java Bridge with Gin: implement Java methods invocation This patch adds GinJavaMethodInvocationHelper class which serves for coercion of arguments and return values of Java methods to / from base::Value and GinJavaBridgeValue. The coercion code is taken from the existing implementation (JavaBoundObject) with required conversions to use base::Value and GinJavaBridgeValue instead of NPVARIANT and friends. There are extensive Java tests for coercion, so here we only add some unit tests for edge cases. This patch also adds a trivial EventLog class for writing into Android Event Log from C++ code. BUG=355644 R=bulach@chromium.org, torne@chromium.org TBR=brettw@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276586

Patch Set 1 #

Total comments: 22

Patch Set 2 : Comments addressed #

Patch Set 3 : Fixed formatting #

Patch Set 4 : Fixed compilation of tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1529 lines, -4 lines) Patch
M base/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M base/android/base_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A + base/android/event_log.h View 1 1 chunk +8 lines, -4 lines 0 comments Download
A base/android/event_log.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
A base/android/java/src/org/chromium/base/EventLog.java View 1 chunk +17 lines, -0 lines 0 comments Download
M base/android/jni_weak_ref.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java/gin_java_bound_object.h View 1 chunk +27 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java/gin_java_method_invocation_helper.h View 1 2 3 1 chunk +113 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java/gin_java_method_invocation_helper.cc View 1 1 chunk +310 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java/gin_java_method_invocation_helper_unittest.cc View 1 chunk +280 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java/gin_java_script_to_java_types_coercion.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java/gin_java_script_to_java_types_coercion.cc View 1 2 1 chunk +705 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
mnaganov (inactive)
Hi Torne, Please help with pushing forward the new Java Bridge implementation. GinJavaBridgeInvocation helper class ...
6 years, 6 months ago (2014-06-02 11:05:50 UTC) #1
Torne
LGTM. I don't see any problems in here, and it's not hooked up to anything ...
6 years, 6 months ago (2014-06-06 13:49:54 UTC) #2
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 6 months ago (2014-06-06 13:51:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/302173006/1
6 years, 6 months ago (2014-06-06 13:52:09 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 16:37:01 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 16:40:05 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72164)
6 years, 6 months ago (2014-06-06 16:40:06 UTC) #7
mnaganov (inactive)
OWNERS review needed, Marcus , can you please take a look at base/android? base/ itself ...
6 years, 6 months ago (2014-06-09 08:28:47 UTC) #8
bulach
lgtm, mostly nits and some suggestions below. https://codereview.chromium.org/302173006/diff/1/base/android/event_log.h File base/android/event_log.h (right): https://codereview.chromium.org/302173006/diff/1/base/android/event_log.h#newcode15 base/android/event_log.h:15: void BASE_EXPORT ...
6 years, 6 months ago (2014-06-09 11:44:34 UTC) #9
mnaganov (inactive)
Thanks, Marcus! Super helpful comments. https://codereview.chromium.org/302173006/diff/1/base/android/event_log.h File base/android/event_log.h (right): https://codereview.chromium.org/302173006/diff/1/base/android/event_log.h#newcode15 base/android/event_log.h:15: void BASE_EXPORT eventLogWriteInt(int tag, ...
6 years, 6 months ago (2014-06-11 13:50:45 UTC) #10
mnaganov (inactive)
TBR=brettw for trivial changes to build files in base/
6 years, 6 months ago (2014-06-11 13:58:06 UTC) #11
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 6 months ago (2014-06-11 13:58:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/302173006/40001
6 years, 6 months ago (2014-06-11 13:59:46 UTC) #13
mnaganov (inactive)
The CQ bit was unchecked by mnaganov@chromium.org
6 years, 6 months ago (2014-06-11 14:33:03 UTC) #14
mnaganov (inactive)
The CQ bit was checked by mnaganov@chromium.org
6 years, 6 months ago (2014-06-11 14:40:46 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/302173006/60001
6 years, 6 months ago (2014-06-11 14:42:22 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:22:32 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:27:07 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19756)
6 years, 6 months ago (2014-06-11 22:27:08 UTC) #19
mnaganov (inactive)
6 years, 6 months ago (2014-06-12 08:36:15 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 manually as r276586 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698