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

Issue 2750453002: Add DiscoveryNetworkMonitor implementation (Closed)

Created:
3 years, 9 months ago by btolsch
Modified:
3 years, 6 months ago
CC:
cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DiscoveryNetworkMonitor implementation This changes adds a singleton class DiscoveryNetworkMonitor which provides general information to services doing device discovery on the local network. BUG=698943 Review-Url: https://codereview.chromium.org/2750453002 Cr-Commit-Position: refs/heads/master@{#477378} Committed: https://chromium.googlesource.com/chromium/src/+/2bf972dc59af2654f71f577122e39fed4c0a986e

Patch Set 1 #

Total comments: 47

Patch Set 2 : Respond to mfoltz' and imcheng's comments #

Total comments: 38

Patch Set 3 : Respond to mfoltz' comments, add chrome.dial API back with tests #

Total comments: 20

Patch Set 4 : Respond to mfoltz' comments, remove chrome.dial API #

Patch Set 5 : Remove extension test files #

Total comments: 42

Patch Set 6 : Rebase #

Patch Set 7 : Respond to mfoltz' comments #

Total comments: 41

Patch Set 8 : Respond to mfoltz' comments #

Patch Set 9 : Respond to imcheng's comments #

Total comments: 16

Patch Set 10 : Respond to mfoltz and imcheng's comments #

