Add mDNS service caching to CastMediaSinkService

Desktop / Chromium - btolsch [chromium.org] - 14 August 2017 07:01 EDT

This change uses the DiscoveryNetworkMonitor to remember the list of services that were last seen on a set of connected networks. When a previously-seen set of networks is seen again, CastMediaSinkService will load all of the cached services and attempt to resolve them if they are not already present.

Bug: 698943, 687377 Change-Id: Ib3a47ef412ad56e4348f4dbd754cbcc1825d1e41 Reviewed-on: https://chromium-review.googlesource.com/595018

3ea6c55 Add mDNS service caching to CastMediaSinkService
.../discovery/mdns/cast_media_sink_service.cc | 4 +-
.../discovery/mdns/cast_media_sink_service_impl.cc | 61 ++-
.../discovery/mdns/cast_media_sink_service_impl.h | 24 +-
.../mdns/cast_media_sink_service_impl_unittest.cc | 529 ++++++++++++++++++++-
.../mdns/cast_media_sink_service_unittest.cc | 18 +-
5 files changed, 611 insertions(+), 25 deletions(-)

Upstream: git.chromium.org


  • Share