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

Issue 2375133002: Move MessagePort implementation from android_webview to content (Closed)

Created:
4 years, 2 months ago by Yusuf
Modified:
4 years, 2 months ago
CC:
agrieve+watch_chromium.org, android-webview-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move MessagePort implementation from android_webview to content -Rename all classes with AppWeb prefix instead of Aw -Move browser side classes to content/browser/android -Move renderer side class to content/renderer/android -Add public interface in content for app_web_message_port_service -Slim down message_port_provider now that all classes are in content -Move all java classes to content/public/android with package org.chromium.content.browser -AppWebMessagePortMessageFilter ownership moves to RenderFrameHostImpl -AppWebMessagePortClient ownership moves to RenderFrameImpl BUG=651124 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/ed66fc0d1f1d7adb27862c6046212162445231ac Cr-Commit-Position: refs/heads/master@{#424543}

Patch Set 1 #

Total comments: 36

Patch Set 2 : sgurun's comments #

Patch Set 3 : similarity modified to 20% #

Patch Set 4 : Fix compile #

Total comments: 10

Patch Set 5 : sgurun's comments #

Total comments: 1

Patch Set 6 : changed raw ptr to scoped_refptr #

Patch Set 7 : added ifdef #

Total comments: 10

Patch Set 8 : rsesek nits and git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -2037 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 chunks +0 lines, -9 lines 0 comments Download
M android_webview/browser/aw_browser_context.h View 3 chunks +0 lines, -3 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 chunk +0 lines, -8 lines 0 comments Download
D android_webview/browser/aw_message_port_message_filter.h View 1 chunk +0 lines, -58 lines 0 comments Download
D android_webview/browser/aw_message_port_message_filter.cc View 1 chunk +0 lines, -96 lines 0 comments Download
D android_webview/browser/aw_message_port_service.h View 1 chunk +0 lines, -34 lines 0 comments Download
M android_webview/browser/jni_dependency_factory.h View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M android_webview/common/android_webview_message_generator.h View 1 chunk +0 lines, -1 line 0 comments Download
D android_webview/common/aw_message_port_messages.h View 1 chunk +0 lines, -83 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebMessagePortAdapter.java View 1 2 3 4 5 6 7 4 chunks +11 lines, -12 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserContext.java View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 4 chunks +10 lines, -6 lines 0 comments Download
D android_webview/java/src/org/chromium/android_webview/AwMessagePort.java View 1 chunk +0 lines, -272 lines 0 comments Download
D android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java View 1 chunk +0 lines, -169 lines 0 comments Download
D android_webview/java/src/org/chromium/android_webview/PostMessageSender.java View 1 chunk +0 lines, -165 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java View 1 2 3 4 5 6 7 32 chunks +106 lines, -107 lines 0 comments Download
M android_webview/lib/main/aw_main_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/lib/main/aw_main_delegate.cc View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M android_webview/native/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 3 chunks +0 lines, -4 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -24 lines 0 comments Download
D android_webview/native/aw_message_port_service_impl.h View 1 chunk +0 lines, -87 lines 0 comments Download
D android_webview/native/aw_message_port_service_impl.cc View 1 chunk +0 lines, -243 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
D android_webview/renderer/aw_message_port_client.h View 1 chunk +0 lines, -42 lines 0 comments Download
D android_webview/renderer/aw_message_port_client.cc View 1 chunk +0 lines, -115 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A + content/browser/android/app_web_message_port_message_filter.h View 1 2 3 4 5 6 7 3 chunks +16 lines, -17 lines 0 comments Download
A + content/browser/android/app_web_message_port_message_filter.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -41 lines 0 comments Download
A + content/browser/android/app_web_message_port_service_impl.h View 1 2 3 4 5 6 7 2 chunks +39 lines, -33 lines 0 comments Download
A + content/browser/android/app_web_message_port_service_impl.cc View 1 2 3 4 5 6 7 12 chunks +88 lines, -80 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/message_port_provider.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -61 lines 0 comments Download
M content/browser/message_port_provider_browsertest.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + content/common/app_web_message_port_messages.h View 1 2 3 4 5 6 7 3 chunks +26 lines, -23 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/AppWebMessagePort.java View 1 2 3 4 5 6 7 9 chunks +21 lines, -20 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/AppWebMessagePortService.java View 1 2 3 4 5 6 7 10 chunks +33 lines, -37 lines 0 comments Download
A + content/public/android/java/src/org/chromium/content/browser/PostMessageSender.java View 1 2 3 4 5 6 7 9 chunks +18 lines, -20 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A + content/public/browser/android/app_web_message_port_service.h View 1 2 3 4 5 6 7 1 chunk +13 lines, -17 lines 0 comments Download
M content/public/browser/message_port_provider.h View 1 2 3 4 5 6 2 chunks +6 lines, -39 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A + content/renderer/android/app_web_message_port_client.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -9 lines 0 comments Download
A + content/renderer/android/app_web_message_port_client.cc View 1 2 3 4 5 6 7 4 chunks +22 lines, -25 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (25 generated)
Yusuf
Here is the final version. This is intended to be only the move, which should ...
4 years, 2 months ago (2016-09-28 16:50:36 UTC) #3
jochen (gone - plz use gerrit)
I wait for sgurun@ to finish the review first
4 years, 2 months ago (2016-09-29 12:08:17 UTC) #8
sgurun-gerrit only
On 2016/09/29 12:08:17, jochen (slow) wrote: > I wait for sgurun@ to finish the review ...
4 years, 2 months ago (2016-09-29 15:26:32 UTC) #9
sgurun-gerrit only
https://codereview.chromium.org/2375133002/diff/1/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/2375133002/diff/1/android_webview/lib/main/aw_main_delegate.cc#newcode5 android_webview/lib/main/aw_main_delegate.cc:5: #include <content/browser/android/app_web_message_port_service_impl.h> remove? https://codereview.chromium.org/2375133002/diff/1/android_webview/native/android_webview_jni_registrar.cc File android_webview/native/android_webview_jni_registrar.cc (right): https://codereview.chromium.org/2375133002/diff/1/android_webview/native/android_webview_jni_registrar.cc#newcode5 android_webview/native/android_webview_jni_registrar.cc:5: ...
4 years, 2 months ago (2016-09-30 23:40:59 UTC) #10
Yusuf
https://codereview.chromium.org/2375133002/diff/1/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/2375133002/diff/1/android_webview/lib/main/aw_main_delegate.cc#newcode5 android_webview/lib/main/aw_main_delegate.cc:5: #include <content/browser/android/app_web_message_port_service_impl.h> On 2016/09/30 23:40:59, sgurun wrote: > remove? ...
4 years, 2 months ago (2016-10-04 21:33:15 UTC) #11
sgurun-gerrit only
https://codereview.chromium.org/2375133002/diff/60001/android_webview/browser/jni_dependency_factory.h File android_webview/browser/jni_dependency_factory.h (right): https://codereview.chromium.org/2375133002/diff/60001/android_webview/browser/jni_dependency_factory.h#newcode18 android_webview/browser/jni_dependency_factory.h:18: class AppWebMessagePortService; remove https://codereview.chromium.org/2375133002/diff/60001/content/browser/android/app_web_message_port_message_filter.cc File content/browser/android/app_web_message_port_message_filter.cc (right): https://codereview.chromium.org/2375133002/diff/60001/content/browser/android/app_web_message_port_message_filter.cc#newcode51 content/browser/android/app_web_message_port_message_filter.cc:51: ...
4 years, 2 months ago (2016-10-06 22:57:39 UTC) #12
Yusuf
https://codereview.chromium.org/2375133002/diff/60001/android_webview/browser/jni_dependency_factory.h File android_webview/browser/jni_dependency_factory.h (right): https://codereview.chromium.org/2375133002/diff/60001/android_webview/browser/jni_dependency_factory.h#newcode18 android_webview/browser/jni_dependency_factory.h:18: class AppWebMessagePortService; On 2016/10/06 22:57:39, sgurun wrote: > remove ...
4 years, 2 months ago (2016-10-07 21:20:28 UTC) #13
sgurun-gerrit only
On 2016/10/07 21:20:28, Yusuf wrote: > https://codereview.chromium.org/2375133002/diff/60001/android_webview/browser/jni_dependency_factory.h > File android_webview/browser/jni_dependency_factory.h (right): > > https://codereview.chromium.org/2375133002/diff/60001/android_webview/browser/jni_dependency_factory.h#newcode18 > ...
4 years, 2 months ago (2016-10-07 22:13:20 UTC) #14
sgurun-gerrit only
https://codereview.chromium.org/2375133002/diff/80001/content/public/browser/message_port_provider.h File content/public/browser/message_port_provider.h (right): https://codereview.chromium.org/2375133002/diff/80001/content/public/browser/message_port_provider.h#newcode37 content/public/browser/message_port_provider.h:37: static content::AppWebMessagePortService* GetAppWebMessagePortService(); should this be ifdef ANDROID since ...
4 years, 2 months ago (2016-10-07 22:13:31 UTC) #15
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-10 12:40:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375133002/120001
4 years, 2 months ago (2016-10-10 22:01:44 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/277769)
4 years, 2 months ago (2016-10-10 22:12:25 UTC) #29
Yusuf
rsesek@ for _messages.h file move rsesek@ this CL is for moving the postMessage API that ...
4 years, 2 months ago (2016-10-10 22:35:39 UTC) #31
Robert Sesek
Just some nits. https://codereview.chromium.org/2375133002/diff/120001/content/browser/android/app_web_message_port_message_filter.cc File content/browser/android/app_web_message_port_message_filter.cc (right): https://codereview.chromium.org/2375133002/diff/120001/content/browser/android/app_web_message_port_message_filter.cc#newcode5 content/browser/android/app_web_message_port_message_filter.cc:5: #include "content/browser/android/app_web_message_port_message_filter.h" nit: blank line after ...
4 years, 2 months ago (2016-10-11 15:44:34 UTC) #32
sgurun-gerrit only
On 2016/10/11 15:44:34, Robert Sesek wrote: > Just some nits. > > https://codereview.chromium.org/2375133002/diff/120001/content/browser/android/app_web_message_port_message_filter.cc > File ...
4 years, 2 months ago (2016-10-11 16:00:43 UTC) #33
Yusuf
And also ran "git cl format" per sgurun's suggestion. Like you said all except the ...
4 years, 2 months ago (2016-10-11 16:48:47 UTC) #34
Robert Sesek
LGTM
4 years, 2 months ago (2016-10-11 16:54:34 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375133002/140001
4 years, 2 months ago (2016-10-11 17:00:48 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/84172)
4 years, 2 months ago (2016-10-11 17:10:50 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375133002/140001
4 years, 2 months ago (2016-10-11 18:59:49 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/84726)
4 years, 2 months ago (2016-10-11 19:10:03 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375133002/140001
4 years, 2 months ago (2016-10-11 20:39:14 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-11 20:59:34 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 21:03:41 UTC) #49
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ed66fc0d1f1d7adb27862c6046212162445231ac
Cr-Commit-Position: refs/heads/master@{#424543}

Powered by Google App Engine
This is Rietveld 408576698