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

Issue 23437015: Initial chrome.mdns API. (Closed)

Created:
7 years, 3 months ago by justinlin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Noam Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : #

Total comments: 49

Patch Set 3 : wip #

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : Use new event filter #

Total comments: 6

Patch Set 7 : Rename DNS-SD #

Total comments: 2

Patch Set 8 : Comments, add 1 more test #

Patch Set 9 : add todo #

Patch Set 10 : nit #

Total comments: 10

Patch Set 11 : mfoltz comments, rename nsd_registry #

Patch Set 12 : nit #

Patch Set 13 : #

Patch Set 14 : windows.............................................. #

Patch Set 15 : Disable test for WinDbg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+597 lines, -9 lines) Patch
A + chrome/browser/extensions/api/mdns/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/extensions/api/mdns/dns_sd_registry.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/mdns/dns_sd_registry.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/mdns/mdns_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/mdns/mdns_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +154 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/mdns/mdns_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +134 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/mdns.idl View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/event_bindings.cc View 1 2 3 4 5 3 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/event.js View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/mdns/api/manifest.json View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/mdns/api/register_listener.html View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/mdns/api/register_listener.js View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/mdns/api/register_multiple_listeners.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/mdns/api/register_multiple_listeners.js View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M extensions/common/event_filtering_info.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/common/event_filtering_info.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M extensions/common/event_matcher.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/common/event_matcher.cc View 1 2 3 4 5 3 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
justinlin
Hi, ptal. Much of the work was done in this review, just made a new ...
7 years, 3 months ago (2013-08-29 00:48:05 UTC) #1
Matt Perry
https://codereview.chromium.org/23437015/diff/3001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/3001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode23 chrome/browser/extensions/api/mdns/mdns_api.cc:23: const std::vector<std::string> GetServiceTypesForExtension( you can return a reference here ...
7 years, 3 months ago (2013-08-30 00:43:29 UTC) #2
mark a. foltz
Mostly minor comments / doc nitpicks https://codereview.chromium.org/23437015/diff/3001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/3001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode28 chrome/browser/extensions/api/mdns/mdns_api.cc:28: NOTREACHED(); Include a ...
7 years, 3 months ago (2013-08-30 01:35:52 UTC) #3
justinlin
Thanks for the reviews. Looking into switching to using a filter instead, but haven't figured ...
7 years, 3 months ago (2013-09-03 21:21:56 UTC) #4
Matt Perry
https://codereview.chromium.org/23437015/diff/3001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/3001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode97 chrome/browser/extensions/api/mdns/mdns_api.cc:97: void MDnsAPI::OnMDnsEvent(const std::string& service_type, On 2013/09/03 21:21:56, justinlin wrote: ...
7 years, 3 months ago (2013-09-03 22:24:04 UTC) #5
justinlin
Switched to using a new event filter "serviceType" instead. Definitely much cleaner this way, thanks. ...
7 years, 3 months ago (2013-09-05 05:14:46 UTC) #6
gene
Hi Justin, One small question. Are you sure using mDNS name and not DNS-SD everywhere ...
7 years, 3 months ago (2013-09-05 05:28:32 UTC) #7
justinlin
Hi Gene, thanks for the comment. I think that does make sense. No worries, it's ...
7 years, 3 months ago (2013-09-05 05:38:52 UTC) #8
Matt Perry
LGTM with nits https://codereview.chromium.org/23437015/diff/31001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/31001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode146 chrome/browser/extensions/api/mdns/mdns_api.cc:146: filter_info.SetServiceType(service_type); nit: why not set this ...
7 years, 3 months ago (2013-09-05 20:14:17 UTC) #9
justinlin
thanks! https://codereview.chromium.org/23437015/diff/31001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/31001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode146 chrome/browser/extensions/api/mdns/mdns_api.cc:146: filter_info.SetServiceType(service_type); On 2013/09/05 20:14:18, Matt Perry wrote: > ...
7 years, 3 months ago (2013-09-05 21:44:04 UTC) #10
mark a. foltz
LGTM, minor comments https://codereview.chromium.org/23437015/diff/57001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/57001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode24 chrome/browser/extensions/api/mdns/mdns_api.cc:24: bool IsServiceTypeWhitelisted(std::string service_type) { const std::string& ...
7 years, 3 months ago (2013-09-06 00:15:49 UTC) #11
justinlin
Thanks! Made the rename. https://codereview.chromium.org/23437015/diff/57001/chrome/browser/extensions/api/mdns/mdns_api.cc File chrome/browser/extensions/api/mdns/mdns_api.cc (right): https://codereview.chromium.org/23437015/diff/57001/chrome/browser/extensions/api/mdns/mdns_api.cc#newcode24 chrome/browser/extensions/api/mdns/mdns_api.cc:24: bool IsServiceTypeWhitelisted(std::string service_type) { On ...
7 years, 3 months ago (2013-09-06 00:39:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/23437015/64001
7 years, 3 months ago (2013-09-06 00:39:50 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=24081
7 years, 3 months ago (2013-09-06 00:53:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/23437015/4057
7 years, 3 months ago (2013-09-06 01:00:01 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-06 02:19:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/23437015/90001
7 years, 3 months ago (2013-09-06 04:33:26 UTC) #17
commit-bot: I haz the power
Change committed as 221619
7 years, 3 months ago (2013-09-06 07:21:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/23437015/105001
7 years, 3 months ago (2013-09-06 15:05:59 UTC) #19
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 18:26:03 UTC) #20
Message was sent while issue was closed.
Change committed as 221738

Powered by Google App Engine
This is Rietveld 408576698