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

Issue 880613005: De-Clientize UDPSocket service (Closed)

Created:
5 years, 11 months ago by Ken Rockot(use gerrit already)
Modified:
5 years, 10 months ago
Reviewers:
jamesr, yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@rollin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

De-Clientize UDPSocket service BUG=451321 Committed: https://crrev.com/2b400c191f78c67e75e84a4bee81e41c0e9eb6b1 Cr-Commit-Position: refs/heads/master@{#313984}

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 3

Patch Set 3 : so long, SetReceiver #

Patch Set 4 : docs #

Patch Set 5 : recovered a lost word #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -66 lines) Patch
M mojo/services/network/network_service_impl.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/services/network/public/cpp/udp_socket_wrapper.h View 1 2 3 4 5 5 chunks +36 lines, -5 lines 0 comments Download
M mojo/services/network/public/cpp/udp_socket_wrapper.cc View 1 2 5 chunks +41 lines, -12 lines 0 comments Download
M mojo/services/network/public/interfaces/udp_socket.mojom View 1 2 3 4 4 chunks +16 lines, -13 lines 0 comments Download
M mojo/services/network/udp_socket_apptest.cc View 1 2 7 chunks +56 lines, -14 lines 0 comments Download
M mojo/services/network/udp_socket_impl.h View 1 2 4 chunks +21 lines, -8 lines 0 comments Download
M mojo/services/network/udp_socket_impl.cc View 1 2 9 chunks +21 lines, -12 lines 0 comments Download

Messages

