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

Issue 17922002: Add an explicit way of forcing the MDnsClient to listen on the network (Closed)

Created:
7 years, 6 months ago by Noam Samuel
Modified:
7 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add an explicit way of forcing the MDnsClient to listen on the network Add an object called MDnsListenRef, whose existence forces the MDnsClient to continue listening on the network, but who has no other function. Rationale: Since a sandboxed process using an MDnsClient may not be able to create new sockets on demand, it makes sense to force the MDnsClient to be awake for the lifetime of the process. Add the ability to force the MDnsClient to stay awake. Also useful for abstractions over MDnsClient where you know that it makes sense not to immediately shut down the client even if we shut down all listeners and transactions. BUG=233821 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209812

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -71 lines) Patch
M chrome/browser/local_discovery/service_discovery_client_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/dns/mdns_client.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M net/dns/mdns_client_impl.h View 1 2 3 1 chunk +3 lines, -13 lines 0 comments Download
M net/dns/mdns_client_impl.cc View 1 2 3 3 chunks +10 lines, -25 lines 0 comments Download
M net/dns/mdns_client_unittest.cc View 1 2 3 16 chunks +5 lines, -33 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Noam Samuel
7 years, 6 months ago (2013-06-26 18:46:39 UTC) #1
szym
I'm a little bit worried of feature creep. Do you anticipate you will need both ...
7 years, 6 months ago (2013-06-26 18:52:48 UTC) #2
Noam Samuel
On 2013/06/26 18:52:48, szym wrote: > I'm a little bit worried of feature creep. Do ...
7 years, 6 months ago (2013-06-26 21:30:09 UTC) #3
Noam Samuel
On 2013/06/26 21:30:09, Noam Samuel wrote: > On 2013/06/26 18:52:48, szym wrote: > > I'm ...
7 years, 5 months ago (2013-06-29 00:19:12 UTC) #4
gene
lgtm, but I'll let szym@ to take a look nit: https://codereview.chromium.org/17922002/diff/8001/net/dns/mdns_client.h File net/dns/mdns_client.h (right): https://codereview.chromium.org/17922002/diff/8001/net/dns/mdns_client.h#newcode149 ...
7 years, 5 months ago (2013-07-02 03:39:16 UTC) #5
szym
https://codereview.chromium.org/17922002/diff/8001/net/dns/mdns_client.h File net/dns/mdns_client.h (right): https://codereview.chromium.org/17922002/diff/8001/net/dns/mdns_client.h#newcode148 net/dns/mdns_client.h:148: virtual void StopListening() = 0; Is it safe to ...
7 years, 5 months ago (2013-07-02 17:27:56 UTC) #6
Noam Samuel
https://codereview.chromium.org/17922002/diff/8001/net/dns/mdns_client.h File net/dns/mdns_client.h (right): https://codereview.chromium.org/17922002/diff/8001/net/dns/mdns_client.h#newcode148 net/dns/mdns_client.h:148: virtual void StopListening() = 0; On 2013/07/02 17:27:56, szym ...
7 years, 5 months ago (2013-07-02 18:08:22 UTC) #7
szym
lgtm
7 years, 5 months ago (2013-07-02 19:33:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/17922002/13001
7 years, 5 months ago (2013-07-02 20:22:21 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-02 23:26:28 UTC) #10
Message was sent while issue was closed.
Change committed as 209812

Powered by Google App Engine
This is Rietveld 408576698