| 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..c9cdf197c0553280d3cafecad42b32757c57c8aa
|
| --- /dev/null
|
| +++ b/net/dns/mdns_listener.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_listener.h"
|
| +#include "net/dns/mdns_listener_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;
|
| +}
|
| +}
|
|
|