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_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DEVICE_LISTER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_DEVICE_LISTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DEVICE_LISTER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_DEVICE_LISTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/extensions/api/mdns/dns_sd_delegate.h" | |
12 #include "chrome/browser/local_discovery/service_discovery_device_lister.h" | 11 #include "chrome/browser/local_discovery/service_discovery_device_lister.h" |
| 12 #include "chrome/browser/media/router/discovery/mdns/dns_sd_delegate.h" |
13 | 13 |
14 namespace local_discovery { | 14 namespace local_discovery { |
15 class ServiceDiscoveryClient; | 15 class ServiceDiscoveryClient; |
16 } // local_discovery | 16 } // local_discovery |
17 | 17 |
18 namespace extensions { | 18 namespace media_router { |
19 | 19 |
20 // Manages a watcher for a specific MDNS/DNS-SD service type and notifies | 20 // Manages a watcher for a specific MDNS/DNS-SD service type and notifies |
21 // a delegate of changes to watched services. | 21 // a delegate of changes to watched services. |
22 class DnsSdDeviceLister | 22 class DnsSdDeviceLister |
23 : public local_discovery::ServiceDiscoveryDeviceLister::Delegate { | 23 : public local_discovery::ServiceDiscoveryDeviceLister::Delegate { |
24 public: | 24 public: |
25 DnsSdDeviceLister( | 25 DnsSdDeviceLister( |
26 local_discovery::ServiceDiscoveryClient* service_discovery_client, | 26 local_discovery::ServiceDiscoveryClient* service_discovery_client, |
27 DnsSdDelegate* delegate, | 27 DnsSdDelegate* delegate, |
28 const std::string& service_type); | 28 const std::string& service_type); |
(...skipping 10 matching lines...) Expand all Loading... |
39 | 39 |
40 private: | 40 private: |
41 // The delegate to notify of changes to services. | 41 // The delegate to notify of changes to services. |
42 DnsSdDelegate* const delegate_; | 42 DnsSdDelegate* const delegate_; |
43 local_discovery::ServiceDiscoveryDeviceLister device_lister_; | 43 local_discovery::ServiceDiscoveryDeviceLister device_lister_; |
44 bool started_; | 44 bool started_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(DnsSdDeviceLister); | 46 DISALLOW_COPY_AND_ASSIGN(DnsSdDeviceLister); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace extensions | 49 } // namespace media_router |
50 | 50 |
51 #endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_DNS_SD_DEVICE_LISTER_H_ | 51 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_MDNS_DNS_SD_DEVICE_LISTER_H_ |
OLD | NEW |