Total messages: 42 (4 generated)
Ken Rockot(use gerrit already)
Hi Yuzhu, could you please take a look? This is basically the interface we discussed ...
5 years, 11 months ago (2015-01-27 01:08:42 UTC) #2
yzshen1
https://codereview.chromium.org/880613005/diff/1/mojo/services/network/network_service_impl.cc File mojo/services/network/network_service_impl.cc (right): https://codereview.chromium.org/880613005/diff/1/mojo/services/network/network_service_impl.cc#newcode70 mojo/services/network/network_service_impl.cc:70: // The lifetime of this UDPSocketImpl is bound to ...
5 years, 11 months ago (2015-01-27 22:18:24 UTC) #3
Ken Rockot(use gerrit already)
Thanks! https://codereview.chromium.org/880613005/diff/1/mojo/services/network/network_service_impl.cc File mojo/services/network/network_service_impl.cc (right): https://codereview.chromium.org/880613005/diff/1/mojo/services/network/network_service_impl.cc#newcode70 mojo/services/network/network_service_impl.cc:70: // The lifetime of this UDPSocketImpl is bound ...
5 years, 11 months ago (2015-01-27 23:50:26 UTC) #4
yzshen1
LGTM Thanks! https://codereview.chromium.org/880613005/diff/20001/mojo/services/network/udp_socket_impl.cc File mojo/services/network/udp_socket_impl.cc (right): https://codereview.chromium.org/880613005/diff/20001/mojo/services/network/udp_socket_impl.cc#newcode337 mojo/services/network/udp_socket_impl.cc:337: // state, preventing additional RecvFroms as well. ...
5 years, 10 months ago (2015-01-28 19:31:06 UTC) #5
Ken Rockot(use gerrit already)
James could you take a look as owner? Also, do we have a bug for ...
5 years, 10 months ago (2015-01-28 20:13:05 UTC) #7
jamesr
https://code.google.com/p/chromium/issues/detail?id=451321 is for this.
5 years, 10 months ago (2015-01-28 20:43:52 UTC) #8
jamesr
Does the receiver connection need to be this flexible, or should it be tied to ...
5 years, 10 months ago (2015-01-28 20:48:37 UTC) #9
yzshen1
On Wed, Jan 28, 2015 at 12:48 PM, <jamesr@chromium.org> wrote: > Does the receiver connection ...
5 years, 10 months ago (2015-01-28 20:59:51 UTC) #10
jamesr
Couldn't you just pass the receiver around if you want to transfer it to someone ...
5 years, 10 months ago (2015-01-28 21:44:34 UTC) #11
Ken Rockot(use gerrit already)
On 2015/01/28 20:59:51, yzshen1 wrote: > On Wed, Jan 28, 2015 at 12:48 PM, <mailto:jamesr@chromium.org> ...
5 years, 10 months ago (2015-01-28 21:46:08 UTC) #12
jamesr
Setting 'null' and closing the receive pipe mean the same thing, don't they? Better to ...
5 years, 10 months ago (2015-01-28 21:56:45 UTC) #13
Ken Rockot(use gerrit already)
On 2015/01/28 21:56:45, jamesr wrote: > Setting 'null' and closing the receive pipe mean the ...
5 years, 10 months ago (2015-01-28 21:57:45 UTC) #14
yzshen1
On 2015/01/28 21:44:34, jamesr wrote: > Couldn't you just pass the receiver around if you ...
5 years, 10 months ago (2015-01-28 22:10:07 UTC) #15
jamesr
If you pass the receiver with the ReadMore() then you have to have a new ...
5 years, 10 months ago (2015-01-28 22:15:55 UTC) #16
Ken Rockot(use gerrit already)
On 2015/01/28 22:15:55, jamesr wrote: > If you pass the receiver with the ReadMore() then ...
5 years, 10 months ago (2015-01-28 22:33:43 UTC) #17
jamesr
SetReceiver is OK if the same pipe needs to be reused across multiple reads, but ...
5 years, 10 months ago (2015-01-28 22:37:06 UTC) #18
yzshen1
On 2015/01/28 22:37:06, jamesr wrote: > SetReceiver is OK if the same pipe needs to ...
5 years, 10 months ago (2015-01-28 22:42:01 UTC) #19
Ken Rockot(use gerrit already)
OK. I agree nullability is essentially useless so I'll at least remove that. One more ...
5 years, 10 months ago (2015-01-28 22:44:59 UTC) #20
Ken Rockot(use gerrit already)
(and then SetReceiver goes away too) On Wed, Jan 28, 2015 at 2:44 PM, Ken ...
5 years, 10 months ago (2015-01-28 22:45:11 UTC) #21
jamesr
Ooo, there's an idea. So the usage would be you get a UDPSocket interface then ...
5 years, 10 months ago (2015-01-28 23:04:55 UTC) #22
yzshen1
On 2015/01/28 23:04:55, jamesr wrote: > Ooo, there's an idea. So the usage would be ...
5 years, 10 months ago (2015-01-28 23:06:29 UTC) #23
Ken Rockot(use gerrit already)
There we go.
5 years, 10 months ago (2015-01-29 02:15:58 UTC) #24
jamesr
Update the interface comment in the mojom too (can't figure out how to content inline ...
5 years, 10 months ago (2015-01-29 02:25:32 UTC) #25
Ken Rockot(use gerrit already)
Done On Wed, Jan 28, 2015 at 6:25 PM, <jamesr@chromium.org> wrote: > Update the interface ...
5 years, 10 months ago (2015-01-29 02:32:10 UTC) #26
Ken Rockot(use gerrit already)
On 2015/01/29 02:32:10, Ken Rockot wrote: > Done > > On Wed, Jan 28, 2015 ...
5 years, 10 months ago (2015-01-29 02:48:31 UTC) #27
jamesr
Hmm, means that a pipe is allocated even if the bind/connect calls are doomed but ...
5 years, 10 months ago (2015-01-29 03:44:53 UTC) #28
Ken Rockot(use gerrit already)
True, you do have to handle failure anyway so the difference in usage would be ...
5 years, 10 months ago (2015-01-29 05:04:10 UTC) #29
yzshen1
On 2015/01/29 05:04:10, Ken Rockot wrote: > True, you do have to handle failure anyway ...
5 years, 10 months ago (2015-01-29 18:52:32 UTC) #30
jamesr
mojom lgtm. I have some questions about the impl, but I may just be out ...
5 years, 10 months ago (2015-01-29 19:30:39 UTC) #31
Ken Rockot(use gerrit already)
On 2015/01/29 19:30:39, jamesr wrote: > mojom lgtm. I have some questions about the impl, ...
5 years, 10 months ago (2015-01-29 23:04:52 UTC) #32
jamesr
Ah right, good point.
5 years, 10 months ago (2015-01-29 23:05:31 UTC) #33
Ken Rockot(use gerrit already)
In any case, updated the type aliases. Yuzhu, I am sympathetic to your preference for ...
5 years, 10 months ago (2015-01-29 23:13:09 UTC) #34
chromium-reviews
(Discussed with Darin, James and Trung.) I think I agree with Darin's suggestion to: - ...
5 years, 10 months ago (2015-01-30 19:51:16 UTC) #36
yzshen1
Send again using correct account... (Discussed with Darin, James and Trung.) I think I agree ...
5 years, 10 months ago (2015-01-30 19:52:43 UTC) #37
Ken Rockot(use gerrit already)
Ah, I see. We'd have a full round trip per packet, but that's really fine ...
5 years, 10 months ago (2015-01-30 19:56:34 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/880613005/120001
5 years, 10 months ago (2015-01-30 19:57:37 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 10 months ago (2015-01-30 20:41:46 UTC) #41
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 20:43:48 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2b400c191f78c67e75e84a4bee81e41c0e9eb6b1
Cr-Commit-Position: refs/heads/master@{#313984}

Powered by Google App Engine
This is Rietveld 408576698