| OLD | NEW |
| 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" | |
| 12 #include "chrome/tools/service_discovery_sniffer/service_discovery_sniffer.h" | 11 #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 Loading... |
| 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 } |
| OLD | NEW |