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.h" | 10 #include "base/message_loop/message_loop.h" |
11 #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" | 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_ = |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 { | 111 { |
112 // To guarantee/make explicit the ordering constraint. | 112 // To guarantee/make explicit the ordering constraint. |
113 local_discovery::ServiceTypePrinter print_changes( | 113 local_discovery::ServiceTypePrinter print_changes( |
114 service_discovery_client.get(), | 114 service_discovery_client.get(), |
115 std::string(argv[1]) + "._tcp.local"); | 115 std::string(argv[1]) + "._tcp.local"); |
116 | 116 |
117 print_changes.Start(); | 117 print_changes.Start(); |
118 message_loop.Run(); | 118 message_loop.Run(); |
119 } | 119 } |
120 } | 120 } |
OLD | NEW |