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 #ifndef CHROME_TOOLS_SERVICE_DISCOVERY_SNIFFER_SERVICE_DISCOVERY_SNIFFER_H_ | 5 #ifndef CHROME_TOOLS_SERVICE_DISCOVERY_SNIFFER_SERVICE_DISCOVERY_SNIFFER_H_ |
6 #define CHROME_TOOLS_SERVICE_DISCOVERY_SNIFFER_SERVICE_DISCOVERY_SNIFFER_H_ | 6 #define CHROME_TOOLS_SERVICE_DISCOVERY_SNIFFER_SERVICE_DISCOVERY_SNIFFER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
12 #include "chrome/common/local_discovery/service_discovery_client.h" | 13 #include "chrome/common/local_discovery/service_discovery_client.h" |
13 | 14 |
14 namespace local_discovery { | 15 namespace local_discovery { |
15 | 16 |
16 // Resolves a service and prints out information regarding it to the | 17 // Resolves a service and prints out information regarding it to the |
17 // console. |client| must outlive the ServicePrinter. | 18 // console. |client| must outlive the ServicePrinter. |
18 class ServicePrinter { | 19 class ServicePrinter { |
19 public: | 20 public: |
20 ServicePrinter(ServiceDiscoveryClient* client, | 21 ServicePrinter(ServiceDiscoveryClient* client, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 ServiceMap services_; | 54 ServiceMap services_; |
54 scoped_ptr<ServiceWatcher> watcher_; | 55 scoped_ptr<ServiceWatcher> watcher_; |
55 ServiceDiscoveryClient* client_; | 56 ServiceDiscoveryClient* client_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(ServiceTypePrinter); | 58 DISALLOW_COPY_AND_ASSIGN(ServiceTypePrinter); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace local_discovery | 61 } // namespace local_discovery |
61 | 62 |
62 #endif // CHROME_TOOLS_SERVICE_DISCOVERY_SNIFFER_SERVICE_DISCOVERY_SNIFFER_H_ | 63 #endif // CHROME_TOOLS_SERVICE_DISCOVERY_SNIFFER_SERVICE_DISCOVERY_SNIFFER_H_ |
OLD | NEW |