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

Issue 869133005: Post a Message from Java to JS (Closed)

Created:
5 years, 11 months ago by sgurun-gerrit only
Modified:
5 years, 10 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Post a message from Java to JS using message channels. BUG=393291 Committed: https://crrev.com/92afec533e58387d2364f49227a053993e1afd8f Cr-Commit-Position: refs/heads/master@{#313817}

Patch Set 1 #

Patch Set 2 : minor fixer, renames, address some TODOs #

Patch Set 3 : added a test #

Total comments: 17

Patch Set 4 : address mnaganov comments #

Total comments: 8

Patch Set 5 : address code review #

Patch Set 6 : tsepez comments #

Patch Set 7 : spelling fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -45 lines) Patch
M android_webview/browser/aw_message_port_message_filter.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M android_webview/browser/aw_message_port_message_filter.cc View 1 2 3 1 chunk +26 lines, -6 lines 0 comments Download
M android_webview/browser/aw_message_port_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M android_webview/common/aw_message_port_messages.h View 1 2 3 4 5 6 2 chunks +48 lines, -6 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserContext.java View 1 1 chunk +5 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 chunks +8 lines, -6 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java View 1 2 3 2 chunks +28 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/MessagePort.java View 1 2 3 4 1 chunk +34 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java View 1 2 3 4 5 4 chunks +90 lines, -4 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_contents.cc View 1 1 chunk +11 lines, -3 lines 0 comments Download
M android_webview/native/aw_message_port_service_impl.h View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download
M android_webview/native/aw_message_port_service_impl.cc View 1 2 3 4 3 chunks +39 lines, -3 lines 0 comments Download
M android_webview/renderer/aw_message_port_client.h View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M android_webview/renderer/aw_message_port_client.cc View 1 2 3 2 chunks +34 lines, -6 lines 0 comments Download
M content/browser/message_port_provider.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M content/public/browser/message_port_provider.h View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
sgurun-gerrit only
5 years, 11 months ago (2015-01-26 23:18:31 UTC) #2
mnaganov (inactive)
Great job, Selim! But I have some suggestions. https://codereview.chromium.org/869133005/diff/40001/android_webview/common/aw_message_port_messages.h File android_webview/common/aw_message_port_messages.h (right): https://codereview.chromium.org/869133005/diff/40001/android_webview/common/aw_message_port_messages.h#newcode20 android_webview/common/aw_message_port_messages.h:20: // ...
5 years, 11 months ago (2015-01-27 13:30:18 UTC) #3
sgurun-gerrit only
jochen please review content/ https://codereview.chromium.org/869133005/diff/40001/android_webview/common/aw_message_port_messages.h File android_webview/common/aw_message_port_messages.h (right): https://codereview.chromium.org/869133005/diff/40001/android_webview/common/aw_message_port_messages.h#newcode20 android_webview/common/aw_message_port_messages.h:20: // and can only be ...
5 years, 10 months ago (2015-01-29 03:06:09 UTC) #4
jochen (gone - plz use gerrit)
content/ lgtm https://codereview.chromium.org/869133005/diff/60001/content/public/browser/message_port_provider.h File content/public/browser/message_port_provider.h (right): https://codereview.chromium.org/869133005/diff/60001/content/public/browser/message_port_provider.h#newcode48 content/public/browser/message_port_provider.h:48: const std::vector<int>& sent_ports); nit. the variable names ...
5 years, 10 months ago (2015-01-29 15:13:31 UTC) #5
mnaganov (inactive)
LGTM https://codereview.chromium.org/869133005/diff/40001/android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java File android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java (right): https://codereview.chromium.org/869133005/diff/40001/android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java#newcode148 android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java:148: @Feature({"AndroidWebView", "Android-PostMessage"}) On 2015/01/29 03:06:09, sgurun wrote: > ...
5 years, 10 months ago (2015-01-29 16:56:20 UTC) #6
sgurun-gerrit only
thanks all done. at the webview side, I had to disable testReceiveMessageInBackgroundThread since the test ...
5 years, 10 months ago (2015-01-29 19:15:40 UTC) #8
Tom Sepez
So, I think the flow you're describing is java app --> browser --> renderer for ...
5 years, 10 months ago (2015-01-29 19:38:53 UTC) #9
sgurun-gerrit only
On 2015/01/29 19:38:53, Tom Sepez wrote: > So, I think the flow you're describing is ...
5 years, 10 months ago (2015-01-29 20:04:55 UTC) #10
sgurun-gerrit only
On 2015/01/29 20:04:55, sgurun wrote: > On 2015/01/29 19:38:53, Tom Sepez wrote: > > So, ...
5 years, 10 months ago (2015-01-29 20:06:48 UTC) #11
sgurun-gerrit only
On 2015/01/29 20:06:48, sgurun wrote: > On 2015/01/29 20:04:55, sgurun wrote: > > On 2015/01/29 ...
5 years, 10 months ago (2015-01-29 20:18:00 UTC) #12
sgurun-gerrit only
On 2015/01/29 20:18:00, sgurun wrote: > On 2015/01/29 20:06:48, sgurun wrote: > > On 2015/01/29 ...
5 years, 10 months ago (2015-01-29 20:19:02 UTC) #13
Tom Sepez
LGTM. Thanks for the comment.
5 years, 10 months ago (2015-01-29 22:01:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/869133005/110001
5 years, 10 months ago (2015-01-29 22:09:18 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 10 months ago (2015-01-29 23:08:31 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 23:09:25 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/92afec533e58387d2364f49227a053993e1afd8f
Cr-Commit-Position: refs/heads/master@{#313817}

Powered by Google App Engine
This is Rietveld 408576698