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

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 #include "net/dns/mdns_client_impl.h"
szym 2013/06/12 21:35:41 nit: add blank line above
Noam Samuel 2013/06/13 01:08:40 Done.
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(new MDnsDatagramServerSocketFactoryImpl());
15 }
16
17 return g_instance;
18 }
19
20 void MDnsClient::SetInstance(MDnsClient* instance) {
21 g_instance = instance;
22 }
23
24 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698