Index: net/dns/mdns_listener.cc |
diff --git a/net/dns/mdns_listener.cc b/net/dns/mdns_listener.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f452a89c34e58b927456c513f1513d955ef32e70 |
--- /dev/null |
+++ b/net/dns/mdns_listener.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "net/dns/mdns_listener.h" |
+#include "net/dns/mdns_listener_impl.h" |
+ |
+namespace net { |
+ |
+const char kMDNSMulticastGroupIPv4[] = "224.0.0.251"; |
+const char kMDNSMulticastGroupIPv6[] = "FF02::FB"; |
+ |
+static MDnsListenerFactory* g_instance = NULL; |
+ |
+MDnsListenerFactory* MDnsListenerFactory::GetInstance() { |
+ if (!g_instance) { |
+ g_instance = new MDnsListenerFactoryImpl(); |
+ } |
+ |
+ return g_instance; |
+} |
+ |
+void MDnsListenerFactory::SetInstance(MDnsListenerFactory* instance) { |
+ g_instance = instance; |
+} |
+} |