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 "net/dns/mdns_client.h" | |
6 #include "net/dns/mdns_client_impl.h" | |
7 | |
8 namespace net { | |
9 | |
10 static MDnsClient* g_instance = NULL; | |
11 | |
12 MDnsClient* MDnsClient::GetInstance() { | |
13 if (!g_instance) { | |
14 g_instance = new MDnsClientImpl(); | |
15 } | |
16 | |
17 return g_instance; | |
18 } | |
19 | |
20 void MDnsClient::SetInstance(MDnsClient* instance) { | |
21 g_instance = instance; | |
22 } | |
23 } | |
OLD | NEW |