Index: net/dns/mdns_client.cc |
diff --git a/net/dns/mdns_client.cc b/net/dns/mdns_client.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a0fc7aaee8de1187b9a43cddf05d6d7de215fc4e |
--- /dev/null |
+++ b/net/dns/mdns_client.cc |
@@ -0,0 +1,23 @@ |
+// 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_client.h" |
+#include "net/dns/mdns_client_impl.h" |
+ |
+namespace net { |
+ |
+static MDnsClient* g_instance = NULL; |
+ |
+MDnsClient* MDnsClient::GetInstance() { |
+ if (!g_instance) { |
+ g_instance = new MDnsClientImpl(); |
+ } |
+ |
+ return g_instance; |
+} |
+ |
+void MDnsClient::SetInstance(MDnsClient* instance) { |
+ g_instance = instance; |
+} |
+} |