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

Issue 16272006: In-browser DNS-based service discovery system (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@mdns_implementation
Visibility:
Public.

Description

This is a DNS-based service discovery system, implemented to work in the browser process behind a flag. This contains two classes. The first, ServiceTypeWatcher, lets users observe services of a specific type and query the network for them. The second, ServiceReader, lets the user receive more in-depth data about the service itself. BUG=249896 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207583

Patch Set 1 : #

Total comments: 27

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Total comments: 33

Patch Set 4 : #

Total comments: 17

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1319 lines, -0 lines) Patch
A chrome/browser/local_discovery/service_discovery_client.h View 1 2 3 4 1 chunk +140 lines, -0 lines 0 comments Download
A chrome/browser/local_discovery/service_discovery_client.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/local_discovery/service_discovery_client_impl.h View 1 2 3 4 1 chunk +184 lines, -0 lines 1 comment Download
A chrome/browser/local_discovery/service_discovery_client_impl.cc View 1 2 3 4 5 1 chunk +386 lines, -0 lines 0 comments Download
A chrome/browser/local_discovery/service_discovery_client_unittest.cc View 1 2 3 4 1 chunk +548 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Noam Samuel
7 years, 6 months ago (2013-06-14 22:39:45 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16272006/diff/2001/chrome/browser/local_discovery/service_discovery_client.cc File chrome/browser/local_discovery/service_discovery_client.cc (right): https://codereview.chromium.org/16272006/diff/2001/chrome/browser/local_discovery/service_discovery_client.cc#newcode13 chrome/browser/local_discovery/service_discovery_client.cc:13: g_instance = new ServiceDiscoveryClientImpl(); maybe return g_instance ? g_instance ...
7 years, 6 months ago (2013-06-15 00:22:30 UTC) #2
Noam Samuel
https://codereview.chromium.org/16272006/diff/2001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/2001/chrome/browser/local_discovery/service_discovery_client.h#newcode83 chrome/browser/local_discovery/service_discovery_client.h:83: MetadataCallback; On 2013/06/15 00:22:30, Vitaly Buka wrote: > Maybe ...
7 years, 6 months ago (2013-06-15 00:42:06 UTC) #3
gene
https://codereview.chromium.org/16272006/diff/7001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/7001/chrome/browser/local_discovery/service_discovery_client.h#newcode21 chrome/browser/local_discovery/service_discovery_client.h:21: class ServiceTypeWatcher { May be just a ServiceWatcher, instead ...
7 years, 6 months ago (2013-06-15 00:58:19 UTC) #4
Noam Samuel
Hey, I've refactored the interface considerably, so now the following is true: * ServiceTypeWatcher has ...
7 years, 6 months ago (2013-06-18 22:46:03 UTC) #5
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client.h#newcode19 chrome/browser/local_discovery/service_discovery_client.h:19: struct Service { Service -> ServiceDescription ? https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client_impl.cc ...
7 years, 6 months ago (2013-06-18 23:01:46 UTC) #6
gene
https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client.h#newcode24 chrome/browser/local_discovery/service_discovery_client.h:24: // The address (in host/port format) for the service ...
7 years, 6 months ago (2013-06-18 23:46:52 UTC) #7
Noam Samuel
https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client.h#newcode19 chrome/browser/local_discovery/service_discovery_client.h:19: struct Service { On 2013/06/18 23:01:46, Vitaly Buka wrote: ...
7 years, 6 months ago (2013-06-19 18:46:22 UTC) #8
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client.h#newcode84 chrome/browser/local_discovery/service_discovery_client.h:84: STATUS_TIMEOUT = 1, STATUS_TIMEOUT conflicts with define in WinNT.h
7 years, 6 months ago (2013-06-19 21:02:02 UTC) #9
gene
almost lgtm. a few nits below: https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client_impl.cc File chrome/browser/local_discovery/service_discovery_client_impl.cc (right): https://codereview.chromium.org/16272006/diff/17001/chrome/browser/local_discovery/service_discovery_client_impl.cc#newcode136 chrome/browser/local_discovery/service_discovery_client_impl.cc:136: DCHECK(services_.find(record->name()) != services_.end()); ...
7 years, 6 months ago (2013-06-19 22:48:02 UTC) #10
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client_impl.cc File chrome/browser/local_discovery/service_discovery_client_impl.cc (right): https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client_impl.cc#newcode348 chrome/browser/local_discovery/service_discovery_client_impl.cc:348: NOTREACHED(); no default return value
7 years, 6 months ago (2013-06-19 22:51:24 UTC) #11
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client_impl.h File chrome/browser/local_discovery/service_discovery_client_impl.h (right): https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client_impl.h#newcode42 chrome/browser/local_discovery/service_discovery_client_impl.h:42: public net::MDnsListener::Delegate { all publics must be aligned
7 years, 6 months ago (2013-06-19 22:55:21 UTC) #12
Noam Samuel
https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client.h File chrome/browser/local_discovery/service_discovery_client.h (right): https://codereview.chromium.org/16272006/diff/31001/chrome/browser/local_discovery/service_discovery_client.h#newcode51 chrome/browser/local_discovery/service_discovery_client.h:51: virtual void OnServiceStatusChanged(bool available, On 2013/06/19 22:48:03, gene wrote: ...
7 years, 6 months ago (2013-06-19 23:53:28 UTC) #13
gene
lgtm tiny nit below: https://codereview.chromium.org/16272006/diff/45001/chrome/browser/local_discovery/service_discovery_client_impl.cc File chrome/browser/local_discovery/service_discovery_client_impl.cc (right): https://codereview.chromium.org/16272006/diff/45001/chrome/browser/local_discovery/service_discovery_client_impl.cc#newcode355 chrome/browser/local_discovery/service_discovery_client_impl.cc:355: case net::MDnsTransaction::RESULT_DONE: add comment // ...
7 years, 6 months ago (2013-06-20 00:00:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/16272006/53001
7 years, 6 months ago (2013-06-20 17:34:32 UTC) #15
commit-bot: I haz the power
Change committed as 207583
7 years, 6 months ago (2013-06-20 21:36:47 UTC) #16
szym
7 years, 5 months ago (2013-06-27 22:03:19 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/16272006/diff/53001/chrome/browser/local_disc...
File chrome/browser/local_discovery/service_discovery_client_impl.h (right):

https://codereview.chromium.org/16272006/diff/53001/chrome/browser/local_disc...
chrome/browser/local_discovery/service_discovery_client_impl.h:85: typedef
std::map<std::string, linked_ptr<ServiceListeners>>
Please fix. ">>" is a syntax with our build flags (-Werror=c++0x-compat).

Neither the tryserver nor the waterfall bots compile or execute any of this
code, so I suggest you consider running tryjobs with a gclient override
enable_mdns=1.

(You might be able to do this without uploading such a change to rietveld by
using "git try" rather than "git cl try".)

Powered by Google App Engine
This is Rietveld 408576698