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

Side by Side Diff: net/dns/mdns_listener.cc

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 years, 7 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
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 "net/dns/mdns_listener.h"
6 #include "net/dns/mdns_listener_impl.h"
7
8 namespace net {
9
10 const char kMDNSMulticastGroupIPv4[] = "224.0.0.251";
11 const char kMDNSMulticastGroupIPv6[] = "FF02::FB";
12
13 static MDnsListenerFactory* g_instance = NULL;
14
15 MDnsListenerFactory* MDnsListenerFactory::GetInstance() {
16 if (!g_instance) {
17 g_instance = new MDnsListenerFactoryImpl();
18 }
19
20 return g_instance;
21 }
22
23 void MDnsListenerFactory::SetInstance(MDnsListenerFactory* instance) {
24 g_instance = instance;
25 }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698