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_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ | 5 #ifndef CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ |
6 #define CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ | 6 #define CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/cancelable_callback.h" | 13 #include "base/cancelable_callback.h" |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "chrome/common/local_discovery/service_discovery_client.h" | 17 #include "chrome/common/local_discovery/service_discovery_client.h" |
18 #include "net/dns/mdns_client.h" | 18 #include "net/dns/mdns_client.h" |
19 | 19 |
20 namespace local_discovery { | 20 namespace local_discovery { |
21 | 21 |
22 class ServiceDiscoveryClientImpl : public ServiceDiscoveryClient { | 22 class ServiceDiscoveryClientImpl : public ServiceDiscoveryClient { |
23 public: | 23 public: |
24 // |mdns_client| must outlive the Service Discovery Client. | 24 // |mdns_client| must outlive the Service Discovery Client. |
25 explicit ServiceDiscoveryClientImpl(net::MDnsClient* mdns_client); | 25 explicit ServiceDiscoveryClientImpl(net::MDnsClient* mdns_client); |
26 virtual ~ServiceDiscoveryClientImpl(); | 26 virtual ~ServiceDiscoveryClientImpl(); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 ServiceDescription service_staging_; | 183 ServiceDescription service_staging_; |
184 | 184 |
185 net::MDnsClient* mdns_client_; | 185 net::MDnsClient* mdns_client_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(ServiceResolverImpl); | 187 DISALLOW_COPY_AND_ASSIGN(ServiceResolverImpl); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace local_discovery | 190 } // namespace local_discovery |
191 | 191 |
192 #endif // CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ | 192 #endif // CHROME_UTILITY_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_IMPL_H_ |
OLD | NEW |