OLD | NEW |
---|---|
(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 | |
OLD | NEW |