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

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

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 years, 6 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_client.h"
6
7 #include "net/dns/mdns_client_impl.h"
8
9 namespace net {
10
11 static MDnsClient* g_instance = NULL;
12
13 MDnsClient* MDnsClient::GetInstance() {
14 if (!g_instance) {
15 g_instance =
16 new MDnsClientImpl(MDnsConnection::SocketFactory::CreateDefault());
17 }
18
19 return g_instance;
20 }
21
22 void MDnsClient::SetInstance(MDnsClient* instance) {
23 g_instance = instance;
24 }
25
26 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/mdns_client.h ('k') | net/dns/mdns_client_impl.h » ('j') | net/dns/mdns_client_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698