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

Issue 536133003: MergeNetworkList can't group address under the same interface (Closed)

Created:
6 years, 3 months ago by guoweis_webrtc
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, juberti2, Sergey Ulanov, jln (very slow on Chromium), pthatcher1, jiayl, guoweis_left_chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

IpcNetworkManager in renderer/p2p didn't specify the right network prefix, which prevent grouping mechanism in MergeNetworkList from working. The end result is that each Network after MergeNetworkList contains only 1 ip address. With this change, the grouping will happen correctly. WebRTC has logic to only retrieve single IP from each network for connectivity check already.

Patch Set 1 #

Total comments: 3

Patch Set 2 : add a new unittest for the change #

Patch Set 3 : add more comment in test case. #

Patch Set 4 : add virtual dtor to the interface #

Patch Set 5 : Polish the unit test #

Patch Set 6 : clarify a comment #

Patch Set 7 : Disable a unit test until webrtc fix is merged into chrome #

Total comments: 20

Patch Set 8 : address comments by SergeyU #

Total comments: 6

Patch Set 9 : address further comments #

Patch Set 10 : fix one more comment #

Total comments: 16

Patch Set 11 : Change prefix from size_t to unsigned int per @wfh's feedback comment #

Total comments: 3

Patch Set 12 : Change the prefix length type from unsigned int to uint32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -30 lines) Patch
M content/common/p2p_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/p2p/ipc_network_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/p2p/ipc_network_manager.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +21 lines, -13 lines 0 comments Download
A content/renderer/p2p/ipc_network_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +112 lines, -0 lines 0 comments Download
A content/renderer/p2p/network_list_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +38 lines, -0 lines 0 comments Download
M content/renderer/p2p/socket_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -10 lines 0 comments Download
M net/base/net_util.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/net_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 50 (18 generated)
guoweis_webrtc
6 years, 3 months ago (2014-09-03 22:39:18 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/536133003/diff/1/content/renderer/p2p/ipc_network_manager.cc File content/renderer/p2p/ipc_network_manager.cc (right): https://codereview.chromium.org/536133003/diff/1/content/renderer/p2p/ipc_network_manager.cc#newcode87 content/renderer/p2p/ipc_network_manager.cc:87: rtc::IPAddress prefix = rtc::TruncateIP(rtc::IPAddress(address), Do you really need to ...
6 years, 3 months ago (2014-09-03 22:55:22 UTC) #3
guoweis_webrtc
https://codereview.chromium.org/536133003/diff/1/content/renderer/p2p/ipc_network_manager.cc File content/renderer/p2p/ipc_network_manager.cc (right): https://codereview.chromium.org/536133003/diff/1/content/renderer/p2p/ipc_network_manager.cc#newcode87 content/renderer/p2p/ipc_network_manager.cc:87: rtc::IPAddress prefix = rtc::TruncateIP(rtc::IPAddress(address), On 2014/09/03 22:55:22, Sergey Ulanov ...
6 years, 3 months ago (2014-09-03 22:58:14 UTC) #4
juberti2
Can we write up a unit test for this? https://codereview.chromium.org/536133003/diff/1/content/renderer/p2p/ipc_network_manager.cc File content/renderer/p2p/ipc_network_manager.cc (right): https://codereview.chromium.org/536133003/diff/1/content/renderer/p2p/ipc_network_manager.cc#newcode87 content/renderer/p2p/ipc_network_manager.cc:87: ...
6 years, 3 months ago (2014-09-03 23:11:03 UTC) #5
guoweis_webrtc
ah, understand now. Sergey, apologize if I misunderstood your point. I'll have a test case ...
6 years, 3 months ago (2014-09-03 23:13:38 UTC) #6
guoweis_webrtc
btw, maybe I reply too fast. If you don't pass both prefix and prefix length, ...
6 years, 3 months ago (2014-09-03 23:21:13 UTC) #7
juberti2
On 2014/09/03 23:21:13, guoweis wrote: > btw, maybe I reply too fast. If you don't ...
6 years, 3 months ago (2014-09-03 23:25:34 UTC) #8
guoweis_webrtc
On 2014/09/03 23:25:34, juberti2 wrote: > On 2014/09/03 23:21:13, guoweis wrote: > > btw, maybe ...
6 years, 3 months ago (2014-09-04 18:09:51 UTC) #9
guoweis_webrtc
+content owner for p2p message change
6 years, 3 months ago (2014-09-04 18:12:53 UTC) #11
guoweis_webrtc
+another p2pmessage owner as jschuh is OOO
6 years, 3 months ago (2014-09-04 18:21:44 UTC) #13
guoweis_webrtc
ok, try one more time with the owner
6 years, 3 months ago (2014-09-04 18:22:27 UTC) #15
guoweis_webrtc
Hi, This one has been outstanding for couple days. Wonder if anyone could take a ...
6 years, 3 months ago (2014-09-09 20:03:57 UTC) #17
guoweis_webrtc
+Jiayl
6 years, 3 months ago (2014-09-10 17:20:30 UTC) #19
Sergey Ulanov
sorry about delay. Feel free to ping me over IM if you are waiting for ...
6 years, 3 months ago (2014-09-10 18:05:32 UTC) #20
guoweis_webrtc
PTAL https://codereview.chromium.org/536133003/diff/120001/content/renderer/p2p/ipc_network_manager_unittest.cc File content/renderer/p2p/ipc_network_manager_unittest.cc (right): https://codereview.chromium.org/536133003/diff/120001/content/renderer/p2p/ipc_network_manager_unittest.cc#newcode11 content/renderer/p2p/ipc_network_manager_unittest.cc:11: namespace { On 2014/09/10 18:05:32, Sergey Ulanov wrote: ...
6 years, 3 months ago (2014-09-10 19:56:33 UTC) #21
Sergey Ulanov
https://codereview.chromium.org/536133003/diff/120001/content/renderer/p2p/socket_dispatcher.h File content/renderer/p2p/socket_dispatcher.h (right): https://codereview.chromium.org/536133003/diff/120001/content/renderer/p2p/socket_dispatcher.h#newcode51 content/renderer/p2p/socket_dispatcher.h:51: class P2PSocketDispatcherInterface { On 2014/09/10 19:56:33, guoweis wrote: > ...
6 years, 3 months ago (2014-09-10 22:28:25 UTC) #23
guoweis_webrtc
PTAL https://codereview.chromium.org/536133003/diff/120001/content/renderer/p2p/socket_dispatcher.h File content/renderer/p2p/socket_dispatcher.h (right): https://codereview.chromium.org/536133003/diff/120001/content/renderer/p2p/socket_dispatcher.h#newcode51 content/renderer/p2p/socket_dispatcher.h:51: class P2PSocketDispatcherInterface { On 2014/09/10 22:28:25, Sergey Ulanov ...
6 years, 3 months ago (2014-09-10 23:22:25 UTC) #24
Sergey Ulanov
Looks mostly good, but I have some more style nits. https://codereview.chromium.org/536133003/diff/200001/content/renderer/p2p/ipc_network_manager.h File content/renderer/p2p/ipc_network_manager.h (right): https://codereview.chromium.org/536133003/diff/200001/content/renderer/p2p/ipc_network_manager.h#newcode26 ...
6 years, 3 months ago (2014-09-10 23:37:16 UTC) #25
guoweis_webrtc
PTAL https://codereview.chromium.org/536133003/diff/200001/content/renderer/p2p/ipc_network_manager.h File content/renderer/p2p/ipc_network_manager.h (right): https://codereview.chromium.org/536133003/diff/200001/content/renderer/p2p/ipc_network_manager.h#newcode26 content/renderer/p2p/ipc_network_manager.h:26: NetworkListManager* socket_dispatcher); On 2014/09/10 23:37:15, Sergey Ulanov wrote: ...
6 years, 3 months ago (2014-09-11 00:15:32 UTC) #26
Sergey Ulanov
lgtm
6 years, 3 months ago (2014-09-11 18:39:38 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/536133003/260001
6 years, 3 months ago (2014-09-12 04:16:17 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10531)
6 years, 3 months ago (2014-09-12 04:28:11 UTC) #31
guoweis_webrtc
+inferno for just content/common/p2p_message.h.
6 years, 3 months ago (2014-09-12 16:11:05 UTC) #33
guoweis2
wfh: please OWNERS review content/common/p2p_message.h.
6 years, 3 months ago (2014-09-12 17:38:41 UTC) #35
Will Harris
https://codereview.chromium.org/536133003/diff/260001/content/common/p2p_messages.h File content/common/p2p_messages.h (right): https://codereview.chromium.org/536133003/diff/260001/content/common/p2p_messages.h#newcode31 content/common/p2p_messages.h:31: IPC_STRUCT_TRAITS_MEMBER(network_prefix) network_prefix is size_t, and we prefer not to ...
6 years, 3 months ago (2014-09-12 18:24:45 UTC) #36
guoweis2
@wfh: could you OWNERS review the change in p2p_message.h? @rsleevi: Could you OWNERS review the ...
6 years, 3 months ago (2014-09-12 20:13:58 UTC) #38
Will Harris
IPC messages LGTM https://codereview.chromium.org/536133003/diff/280001/net/base/net_util.h File net/base/net_util.h (right): https://codereview.chromium.org/536133003/diff/280001/net/base/net_util.h#newcode458 net/base/net_util.h:458: unsigned int network_prefix; nit: could use ...
6 years, 3 months ago (2014-09-13 00:09:10 UTC) #39
guoweis_left_chromium
@davidben: Could you OWNERS review the change in net_util.h and net_util.cc? wfh from security asked ...
6 years, 3 months ago (2014-09-15 17:10:18 UTC) #44
davidben
lgtm with comment, though I'm slightly puzzled why the IPC layer particularly cares about size_t ...
6 years, 3 months ago (2014-09-15 17:27:44 UTC) #45
guoweis2
Thanks for the review. Changed to uint32. https://codereview.chromium.org/536133003/diff/280001/net/base/net_util.h File net/base/net_util.h (right): https://codereview.chromium.org/536133003/diff/280001/net/base/net_util.h#newcode458 net/base/net_util.h:458: unsigned int ...
6 years, 3 months ago (2014-09-15 18:10:10 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/536133003/300001
6 years, 3 months ago (2014-09-15 18:25:14 UTC) #48
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 20:06:45 UTC) #50
Try jobs failed on following builders:
  chromium_presubmit on tryserver.chromium.linux
(http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)

Powered by Google App Engine
This is Rietveld 408576698