Patch Set 11 : Temporarily fix Windows and Mac compilation #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+696 lines, -0 lines) Patch
M chrome/browser/media/router/discovery/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_info.h View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_info.cc View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_list.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_list_posix.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_list_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_list_wifi.h View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_list_wifi_linux.cc View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_list_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_monitor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_monitor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +126 lines, -0 lines 0 comments Download
A chrome/browser/media/router/discovery/discovery_network_monitor_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +153 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 47 (17 generated)
btolsch
This is a singleton version of monitoring network connectivity changes. I'm still a little unsure ...
3 years, 9 months ago (2017-03-13 08:22:31 UTC) #2
imcheng
I am not familiar with the platform-specific logic (though they look reasonable enough from checking ...
3 years, 9 months ago (2017-03-14 22:45:35 UTC) #3
mark a. foltz
Overall looks good - mostly localized comments. If possible let's try to re-use existing code ...
3 years, 9 months ago (2017-03-18 19:58:22 UTC) #4
btolsch
I responded to the comments, though some things are still uncertain, so PTAL. The next ...
3 years, 8 months ago (2017-04-03 10:16:36 UTC) #5
btolsch
+rsleevi: PTAL at the use of the net::internal code (especially if it should be moved ...
3 years, 8 months ago (2017-04-13 17:44:23 UTC) #7
Ryan Sleevi
Paul's probably a better reviewer, but our whole goal of signalling with net::internal is that ...
3 years, 8 months ago (2017-04-13 18:06:54 UTC) #9
pauljensen
On 2017/04/13 18:06:54, Ryan Sleevi wrote: > Paul's probably a better reviewer, but our whole ...
3 years, 8 months ago (2017-04-13 18:23:26 UTC) #10
btolsch
On 2017/04/13 18:23:26, pauljensen wrote: > On 2017/04/13 18:06:54, Ryan Sleevi wrote: > > Paul's ...
3 years, 8 months ago (2017-04-13 18:35:13 UTC) #11
pauljensen
On 2017/04/13 18:35:13, btolsch wrote: > On 2017/04/13 18:23:26, pauljensen wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-13 18:39:12 UTC) #12
btolsch
On 2017/04/13 18:39:12, pauljensen wrote: > On 2017/04/13 18:35:13, btolsch wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-13 18:43:56 UTC) #13
pauljensen
On 2017/04/13 18:43:56, btolsch wrote: > On 2017/04/13 18:39:12, pauljensen wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-13 18:58:35 UTC) #14
mark a. foltz
Overall looks good so far. Some detailed questions about the glibc code to iterate over ...
3 years, 8 months ago (2017-04-18 20:37:01 UTC) #15
btolsch
I've addressed the latest comments as well as added back the chrome.dial API along with ...
3 years, 8 months ago (2017-04-20 04:03:50 UTC) #16
mark a. foltz
Next round of comments. Did you have a link to the document handy? https://codereview.chromium.org/2750453002/diff/40001/chrome/browser/extensions/api/dial/dial_api.cc File ...
3 years, 8 months ago (2017-04-26 22:25:12 UTC) #17
btolsch
Addressed more comments, PTAL. https://codereview.chromium.org/2750453002/diff/40001/chrome/browser/extensions/api/dial/dial_api.cc File chrome/browser/extensions/api/dial/dial_api.cc (right): https://codereview.chromium.org/2750453002/diff/40001/chrome/browser/extensions/api/dial/dial_api.cc#newcode89 chrome/browser/extensions/api/dial/dial_api.cc:89: base::Bind(&DialAPI::NetworkIdListenerRemovedOnIOThread, this)); On 2017/04/26 22:25:11, ...
3 years, 7 months ago (2017-05-03 22:03:09 UTC) #18
mark a. foltz
Getting close! A few simplifications requested for the network monitor. https://codereview.chromium.org/2750453002/diff/80001/chrome/browser/media/router/discovery/discovery_network_list.h File chrome/browser/media/router/discovery/discovery_network_list.h (right): https://codereview.chromium.org/2750453002/diff/80001/chrome/browser/media/router/discovery/discovery_network_list.h#newcode17 ...
3 years, 7 months ago (2017-05-04 23:16:45 UTC) #19
mark a. foltz
Getting close! A few simplifications requested for the network monitor.
3 years, 7 months ago (2017-05-04 23:16:48 UTC) #20
Robert Sesek
Apologies for the drive-by question, but how does this differ from this code that discovers ...
3 years, 7 months ago (2017-05-16 17:28:24 UTC) #22
mark a. foltz
On 2017/05/16 at 17:28:24, rsesek wrote: > Apologies for the drive-by question, but how does ...
3 years, 7 months ago (2017-05-17 18:35:26 UTC) #23
btolsch
I responded to the comments, though there may still be some open questions. PTAL, thanks. ...
3 years, 7 months ago (2017-05-23 08:55:03 UTC) #24
mark a. foltz
Thanks for your patience, a few more tweaks and style fixes noted. https://codereview.chromium.org/2750453002/diff/120001/chrome/browser/media/router/discovery/discovery_network_info.h File chrome/browser/media/router/discovery/discovery_network_info.h ...
3 years, 7 months ago (2017-05-26 21:38:55 UTC) #25
btolsch
Thanks for the comments. I responded to them as well as a few other minor ...
3 years, 7 months ago (2017-05-26 23:38:10 UTC) #26
imcheng
https://codereview.chromium.org/2750453002/diff/120001/chrome/browser/media/router/discovery/BUILD.gn File chrome/browser/media/router/discovery/BUILD.gn (right): https://codereview.chromium.org/2750453002/diff/120001/chrome/browser/media/router/discovery/BUILD.gn#newcode42 chrome/browser/media/router/discovery/BUILD.gn:42: "discovery_network_list_posix.cc", It seems we should put platform specific files ...
3 years, 7 months ago (2017-05-26 23:49:01 UTC) #27
btolsch
PS9 includes responses to Derek's comments. PTAL, thanks! https://codereview.chromium.org/2750453002/diff/120001/chrome/browser/media/router/discovery/BUILD.gn File chrome/browser/media/router/discovery/BUILD.gn (right): https://codereview.chromium.org/2750453002/diff/120001/chrome/browser/media/router/discovery/BUILD.gn#newcode42 chrome/browser/media/router/discovery/BUILD.gn:42: "discovery_network_list_posix.cc", ...
3 years, 6 months ago (2017-05-30 09:54:30 UTC) #28
imcheng
lgtm % comments. In addition to unit tests, it would be good to do some ...
3 years, 6 months ago (2017-05-31 21:19:56 UTC) #29
mark a. foltz
lgtm % addressing remaining comments by imcheng@. My comments are just nit picking at this ...
3 years, 6 months ago (2017-06-05 21:28:43 UTC) #30
btolsch
Comments addressed. The only remaining static state in the unit tests is from using a ...
3 years, 6 months ago (2017-06-05 22:38:33 UTC) #31
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/2750453002/200001
3 years, 6 months ago (2017-06-06 19:42:58 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://chromium.googlesource.com/chromium/src/+/2bf972dc59af2654f71f577122e39fed4c0a986e
3 years, 6 months ago (2017-06-06 19:48:33 UTC) #45
Lei Zhang
3 years, 6 months ago (2017-06-08 20:53:47 UTC) #47
Message was sent while issue was closed.
https://codereview.chromium.org/2750453002/diff/200001/chrome/test/BUILD.gn
File chrome/test/BUILD.gn (right):

https://codereview.chromium.org/2750453002/diff/200001/chrome/test/BUILD.gn#n...
chrome/test/BUILD.gn:3629: # In-browser discovery is not used by Android for
now.
Please don't pile these at the bottom. Keep the list sorted.

Powered by Google App Engine
This is Rietveld 408576698