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

Side by Side Diff: chrome/browser/extensions/api/mdns/nsd_registry.cc

Issue 22870011: chrome.mdns API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: can listen Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/api/mdns/nsd_registry.h"
6
7 namespace extensions {
8
9 NsdRegistry::NsdRegistry() {
10 }
11
12 NsdRegistry::~NsdRegistry() {
13 }
14
15 MDnsService* NsdRegistry::mdns_service() {
16 if (!mdns_service_.get()) {
17 mdns_service_.reset(new MDnsService("TEST", NULL));
18 }
19 return mdns_service_.get();
20 }
21
22 void NsdRegistry::RegisterMDnsListener(std::string service_name) {
23 mdns_service()->Start();
mark a. foltz 2013/08/23 23:27:23 We should probably enforce the service type whitel
justinlin 2013/08/27 00:09:25 It's already done in mdns_manifest_handler.cc, so
24 }
25
26 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698