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

Side by Side Diff: chrome/tools/service_discovery_sniffer/service_discovery_sniffer.cc

Issue 256923003: Move service_discovery_client_impl.* into chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sun 04/27/2014 11:39:04.49 Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "chrome/common/local_discovery/service_discovery_client_impl.h"
11 #include "chrome/tools/service_discovery_sniffer/service_discovery_sniffer.h" 12 #include "chrome/tools/service_discovery_sniffer/service_discovery_sniffer.h"
12 #include "chrome/utility/local_discovery/service_discovery_client_impl.h"
13 #include "net/dns/mdns_client.h" 13 #include "net/dns/mdns_client.h"
14 14
15 namespace local_discovery { 15 namespace local_discovery {
16 16
17 ServicePrinter::ServicePrinter(ServiceDiscoveryClient* client, 17 ServicePrinter::ServicePrinter(ServiceDiscoveryClient* client,
18 const std::string& service_name) 18 const std::string& service_name)
19 : changed_(false) { 19 : changed_(false) {
20 service_resolver_ = 20 service_resolver_ =
21 client->CreateServiceResolver( 21 client->CreateServiceResolver(
22 service_name, 22 service_name,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 { 113 {
114 // To guarantee/make explicit the ordering constraint. 114 // To guarantee/make explicit the ordering constraint.
115 local_discovery::ServiceTypePrinter print_changes( 115 local_discovery::ServiceTypePrinter print_changes(
116 service_discovery_client.get(), 116 service_discovery_client.get(),
117 std::string(argv[1]) + "._tcp.local"); 117 std::string(argv[1]) + "._tcp.local");
118 118
119 print_changes.Start(); 119 print_changes.Start();
120 message_loop.Run(); 120 message_loop.Run();
121 } 121 }
122 } 122 }
OLDNEW
« no previous file with comments | « chrome/tools/service_discovery_sniffer/DEPS ('k') | chrome/utility/local_discovery/local_domain_resolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698