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

Issue 956763002: Implement the close() API for Message ports (Closed)

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

Description

Implement the close() API for Message ports The close API has to consider these cases: 1. A message port can be in a pending state 2. A message could be queued in renderer waiting for conversion Therefore close() immediately closes the port, but it does not cleanup the resources until all the messages are transferred. BUG=393291 Committed: https://crrev.com/1f47db6eeea87febb755db2c498335fd9bb226b1 Cr-Commit-Position: refs/heads/master@{#318271}

Patch Set 1 #

Total comments: 20

Patch Set 2 : address mnaganov comments #

Total comments: 1

Patch Set 3 : address hush comments #

Total comments: 2

Patch Set 4 : address Nasko review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -77 lines) Patch
M android_webview/browser/aw_message_port_message_filter.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M android_webview/browser/aw_message_port_message_filter.cc View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M android_webview/browser/aw_message_port_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/common/aw_message_port_messages.h View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +11 lines, -4 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java View 1 2 4 chunks +15 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/MessagePort.java View 6 chunks +41 lines, -31 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/PostMessageSender.java View 1 2 6 chunks +19 lines, -7 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java View 1 4 chunks +138 lines, -32 lines 0 comments Download
M android_webview/native/aw_message_port_service_impl.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M android_webview/native/aw_message_port_service_impl.cc View 1 2 chunks +24 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_message_port_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/renderer/aw_message_port_client.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/message_port_provider.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/browser/message_port_provider.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
sgurun-gerrit only
ptal thanks
5 years, 10 months ago (2015-02-25 02:00:13 UTC) #2
sgurun-gerrit only
On 2015/02/25 02:00:13, sgurun wrote: > ptal thanks nasko: please review android_webview/common and content/ thanks
5 years, 10 months ago (2015-02-25 02:33:07 UTC) #4
mnaganov (inactive)
Great job! I have some drive-by comments. https://codereview.chromium.org/956763002/diff/1/android_webview/common/aw_message_port_messages.h File android_webview/common/aw_message_port_messages.h (right): https://codereview.chromium.org/956763002/diff/1/android_webview/common/aw_message_port_messages.h#newcode60 android_webview/common/aw_message_port_messages.h:60: bool /* ...
5 years, 10 months ago (2015-02-25 10:36:27 UTC) #6
nasko
android_webview/common and content/ LGTM
5 years, 10 months ago (2015-02-25 15:03:08 UTC) #7
hush (inactive)
https://codereview.chromium.org/956763002/diff/1/android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java File android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java (left): https://codereview.chromium.org/956763002/diff/1/android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java#oldcode131 android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java:131: removeSentPorts(sentPorts); why is this removed? https://codereview.chromium.org/956763002/diff/1/android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java File android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java (right): ...
5 years, 10 months ago (2015-02-25 19:44:28 UTC) #8
sgurun-gerrit only
mnaganov: good point on ipc to clean the code. done. nasko: changed the ipc as ...
5 years, 10 months ago (2015-02-25 20:06:38 UTC) #9
nasko
On 2015/02/25 20:06:38, sgurun wrote: > mnaganov: good point on ipc to clean the code. ...
5 years, 10 months ago (2015-02-25 21:03:57 UTC) #10
mnaganov (inactive)
Thanks! LGTM https://codereview.chromium.org/956763002/diff/20001/android_webview/browser/aw_message_port_message_filter.cc File android_webview/browser/aw_message_port_message_filter.cc (right): https://codereview.chromium.org/956763002/diff/20001/android_webview/browser/aw_message_port_message_filter.cc#newcode48 android_webview/browser/aw_message_port_message_filter.cc:48: nit: remove empty line
5 years, 10 months ago (2015-02-25 21:08:32 UTC) #11
sgurun-gerrit only
https://codereview.chromium.org/956763002/diff/1/android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java File android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java (left): https://codereview.chromium.org/956763002/diff/1/android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java#oldcode131 android_webview/java/src/org/chromium/android_webview/AwMessagePortService.java:131: removeSentPorts(sentPorts); On 2015/02/25 19:44:27, hush wrote: > why is ...
5 years, 10 months ago (2015-02-25 21:38:54 UTC) #12
hush (inactive)
lgtm
5 years, 10 months ago (2015-02-25 22:03:19 UTC) #13
sgurun-gerrit only
On 2015/02/25 22:03:19, hush wrote: > lgtm ok waiting for Nasko's re-lgtm. thanks all.
5 years, 10 months ago (2015-02-25 22:10:47 UTC) #14
nasko
LGTM after the comment is addressed. https://codereview.chromium.org/956763002/diff/40001/android_webview/common/aw_message_port_messages.h File android_webview/common/aw_message_port_messages.h (right): https://codereview.chromium.org/956763002/diff/40001/android_webview/common/aw_message_port_messages.h#newcode83 android_webview/common/aw_message_port_messages.h:83: IPC_MESSAGE_ROUTED1(AwMessagePortHostMsg_ClosePort, Since this ...
5 years, 9 months ago (2015-02-26 17:45:20 UTC) #15
sgurun-gerrit only
https://codereview.chromium.org/956763002/diff/40001/android_webview/common/aw_message_port_messages.h File android_webview/common/aw_message_port_messages.h (right): https://codereview.chromium.org/956763002/diff/40001/android_webview/common/aw_message_port_messages.h#newcode83 android_webview/common/aw_message_port_messages.h:83: IPC_MESSAGE_ROUTED1(AwMessagePortHostMsg_ClosePort, On 2015/02/26 17:45:20, nasko wrote: > Since this ...
5 years, 9 months ago (2015-02-26 18:00:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/956763002/60001
5 years, 9 months ago (2015-02-26 18:01:49 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-02-26 18:51:07 UTC) #20
commit-bot: I haz the power
5 years, 9 months ago (2015-02-26 18:53:13 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1f47db6eeea87febb755db2c498335fd9bb226b1
Cr-Commit-Position: refs/heads/master@{#318271}

Powered by Google App Engine
This is Rietveld 408576698